Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 166.3 kB / 25.03 MB, free: 8.941 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 158.6 MB / 186.8 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 6.732e-06/6.732e-06, allocations: 4 kB / 250.4 MB, free: 7.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.685e-05/5.358e-05, allocations: 2.312 kB / 250.4 MB, free: 7.812 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00684/0.006893, allocations: 3.806 MB / 254.2 MB, free: 3.984 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.009542, allocations: 1.002 MB / 255.2 MB, free: 2.973 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003126/0.009855, allocations: 4 kB / 255.2 MB, free: 2.969 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002823/0.01014, allocations: 87.14 kB / 255.3 MB, free: 2.883 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004118/0.01055, allocations: 186.3 kB / 255.4 MB, free: 2.699 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006187/0.01117, allocations: 207.6 kB / 255.6 MB, free: 2.496 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.01219, allocations: 0.7857 MB / 256.4 MB, free: 1.707 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.01249, allocations: 109.5 kB / 256.5 MB, free: 1.594 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007253/0.01322, allocations: 431.1 kB / 257 MB, free: 1.172 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/0.01371, allocations: 279.2 kB / 257.2 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.01386, allocations: 80 kB / 257.3 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.01401, allocations: 76 kB / 257.4 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.01419, allocations: 151.5 kB / 257.5 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003292/0.01452, allocations: 223.5 kB / 257.8 MB, free: 388 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.01575, allocations: 0.8491 MB / 258.6 MB, free: 15.53 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.01575, allocations: 0 / 258.6 MB, free: 15.53 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.01575, allocations: 0 / 258.6 MB, free: 15.53 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.01576, allocations: 0 / 258.6 MB, free: 15.53 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002792/0.01856, allocations: 1.015 MB / 259.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.01861, allocations: 15.98 kB / 259.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002148/0.01882, allocations: 80.61 kB / 259.7 MB, free: 14.37 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006813/0.0195, allocations: 350.5 kB / 260.1 MB, free: 14 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.01955, allocations: 33.31 kB / 260.1 MB, free: 13.97 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.42e-05/0.01965, allocations: 40.36 kB / 260.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.02102, allocations: 0.5752 MB / 260.7 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.02104, allocations: 3.938 kB / 260.7 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.822e-05/0.02109, allocations: 16 kB / 260.7 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.02111, allocations: 8 kB / 260.7 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.02262, allocations: 0.4957 MB / 261.2 MB, free: 12.8 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004154/0.02677, allocations: 2.089 MB / 263.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003547/0.03032, allocations: 0.6555 MB / 264 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008946/0.03121, allocations: 307.4 kB / 264.3 MB, free: 9.656 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.047e-05/0.03128, allocations: 12.61 kB / 264.3 MB, free: 9.645 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.03233, allocations: 408.8 kB / 264.7 MB, free: 9.219 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 2.014e-06/0.03233, allocations: 0 / 264.7 MB, free: 9.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.009372/0.0417, allocations: 1.508 MB / 266.2 MB, free: 7.699 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.0418, allocations: 89.05 kB / 266.3 MB, free: 7.594 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007942/0.04259, allocations: 486.8 kB / 266.8 MB, free: 7.102 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.255e-05/0.04266, allocations: 37.69 kB / 266.8 MB, free: 7.059 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003192/0.04298, allocations: 295.6 kB / 267.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.04319, allocations: 146.9 kB / 267.2 MB, free: 6.617 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002191/0.04341, allocations: 95.7 kB / 267.3 MB, free: 6.512 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000378/0.04378, allocations: 0.547 MB / 267.9 MB, free: 5.953 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007458/0.04453, allocations: 250.5 kB / 268.1 MB, free: 5.703 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008221/0.04535, allocations: 350.4 kB / 268.4 MB, free: 5.336 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.0468, allocations: 0.4953 MB / 268.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.04681, allocations: 0 / 268.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004561/0.05137, allocations: 0.9598 MB / 269.9 MB, free: 3.844 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.307e-05/0.05146, allocations: 37.64 kB / 269.9 MB, free: 3.801 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.05147, allocations: 0 / 269.9 MB, free: 3.801 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.05276, allocations: 375.4 kB / 270.3 MB, free: 3.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.05316, allocations: 71.89 kB / 270.4 MB, free: 3.359 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009391/0.06256, allocations: 3.984 MB / 274.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007263/0.06328, allocations: 67.73 kB / 274.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/0.06335, allocations: 8 kB / 274.4 MB, free: 15.18 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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0003904/0.06374, allocations: 212.6 kB / 274.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.06387, allocations: 63.7 kB / 274.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.064, allocations: 48.25 kB / 274.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.06401, allocations: 4 kB / 274.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.06402, allocations: 3.938 kB / 274.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.06403, allocations: 3.938 kB / 274.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008101/0.06484, allocations: 492.7 kB / 275.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.06484, allocations: 0 / 275.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.06522, allocations: 59.95 kB / 275.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/0.06637, allocations: 378.9 kB / 275.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.857e-05/0.06642, allocations: 11.98 kB / 275.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009496/0.07591, allocations: 3.973 MB / 279.7 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.07591, allocations: 0 / 279.7 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00443/0.08034, allocations: 1.141 MB / 280.8 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.08069, allocations: 95.53 kB / 280.9 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.08081, allocations: 12 kB / 280.9 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004822/0.08129, allocations: 39.95 kB / 280.9 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.08149, allocations: 55.91 kB / 281 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.334e-05/0.08153, allocations: 11.98 kB / 281 MB, free: 8.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00045/0.08198, allocations: 323.1 kB / 281.3 MB, free: 8.098 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08198, allocations: 4 kB / 281.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008012/0.08278, allocations: 179.8 kB / 281.5 MB, free: 7.918 MB / 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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.0002091/0.08299, allocations: 110.8 kB / 281.6 MB, free: 7.801 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002629/0.08562, allocations: 0.9075 MB / 282.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.08563, allocations: 0 / 282.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.08717, allocations: 0.5712 MB / 283.1 MB, free: 6.262 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.08781, allocations: 88.41 kB / 283.2 MB, free: 6.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003432/0.09124, allocations: 1.051 MB / 284.2 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.09156, allocations: 224.3 kB / 284.4 MB, free: 4.855 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002411/0.0918, allocations: 47.2 kB / 284.5 MB, free: 4.805 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.09194, allocations: 32.5 kB / 284.5 MB, free: 4.773 MB / 266.7 MB Notification: Performance of SimCode: time 1.733e-06/0.09194, allocations: 0 / 284.5 MB, free: 4.773 MB / 266.7 MB Notification: Performance of Templates: time 0.02864/0.1206, allocations: 13.07 MB / 297.6 MB, free: 7.707 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.927802099031396]