Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") 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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.5 MB / 230.3 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 86.23 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.271e-05/1.273e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1262, allocations: 50.43 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.5314, allocations: 78.97 MB / 466.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.5317, allocations: 73.81 kB / 466.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01335/0.5451, allocations: 5.076 MB / 471.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5451, allocations: 0 / 471.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.602e-05/0.5452, allocations: 4 kB / 471.6 MB, free: 10.7 MB / 346.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.0008151/0.546, allocations: 0.5398 MB / 472.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.546, allocations: 8.031 kB / 472.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.527e-05/0.5461, allocations: 39.47 kB / 472.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.5465, allocations: 278.4 kB / 472.5 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.5466, allocations: 12 kB / 472.5 MB, free: 9.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.283e-05/0.5466, allocations: 12 kB / 472.5 MB, free: 9.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005646/0.5472, allocations: 173.1 kB / 472.6 MB, free: 9.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006556/0.5479, allocations: 247.4 kB / 472.9 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.5479, allocations: 0 / 472.9 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.548, allocations: 0 / 472.9 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.548, allocations: 4.219 kB / 472.9 MB, free: 9.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.5505, allocations: 1.093 MB / 474 MB, free: 8.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006712/0.5512, allocations: 199 kB / 474.2 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003491/0.5516, allocations: 129.2 kB / 474.3 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.5516, allocations: 8.188 kB / 474.3 MB, free: 7.801 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003195/0.552, allocations: 148.4 kB / 474.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.314e-06/0.552, allocations: 0 / 474.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008389/0.5528, allocations: 243.5 kB / 474.7 MB, free: 7.387 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.553, allocations: 144.5 kB / 474.8 MB, free: 7.215 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.5533, allocations: 188 kB / 475 MB, free: 7.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.5534, allocations: 25.7 kB / 475 MB, free: 6.992 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.5535, allocations: 172.1 kB / 475.2 MB, free: 6.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.46e-05/0.5536, allocations: 71 kB / 475.3 MB, free: 6.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.5537, allocations: 0 / 475.3 MB, free: 6.746 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5538, allocations: 330.8 kB / 475.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.554, allocations: 67.98 kB / 475.7 MB, free: 6.348 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.5542, allocations: 101.2 kB / 475.8 MB, free: 6.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.5544, allocations: 71.91 kB / 475.8 MB, free: 6.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5544, allocations: 0 / 475.8 MB, free: 6.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005805/0.555, allocations: 250.3 kB / 476.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.555, allocations: 9.094 kB / 476.1 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.555, allocations: 0 / 476.1 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004501/0.5555, allocations: 92.69 kB / 476.2 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.5557, allocations: 27.98 kB / 476.2 MB, free: 5.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003112/0.5588, allocations: 1.924 MB / 478.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.5592, allocations: 27.83 kB / 478.2 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.5593, allocations: 8 kB / 478.2 MB, free: 3.703 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001578/0.5594, allocations: 113 kB / 478.3 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.786e-05/0.5595, allocations: 23.72 kB / 478.3 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.006e-05/0.5596, allocations: 33.89 kB / 478.3 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.5596, allocations: 7.984 kB / 478.3 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5597, allocations: 3.953 kB / 478.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.5597, allocations: 0 / 478.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.5611, allocations: 0.7286 MB / 479.1 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5611, allocations: 0 / 479.1 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.5613, allocations: 19.98 kB / 479.1 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004218/0.5617, allocations: 85.69 kB / 479.2 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.867e-05/0.5618, allocations: 7.938 kB / 479.2 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.5649, allocations: 1.881 MB / 481.1 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5649, allocations: 0 / 481.1 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008741/0.5658, allocations: 417.7 kB / 481.5 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.566, allocations: 121 kB / 481.6 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.637e-05/0.566, allocations: 4 kB / 481.6 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.5664, allocations: 19.98 kB / 481.6 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.5665, allocations: 35.94 kB / 481.7 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.5666, allocations: 4 kB / 481.7 MB, free: 0 / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002484/0.5668, allocations: 156.6 kB / 481.8 MB, free: 15.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5669, allocations: 3.938 kB / 481.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008399/0.5677, allocations: 95.69 kB / 481.9 MB, free: 15.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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.000211/0.5679, allocations: 95.25 kB / 482 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008857/0.5688, allocations: 329.9 kB / 482.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.5689, allocations: 0 / 482.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005561/0.5694, allocations: 241.8 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.57, allocations: 44.97 kB / 482.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.5714, allocations: 397 kB / 483 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004791/0.5719, allocations: 0.7717 MB / 483.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.572, allocations: 26.02 kB / 483.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.335e-05/0.5721, allocations: 15.44 kB / 483.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5721, allocations: 3.938 kB / 483.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of Templates: time 0.01255/0.5847, allocations: 3.83 MB / 487.6 MB, free: 9.992 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches