Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.591/1.591, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 12 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0764/0.07677, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3439/0.4207, allocations: 68.82 MB / 340.9 MB, free: 4.629 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/0.4211, allocations: 72.77 kB / 341 MB, free: 4.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0272/0.4484, allocations: 4.847 MB / 345.8 MB, free: 496 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4484, allocations: 0 / 345.8 MB, free: 496 kB / 266.7 MB Notification: Performance of Transformations before backend: time 3.086e-05/0.4485, allocations: 8 kB / 345.9 MB, free: 488 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001746/0.4502, allocations: 0.5786 MB / 346.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.4503, allocations: 8.031 kB / 346.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.4504, allocations: 59.98 kB / 346.5 MB, free: 15.81 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.4506, allocations: 35.62 kB / 346.5 MB, free: 15.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005983/0.4512, allocations: 276.2 kB / 346.8 MB, free: 15.49 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.217e-05/0.4513, allocations: 27.14 kB / 346.8 MB, free: 15.47 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-05/0.4514, allocations: 22.5 kB / 346.8 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.4525, allocations: 287.9 kB / 347.1 MB, free: 15.24 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4525, allocations: 3.938 kB / 347.1 MB, free: 15.24 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.864e-05/0.4526, allocations: 11.22 kB / 347.1 MB, free: 15.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.4526, allocations: 8 kB / 347.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009161/0.4535, allocations: 208.8 kB / 347.4 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003341/0.4569, allocations: 1.145 MB / 348.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007837/0.4577, allocations: 227.1 kB / 348.7 MB, free: 13.94 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.4578, allocations: 4.172 kB / 348.7 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000473/0.4583, allocations: 162.7 kB / 348.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 5.36e-06/0.4583, allocations: 0 / 348.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.002328/0.4606, allocations: 0.5283 MB / 349.4 MB, free: 13.33 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.723e-05/0.4607, allocations: 106.8 kB / 349.5 MB, free: 13.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/0.4611, allocations: 217.5 kB / 349.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.4612, allocations: 33.39 kB / 349.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.4613, allocations: 224.8 kB / 350 MB, free: 12.79 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.316e-05/0.4614, allocations: 66.89 kB / 350 MB, free: 12.73 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/0.4615, allocations: 3.688 kB / 350.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.4616, allocations: 321.1 kB / 350.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.4619, allocations: 74.22 kB / 350.4 MB, free: 12.37 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/0.4622, allocations: 127.4 kB / 350.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.4625, allocations: 79.83 kB / 350.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4625, allocations: 0 / 350.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007955/0.4633, allocations: 289.9 kB / 350.9 MB, free: 12.01 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4634, allocations: 7.984 kB / 350.9 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.4634, allocations: 64 / 350.9 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005182/0.4639, allocations: 96.53 kB / 351 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.4642, allocations: 31.92 kB / 351.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003225/0.4674, allocations: 1.967 MB / 353 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.4679, allocations: 35.55 kB / 353.1 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.468, allocations: 8 kB / 353.1 MB, free: 10.08 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002718/0.4682, allocations: 151.3 kB / 353.2 MB, free: 9.941 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.039e-05/0.4683, allocations: 23.72 kB / 353.2 MB, free: 9.918 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.713e-05/0.4684, allocations: 35.66 kB / 353.3 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.4684, allocations: 4 kB / 353.3 MB, free: 9.895 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.4684, allocations: 0 / 353.3 MB, free: 9.895 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4685, allocations: 4 kB / 353.3 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005666/0.469, allocations: 351.7 kB / 353.6 MB, free: 9.566 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4691, allocations: 0 / 353.6 MB, free: 9.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.4693, allocations: 23.17 kB / 353.6 MB, free: 9.547 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004535/0.4698, allocations: 88.97 kB / 353.7 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.4698, allocations: 7.125 kB / 353.7 MB, free: 9.477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/0.4731, allocations: 1.975 MB / 355.7 MB, free: 7.672 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.4731, allocations: 0 / 355.7 MB, free: 7.672 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.4744, allocations: 431.3 kB / 356.1 MB, free: 7.352 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.4746, allocations: 122.5 kB / 356.3 MB, free: 7.227 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.651e-05/0.4747, allocations: 7 kB / 356.3 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003052/0.475, allocations: 19.22 kB / 356.3 MB, free: 7.207 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.4752, allocations: 41.75 kB / 356.3 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.4753, allocations: 4 kB / 356.3 MB, free: 7.168 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002607/0.4755, allocations: 181.3 kB / 356.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4755, allocations: 0 / 356.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006748/0.4762, allocations: 92.3 kB / 356.6 MB, free: 6.938 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001981/0.4782, allocations: 0.9655 MB / 357.6 MB, free: 6.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.4793, allocations: 354.9 kB / 357.9 MB, free: 5.785 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.4793, allocations: 4.062 kB / 357.9 MB, free: 5.781 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006285/0.48, allocations: 265.5 kB / 358.2 MB, free: 5.559 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004878/0.4805, allocations: 66.16 kB / 358.2 MB, free: 5.508 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.4843, allocations: 1.931 MB / 360.2 MB, free: 3.781 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.4848, allocations: 0.7752 MB / 360.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.485, allocations: 80.03 kB / 361 MB, free: 2.949 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.485, allocations: 3.938 kB / 361 MB, free: 2.945 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.546/3.031, allocations: 5.753 MB / 366.8 MB, free: 13.27 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat