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: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.885/1.885, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004797/0.0004799, allocations: 8 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1072, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4031/0.5104, allocations: 68.82 MB / 341.4 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5107, allocations: 71.72 kB / 341.5 MB, free: 4.492 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02122/0.5319, allocations: 4.859 MB / 346.4 MB, free: 388 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.532, allocations: 0 / 346.4 MB, free: 388 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.434e-05/0.532, allocations: 4 kB / 346.4 MB, free: 384 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.001353/0.5334, allocations: 0.5707 MB / 346.9 MB, free: 15.78 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.5334, allocations: 12.03 kB / 346.9 MB, free: 15.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.5336, allocations: 35.53 kB / 347 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.534, allocations: 278.9 kB / 347.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.5341, allocations: 19.52 kB / 347.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.5342, allocations: 29.25 kB / 347.3 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007905/0.535, allocations: 284.2 kB / 347.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.535, allocations: 7.922 kB / 347.6 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.442e-05/0.5351, allocations: 8.125 kB / 347.6 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.5351, allocations: 8 kB / 347.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006609/0.5358, allocations: 210.3 kB / 347.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.5384, allocations: 1.144 MB / 349 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00084/0.5392, allocations: 222.4 kB / 349.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.5393, allocations: 4.188 kB / 349.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004775/0.5398, allocations: 173.7 kB / 349.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.644e-06/0.5398, allocations: 0 / 349.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.002419/0.5422, allocations: 0.5275 MB / 349.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.371e-05/0.5424, allocations: 106.8 kB / 350 MB, free: 13.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.5428, allocations: 245.5 kB / 350.2 MB, free: 12.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.5428, allocations: 29.02 kB / 350.2 MB, free: 12.92 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.543, allocations: 168.9 kB / 350.4 MB, free: 12.78 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.993e-05/0.5431, allocations: 69.08 kB / 350.5 MB, free: 12.72 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.167e-05/0.5432, allocations: 3.938 kB / 350.5 MB, free: 12.72 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.5434, allocations: 341.7 kB / 350.8 MB, free: 12.39 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002855/0.5437, allocations: 71.91 kB / 350.9 MB, free: 12.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003242/0.544, allocations: 127.9 kB / 351 MB, free: 12.24 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.5443, allocations: 84.08 kB / 351.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5443, allocations: 0 / 351.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008938/0.5452, allocations: 305.3 kB / 351.4 MB, free: 11.97 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.5453, allocations: 4 kB / 351.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.5453, allocations: 0 / 351.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005536/0.5458, allocations: 101 kB / 351.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.5461, allocations: 27.98 kB / 351.5 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003495/0.5496, allocations: 1.951 MB / 353.5 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/0.5501, allocations: 39.73 kB / 353.5 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.5501, allocations: 4 kB / 353.5 MB, free: 10.05 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.0002848/0.5504, allocations: 154.4 kB / 353.7 MB, free: 9.914 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.163e-05/0.5505, allocations: 23.72 kB / 353.7 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.168e-05/0.5506, allocations: 32.31 kB / 353.7 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.5507, allocations: 0 / 353.7 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.5507, allocations: 4 kB / 353.7 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.5507, allocations: 7.922 kB / 353.7 MB, free: 9.867 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005651/0.5513, allocations: 353 kB / 354.1 MB, free: 9.543 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.5513, allocations: 4 kB / 354.1 MB, free: 9.539 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002335/0.5515, allocations: 23.97 kB / 354.1 MB, free: 9.516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004516/0.552, allocations: 93.81 kB / 354.2 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.552, allocations: 7.688 kB / 354.2 MB, free: 9.441 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003612/0.5557, allocations: 1.973 MB / 356.2 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5557, allocations: 0 / 356.2 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.5571, allocations: 422.3 kB / 356.6 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.5573, allocations: 125.2 kB / 356.7 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.469e-05/0.5574, allocations: 11.56 kB / 356.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003093/0.5577, allocations: 23.03 kB / 356.7 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.5579, allocations: 29.58 kB / 356.8 MB, free: 7.152 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.5579, allocations: 6.688 kB / 356.8 MB, free: 7.148 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002828/0.5582, allocations: 177.2 kB / 357 MB, free: 7 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5583, allocations: 0 / 357 MB, free: 7 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006685/0.5589, allocations: 105.7 kB / 357.1 MB, free: 6.906 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.0002179/0.5592, allocations: 111.2 kB / 357.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.5603, allocations: 354.5 kB / 357.5 MB, free: 6.508 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.5603, allocations: 4.125 kB / 357.5 MB, free: 6.504 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006568/0.561, allocations: 266.4 kB / 357.8 MB, free: 6.277 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.5615, allocations: 54.52 kB / 357.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.5632, allocations: 0.6921 MB / 358.5 MB, free: 5.566 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004878/0.5637, allocations: 0.7715 MB / 359.3 MB, free: 4.77 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000199/0.5639, allocations: 22.23 kB / 359.3 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.835e-05/0.564, allocations: 23.42 kB / 359.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of SimCode: time 1.553e-06/0.564, allocations: 0 / 359.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of Templates: time 0.01449/0.5785, allocations: 4.285 MB / 363.6 MB, free: 500 kB / 282.7 MB