Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 85.17 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009584/0.0009584, allocations: 142.2 kB / 24.89 MB, free: 9.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8668/0.8668, allocations: 173.3 MB / 201.5 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 268.5 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077e-05/1.193e-05, allocations: 2.312 kB / 268.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003415/0.003427, allocations: 3.939 MB / 272.4 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.004919, allocations: 1.028 MB / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.005167, allocations: 11.94 kB / 273.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002068/0.005374, allocations: 91.14 kB / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002849/0.005659, allocations: 194.3 kB / 273.7 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.006052, allocations: 223.6 kB / 273.9 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005732/0.006625, allocations: 0.8287 MB / 274.8 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.006798, allocations: 126.1 kB / 274.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004325/0.007231, allocations: 470.9 kB / 275.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.0075, allocations: 275.3 kB / 275.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.434e-05/0.007574, allocations: 83.94 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.476e-05/0.007639, allocations: 76 kB / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003224/0.007962, allocations: 151.5 kB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.008133, allocations: 247.4 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003824/0.008515, allocations: 0.5063 MB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.008517, allocations: 3.938 kB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.008517, allocations: 0 / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.008522, allocations: 0 / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001075/0.009597, allocations: 0.8555 MB / 277.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.009626, allocations: 16.92 kB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.144e-05/0.009718, allocations: 68.88 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.01001, allocations: 271.7 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.01004, allocations: 29.38 kB / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.01009, allocations: 40.36 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004829/0.01057, allocations: 436.3 kB / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.01058, allocations: 192 / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.01061, allocations: 12.38 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.01062, allocations: 11.94 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.01082, allocations: 134.9 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.01226, allocations: 1.355 MB / 279.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000783/0.01304, allocations: 354.6 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.0132, allocations: 125.3 kB / 280.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.01322, allocations: 12.33 kB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.01344, allocations: 228.5 kB / 280.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.273e-06/0.01344, allocations: 0 / 280.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.00298/0.01642, allocations: 1.013 MB / 281.6 MB, free: 8.824 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.01646, allocations: 89.09 kB / 281.7 MB, free: 8.719 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.01665, allocations: 331.4 kB / 282 MB, free: 8.383 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.01668, allocations: 33.7 kB / 282.1 MB, free: 8.344 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.821e-05/0.01676, allocations: 189.8 kB / 282.2 MB, free: 8.152 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.441e-05/0.01683, allocations: 142.8 kB / 282.4 MB, free: 8.012 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.442e-05/0.01692, allocations: 77.97 kB / 282.5 MB, free: 7.926 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.323e-05/0.01701, allocations: 358.7 kB / 282.8 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.01711, allocations: 74.56 kB / 282.9 MB, free: 7.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/0.01746, allocations: 157.8 kB / 283 MB, free: 7.312 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.01766, allocations: 189.8 kB / 283.2 MB, free: 7.113 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01766, allocations: 0 / 283.2 MB, free: 7.113 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006045/0.01827, allocations: 388.4 kB / 283.6 MB, free: 6.715 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.01829, allocations: 33.7 kB / 283.6 MB, free: 6.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.0183, allocations: 0 / 283.6 MB, free: 6.676 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003571/0.01865, allocations: 188.7 kB / 283.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.01883, allocations: 75.88 kB / 283.9 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/0.02096, allocations: 2.015 MB / 285.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.02117, allocations: 63.73 kB / 286 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.02119, allocations: 8 kB / 286 MB, free: 4.258 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.0213, allocations: 137.8 kB / 286.1 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.02135, allocations: 35.97 kB / 286.1 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.735e-05/0.02141, allocations: 60.36 kB / 286.2 MB, free: 4.012 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.02141, allocations: 4 kB / 286.2 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.02142, allocations: 3.938 kB / 286.2 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.02142, allocations: 4.047 kB / 286.2 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003568/0.02178, allocations: 289.9 kB / 286.5 MB, free: 3.695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.02178, allocations: 4 kB / 286.5 MB, free: 3.691 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.02199, allocations: 63.89 kB / 286.6 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003365/0.02232, allocations: 188.7 kB / 286.7 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.02235, allocations: 8 kB / 286.8 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002034/0.02438, allocations: 1.999 MB / 288.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.02438, allocations: 0 / 288.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.02542, allocations: 0.5011 MB / 289.3 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.02553, allocations: 59.52 kB / 289.3 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.02557, allocations: 8 kB / 289.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.02574, allocations: 43.95 kB / 289.4 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.02583, allocations: 55.84 kB / 289.4 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.02585, allocations: 11.98 kB / 289.4 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001014/0.02595, allocations: 140.7 kB / 289.6 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02595, allocations: 0 / 289.6 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000332/0.02629, allocations: 167.8 kB / 289.7 MB, free: 364 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000107/0.02639, allocations: 96.34 kB / 289.8 MB, free: 256 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0808/0.1072, allocations: 482.9 kB / 290.3 MB, free: 30.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/0.1072, allocations: 3.406 kB / 290.3 MB, free: 30.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.1077, allocations: 347.2 kB / 290.6 MB, free: 29.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.108, allocations: 85.06 kB / 290.7 MB, free: 29.87 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.1094, allocations: 0.9283 MB / 291.7 MB, free: 29.47 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.003e-05/0.1095, allocations: 118.4 kB / 291.8 MB, free: 29.4 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.1096, allocations: 37.88 kB / 291.8 MB, free: 29.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.1098, allocations: 126.2 kB / 291.9 MB, free: 29.35 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1098, allocations: 3.938 kB / 291.9 MB, free: 29.35 MB / 266.7 MB Notification: Performance of Templates: time 0.01357/0.1234, allocations: 13.05 MB / 305 MB, free: 24.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.154304296709597]