Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003812, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08233/0.08275, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3357/0.4185, allocations: 68.82 MB / 340.9 MB, free: 4.371 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.4188, allocations: 76.31 kB / 341 MB, free: 4.328 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02128/0.4401, allocations: 4.848 MB / 345.9 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4402, allocations: 0 / 345.9 MB, free: 228 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.692e-05/0.4402, allocations: 8 kB / 345.9 MB, free: 220 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.00152/0.4418, allocations: 0.58 MB / 346.5 MB, free: 15.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.4418, allocations: 8.031 kB / 346.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.442, allocations: 63.47 kB / 346.5 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.4421, allocations: 35.62 kB / 346.6 MB, free: 15.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004804/0.4426, allocations: 275.2 kB / 346.8 MB, free: 15.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.279e-05/0.4426, allocations: 26.52 kB / 346.9 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.909e-05/0.4427, allocations: 24.56 kB / 346.9 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007984/0.4435, allocations: 284.8 kB / 347.2 MB, free: 14.97 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.4436, allocations: 4.156 kB / 347.2 MB, free: 14.97 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.4436, allocations: 11.56 kB / 347.2 MB, free: 14.96 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.4436, allocations: 11.94 kB / 347.2 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006959/0.4443, allocations: 208.2 kB / 347.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.447, allocations: 1.147 MB / 348.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007852/0.4478, allocations: 228.5 kB / 348.8 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.4479, allocations: 4.172 kB / 348.8 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004769/0.4484, allocations: 164.8 kB / 348.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.915e-06/0.4484, allocations: 0 / 348.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.002341/0.4507, allocations: 0.5257 MB / 349.4 MB, free: 13.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.313e-05/0.4508, allocations: 106.8 kB / 349.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/0.4512, allocations: 218 kB / 349.8 MB, free: 12.75 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.4513, allocations: 33.14 kB / 349.8 MB, free: 12.71 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.4514, allocations: 166.6 kB / 350 MB, free: 12.58 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.377e-05/0.4515, allocations: 68.33 kB / 350 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.4516, allocations: 7.812 kB / 350 MB, free: 12.52 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.4518, allocations: 333.5 kB / 350.4 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.452, allocations: 75.22 kB / 350.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003434/0.4524, allocations: 123.4 kB / 350.6 MB, free: 12.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.4527, allocations: 85.14 kB / 350.6 MB, free: 11.99 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.4527, allocations: 0 / 350.6 MB, free: 11.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008462/0.4536, allocations: 303.8 kB / 350.9 MB, free: 11.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.4536, allocations: 8.625 kB / 350.9 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.4536, allocations: 0 / 350.9 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005275/0.4542, allocations: 90.12 kB / 351 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.4544, allocations: 39.34 kB / 351.1 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003356/0.4578, allocations: 1.95 MB / 353 MB, free: 9.895 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004149/0.4583, allocations: 38.95 kB / 353.1 MB, free: 9.859 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.4583, allocations: 7.5 kB / 353.1 MB, free: 9.855 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.0002648/0.4586, allocations: 143.2 kB / 353.2 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.72e-05/0.4587, allocations: 31.52 kB / 353.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.292e-05/0.4588, allocations: 23.75 kB / 353.3 MB, free: 9.684 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.4588, allocations: 4 kB / 353.3 MB, free: 9.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4588, allocations: 3.938 kB / 353.3 MB, free: 9.676 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4588, allocations: 7.984 kB / 353.3 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005301/0.4593, allocations: 355.2 kB / 353.6 MB, free: 9.344 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.4594, allocations: 0 / 353.6 MB, free: 9.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.4596, allocations: 23.98 kB / 353.6 MB, free: 9.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004524/0.4601, allocations: 99.45 kB / 353.7 MB, free: 9.242 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-05/0.4601, allocations: 5.688 kB / 353.7 MB, free: 9.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003336/0.4635, allocations: 1.968 MB / 355.7 MB, free: 7.445 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4635, allocations: 4.125 kB / 355.7 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.4649, allocations: 422.7 kB / 356.1 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.4651, allocations: 131.1 kB / 356.3 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.861e-05/0.4652, allocations: 3.734 kB / 356.3 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.4655, allocations: 27.55 kB / 356.3 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.4656, allocations: 31.56 kB / 356.3 MB, free: 6.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.4657, allocations: 7.625 kB / 356.3 MB, free: 6.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002643/0.4659, allocations: 177.9 kB / 356.5 MB, free: 6.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.466, allocations: 0 / 356.5 MB, free: 6.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005996/0.4666, allocations: 98.95 kB / 356.6 MB, free: 6.703 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.001685/0.4683, allocations: 0.9595 MB / 357.6 MB, free: 5.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.4693, allocations: 356.8 kB / 357.9 MB, free: 5.555 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4694, allocations: 4.062 kB / 357.9 MB, free: 5.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006225/0.47, allocations: 266.8 kB / 358.2 MB, free: 5.328 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004942/0.4705, allocations: 53.64 kB / 358.2 MB, free: 5.289 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.4744, allocations: 1.914 MB / 360.1 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.4749, allocations: 0.7752 MB / 360.9 MB, free: 2.781 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001852/0.4751, allocations: 14.3 kB / 360.9 MB, free: 2.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.4752, allocations: 81.47 kB / 361 MB, free: 2.742 MB / 282.7 MB Notification: Performance of SimCode: time 1.183e-06/0.4752, allocations: 0 / 361 MB, free: 2.742 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0449/0.5201, allocations: 6.666 MB / 367.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005363/0.5208, allocations: 221.3 kB / 367.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.791/3.311, allocations: 0 / 367.9 MB, free: 11.89 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat