Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.001378/0.001378, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001007/0.001007, allocations: 159.6 kB / 25.74 MB, free: 8.93 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 0.8693/0.8693, allocations: 158.6 MB / 187.5 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] 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.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 251.1 MB, free: 7.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.619e-05/2.803e-05, allocations: 2.312 kB / 251.1 MB, free: 7.828 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002331/0.002359, allocations: 1.491 MB / 252.6 MB, free: 6.324 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000813/0.003172, allocations: 247.2 kB / 252.8 MB, free: 6.082 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.003298, allocations: 11.94 kB / 252.8 MB, free: 6.07 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.003457, allocations: 27.73 kB / 252.9 MB, free: 6.043 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.581e-05/0.003533, allocations: 11.81 kB / 252.9 MB, free: 6.031 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.004093, allocations: 131.7 kB / 253 MB, free: 5.902 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.004466, allocations: 263.5 kB / 253.3 MB, free: 5.645 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003226/0.004789, allocations: 138.8 kB / 253.4 MB, free: 5.508 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.004964, allocations: 135.7 kB / 253.5 MB, free: 5.375 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.005107, allocations: 71.78 kB / 253.6 MB, free: 5.305 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.432e-05/0.005151, allocations: 20 kB / 253.6 MB, free: 5.285 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.9e-05/0.00524, allocations: 31.98 kB / 253.6 MB, free: 5.254 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.005309, allocations: 55.81 kB / 253.7 MB, free: 5.199 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.763e-05/0.005396, allocations: 67.81 kB / 253.8 MB, free: 5.133 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003348/0.005731, allocations: 175.3 kB / 253.9 MB, free: 4.961 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.005734, allocations: 0 / 253.9 MB, free: 4.961 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.005735, allocations: 0 / 253.9 MB, free: 4.961 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.005742, allocations: 0 / 253.9 MB, free: 4.961 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000724/0.006466, allocations: 0.5033 MB / 254.4 MB, free: 4.418 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.006513, allocations: 15.98 kB / 254.5 MB, free: 4.402 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.006619, allocations: 44.78 kB / 254.5 MB, free: 4.359 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.006901, allocations: 172.3 kB / 254.7 MB, free: 4.164 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.006939, allocations: 16.88 kB / 254.7 MB, free: 4.148 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.006979, allocations: 28.38 kB / 254.7 MB, free: 4.121 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/0.007403, allocations: 209.7 kB / 254.9 MB, free: 3.895 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.007416, allocations: 4.188 kB / 254.9 MB, free: 3.891 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.007443, allocations: 8.375 kB / 254.9 MB, free: 3.883 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.007458, allocations: 12.31 kB / 254.9 MB, free: 3.871 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.00771, allocations: 90.86 kB / 255 MB, free: 3.785 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.008786, allocations: 0.6812 MB / 255.7 MB, free: 3.062 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.009102, allocations: 135.3 kB / 255.8 MB, free: 2.918 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.009215, allocations: 59.66 kB / 255.9 MB, free: 2.855 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.009236, allocations: 4 kB / 255.9 MB, free: 2.852 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002001/0.009437, allocations: 108.9 kB / 256 MB, free: 2.73 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.705e-06/0.009439, allocations: 3.938 kB / 256 MB, free: 2.727 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003559/0.009795, allocations: 193.9 kB / 256.2 MB, free: 2.531 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.009837, allocations: 59.41 kB / 256.3 MB, free: 2.461 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.009954, allocations: 205.8 kB / 256.5 MB, free: 2.242 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.009978, allocations: 41.7 kB / 256.5 MB, free: 2.195 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.58e-05/0.01005, allocations: 175.5 kB / 256.7 MB, free: 2.02 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.01009, allocations: 67.47 kB / 256.7 MB, free: 1.953 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.04e-05/0.01017, allocations: 83.66 kB / 256.8 MB, free: 1.855 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.01029, allocations: 0.4962 MB / 257.3 MB, free: 1.348 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.53e-05/0.01036, allocations: 44.62 kB / 257.4 MB, free: 1.305 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.01046, allocations: 130.7 kB / 257.5 MB, free: 1.145 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.01061, allocations: 157.4 kB / 257.6 MB, free: 0.957 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.01062, allocations: 4 kB / 257.6 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002376/0.01085, allocations: 225.3 kB / 257.9 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.01087, allocations: 4 kB / 257.9 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.01088, allocations: 4 kB / 257.9 MB, free: 0.7188 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.01089, allocations: 12.16 kB / 257.9 MB, free: 0.707 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.011, allocations: 35.86 kB / 257.9 MB, free: 0.6719 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.01101, allocations: 4 kB / 257.9 MB, free: 0.668 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.317e-05/0.01107, allocations: 27.83 kB / 258 MB, free: 0.6406 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.01109, allocations: 12 kB / 258 MB, free: 0.6289 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.998e-05/0.01119, allocations: 184.5 kB / 258.1 MB, free: 448 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/0.01121, allocations: 19.91 kB / 258.2 MB, free: 428 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002255/0.01144, allocations: 178.4 kB / 258.3 MB, free: 240 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.01144, allocations: 7.938 kB / 258.3 MB, free: 232 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.01145, allocations: 4 kB / 258.3 MB, free: 228 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.01145, allocations: 3.938 kB / 258.4 MB, free: 224 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004832/0.01194, allocations: 0.5049 MB / 258.9 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01194, allocations: 3.938 kB / 258.9 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.313e-05/0.01199, allocations: 23.98 kB / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.01199, allocations: 0 / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.012, allocations: 0 / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.01201, allocations: 4 kB / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01201, allocations: 0 / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/0.01222, allocations: 319.7 kB / 259.2 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.376e-05/0.01224, allocations: 15.89 kB / 259.2 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.01226, allocations: 12 kB / 259.2 MB, free: 15.28 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.778e-05/0.01231, allocations: 8 kB / 259.2 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.134e-05/0.01237, allocations: 23.95 kB / 259.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.01238, allocations: 8 kB / 259.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.573e-05/0.01244, allocations: 135.2 kB / 259.4 MB, free: 15.11 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.01244, allocations: 0 / 259.4 MB, free: 15.11 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002187/0.01265, allocations: 47.89 kB / 259.4 MB, free: 15.06 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001423/0.0128, allocations: 119.1 kB / 259.6 MB, free: 14.94 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002175/0.01301, allocations: 156.7 kB / 259.7 MB, free: 14.78 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01302, allocations: 0 / 259.7 MB, free: 14.78 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.426e-05/0.0131, allocations: 75.53 kB / 259.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.01332, allocations: 31.58 kB / 259.8 MB, free: 14.68 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004604/0.01378, allocations: 319.3 kB / 260.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.656e-05/0.01384, allocations: 80.33 kB / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.393e-05/0.0139, allocations: 26.38 kB / 260.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.01396, allocations: 20.5 kB / 260.3 MB, free: 14.19 MB / 250.7 MB Notification: Performance of SimCode: time 1.333e-06/0.01396, allocations: 0 / 260.3 MB, free: 14.19 MB / 250.7 MB Notification: Performance of Templates: time 0.004625/0.01859, allocations: 1.972 MB / 262.2 MB, free: 12.23 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.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: 2.6502884079236537]