Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 84.34 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 159.6 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.026/1.026, allocations: 177 MB / 205.9 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.52e-07/8.52e-07, allocations: 0 / 274.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087e-05/1.172e-05, allocations: 2.312 kB / 274.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001625/0.001637, allocations: 1.512 MB / 275.6 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000419/0.002056, allocations: 281.7 kB / 275.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.282e-05/0.002119, allocations: 4 kB / 275.9 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.078e-05/0.00221, allocations: 27.67 kB / 275.9 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.242e-05/0.002242, allocations: 23.73 kB / 275.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.002487, allocations: 115.8 kB / 276 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.002692, allocations: 268.4 kB / 276.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.002861, allocations: 140.5 kB / 276.4 MB, free: 1.957 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.638e-05/0.002958, allocations: 131.8 kB / 276.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.301e-05/0.003041, allocations: 67.77 kB / 276.6 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.003064, allocations: 24 kB / 276.6 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.405e-05/0.003108, allocations: 29.25 kB / 276.7 MB, free: 1.711 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.225e-05/0.00317, allocations: 59.73 kB / 276.7 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.613e-05/0.003237, allocations: 59.89 kB / 276.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.003481, allocations: 180 kB / 277 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.003483, allocations: 0 / 277 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.92e-07/0.003483, allocations: 2.031 kB / 277 MB, free: 1.418 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.003487, allocations: 0 / 277 MB, free: 1.418 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004679/0.003955, allocations: 0.511 MB / 277.5 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.003987, allocations: 8.031 kB / 277.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004396/0.004427, allocations: 45.33 kB / 277.5 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.004589, allocations: 172.3 kB / 277.7 MB, free: 0.625 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.004613, allocations: 24.86 kB / 277.7 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.004634, allocations: 24.38 kB / 277.7 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.004821, allocations: 189.7 kB / 277.9 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.004829, allocations: 192 / 277.9 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.004844, allocations: 12.38 kB / 277.9 MB, free: 372 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.004852, allocations: 8.359 kB / 278 MB, free: 364 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.259e-05/0.004944, allocations: 79.3 kB / 278 MB, free: 284 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005543/0.005499, allocations: 0.635 MB / 278.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001505/0.005649, allocations: 131.3 kB / 278.8 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.407e-05/0.005693, allocations: 51.59 kB / 278.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.005707, allocations: 4 kB / 278.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.599e-05/0.005803, allocations: 96.86 kB / 278.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.005804, allocations: 0 / 278.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002024/0.006007, allocations: 172.2 kB / 279.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.006039, allocations: 63.34 kB / 279.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.679e-05/0.006136, allocations: 212.5 kB / 279.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.006157, allocations: 37.7 kB / 279.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.94e-05/0.006226, allocations: 179.5 kB / 279.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.47e-05/0.006261, allocations: 63.47 kB / 279.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.00633, allocations: 91.61 kB / 279.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.006438, allocations: 0.4962 MB / 280.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.396e-05/0.006472, allocations: 28.62 kB / 280.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.574e-05/0.006548, allocations: 118.7 kB / 280.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.006665, allocations: 153.3 kB / 280.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.006667, allocations: 4 kB / 280.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001826/0.00685, allocations: 205.3 kB / 280.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.006861, allocations: 4 kB / 280.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.006867, allocations: 4 kB / 280.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-06/0.006876, allocations: 0 / 280.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.545e-05/0.006962, allocations: 39.86 kB / 280.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.006968, allocations: 7.938 kB / 280.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.657e-05/0.007035, allocations: 36.05 kB / 280.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.007047, allocations: 4 kB / 280.8 MB, free: 13.27 MB / 266.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,transition1.condition,transition2.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 0.0001122/0.007159, allocations: 192.4 kB / 281 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.007181, allocations: 19.91 kB / 281 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.185e-05/0.007223, allocations: 20.92 kB / 281.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.007226, allocations: 4 kB / 281.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.007232, allocations: 3.938 kB / 281.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.007237, allocations: 0 / 281.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004205/0.007658, allocations: 456.7 kB / 281.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.00766, allocations: 4 kB / 281.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.642e-05/0.007706, allocations: 15.98 kB / 281.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.00771, allocations: 7.938 kB / 281.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.007718, allocations: 4 kB / 281.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.007719, allocations: 3.938 kB / 281.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.007721, allocations: 3.938 kB / 281.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001694/0.00789, allocations: 296.3 kB / 281.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.279e-05/0.007903, allocations: 19.84 kB / 281.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.007919, allocations: 7.938 kB / 281.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.602e-05/0.007965, allocations: 11.98 kB / 281.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.008005, allocations: 19.97 kB / 281.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.008014, allocations: 8 kB / 281.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.706e-05/0.008051, allocations: 131.2 kB / 282 MB, free: 12 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008051, allocations: 0 / 282 MB, free: 12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001749/0.008226, allocations: 47.89 kB / 282.1 MB, free: 11.95 MB / 266.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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 7.24e-05/0.008298, allocations: 107.1 kB / 282.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001434/0.008441, allocations: 127.3 kB / 282.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-06/0.008442, allocations: 448 / 282.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.423e-05/0.008507, allocations: 72.58 kB / 282.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001872/0.008694, allocations: 20 kB / 282.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003273/0.009021, allocations: 312.1 kB / 282.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.488e-05/0.009066, allocations: 79.84 kB / 282.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.597e-05/0.009112, allocations: 21.94 kB / 282.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.088e-05/0.009193, allocations: 110.2 kB / 282.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of SimCode: time 6.52e-07/0.009193, allocations: 0 / 282.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of Templates: time 0.003937/0.01313, allocations: 1.917 MB / 284.8 MB, free: 9.18 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.8468627189286053]