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.001391/0.001391, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.001488/0.001488, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 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.623/1.623, allocations: 230.3 MB / 258 MB, free: 8.211 MB / 206.1 MB
"
[Timeout remaining time 178]
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 0.002151/0.002151, allocations: 55.91 kB / 378.7 MB, free: 2.781 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3371, allocations: 53.36 MB / 432.1 MB, free: 7.062 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003361/0.3404, allocations: 1.505 MB / 433.6 MB, free: 5.555 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0008278/0.3413, allocations: 287.2 kB / 433.9 MB, free: 5.273 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.3414, allocations: 7.875 kB / 433.9 MB, free: 5.266 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.3416, allocations: 27.67 kB / 433.9 MB, free: 5.238 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 4.652e-05/0.3416, allocations: 15.81 kB / 433.9 MB, free: 5.223 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.3421, allocations: 123.8 kB / 434 MB, free: 5.102 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004395/0.3425, allocations: 263.6 kB / 434.3 MB, free: 4.844 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003809/0.3429, allocations: 138.6 kB / 434.4 MB, free: 4.703 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.343, allocations: 91.75 kB / 434.5 MB, free: 4.613 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.3432, allocations: 91.55 kB / 434.6 MB, free: 4.523 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.3433, allocations: 27.98 kB / 434.6 MB, free: 4.496 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.522e-05/0.3434, allocations: 24 kB / 434.7 MB, free: 4.473 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.056e-05/0.3435, allocations: 51.89 kB / 434.7 MB, free: 4.422 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.3436, allocations: 103.5 kB / 434.8 MB, free: 4.32 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004672/0.3441, allocations: 244.7 kB / 435.1 MB, free: 4.086 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3441, allocations: 0 / 435.1 MB, free: 4.086 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.215e-06/0.3441, allocations: 0 / 435.1 MB, free: 4.086 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.452e-05/0.3441, allocations: 0 / 435.1 MB, free: 4.086 MB / 334.1 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.0008838/0.345, allocations: 412.9 kB / 435.5 MB, free: 3.652 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.345, allocations: 12.03 kB / 435.5 MB, free: 3.641 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002635/0.3453, allocations: 28.83 kB / 435.5 MB, free: 3.613 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.3457, allocations: 174.2 kB / 435.7 MB, free: 3.418 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.199e-05/0.3458, allocations: 24.88 kB / 435.7 MB, free: 3.395 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.785e-05/0.3458, allocations: 24.38 kB / 435.7 MB, free: 3.371 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005028/0.3463, allocations: 235.2 kB / 436 MB, free: 3.129 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3463, allocations: 192 / 436 MB, free: 3.129 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.3464, allocations: 15.88 kB / 436 MB, free: 3.113 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.3464, allocations: 8 kB / 436 MB, free: 3.105 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003273/0.3467, allocations: 157.7 kB / 436.1 MB, free: 2.949 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.3478, allocations: 0.655 MB / 436.8 MB, free: 2.25 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.3482, allocations: 158.7 kB / 436.9 MB, free: 2.086 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.3483, allocations: 64.83 kB / 437 MB, free: 2.02 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.3483, allocations: 8 kB / 437 MB, free: 2.012 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.3486, allocations: 122.3 kB / 437.1 MB, free: 1.883 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.3486, allocations: 0 / 437.1 MB, free: 1.883 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.0005328/0.3491, allocations: 213.4 kB / 437.3 MB, free: 1.668 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.3492, allocations: 55.41 kB / 437.4 MB, free: 1.602 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.3493, allocations: 153.6 kB / 437.5 MB, free: 1.445 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.3494, allocations: 37.7 kB / 437.6 MB, free: 1.402 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3495, allocations: 132.9 kB / 437.7 MB, free: 1.266 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.059e-05/0.3495, allocations: 71.47 kB / 437.8 MB, free: 1.195 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.893e-05/0.3496, allocations: 70.02 kB / 437.8 MB, free: 1.117 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001973/0.3498, allocations: 326.8 kB / 438.2 MB, free: 0.7891 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.35, allocations: 60.62 kB / 438.2 MB, free: 0.7305 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.3502, allocations: 136 kB / 438.4 MB, free: 0.5742 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.3504, allocations: 179.1 kB / 438.5 MB, free: 384 kB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3504, allocations: 0 / 438.5 MB, free: 384 kB / 334.1 MB
Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003909/0.3508, allocations: 241.3 kB / 438.8 MB, free: 136 kB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.3508, allocations: 10.44 kB / 438.8 MB, free: 128 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.3509, allocations: 4 kB / 438.8 MB, free: 124 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3509, allocations: 0 / 438.8 MB, free: 124 kB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.351, allocations: 31.92 kB / 438.8 MB, free: 92 kB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.351, allocations: 4.219 kB / 438.8 MB, free: 88 kB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.3511, allocations: 35.72 kB / 438.9 MB, free: 52 kB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.3512, allocations: 12 kB / 438.9 MB, free: 40 kB / 334.1 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 0.0003202/0.3515, allocations: 153.8 kB / 439 MB, free: 15.88 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.567e-05/0.3515, allocations: 11.89 kB / 439 MB, free: 15.87 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.947e-05/0.3516, allocations: 20.92 kB / 439 MB, free: 15.84 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3516, allocations: 4 kB / 439.1 MB, free: 15.84 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3516, allocations: 0 / 439.1 MB, free: 15.84 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3516, allocations: 0 / 439.1 MB, free: 15.84 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000918/0.3525, allocations: 0.5256 MB / 439.6 MB, free: 15.27 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3525, allocations: 0 / 439.6 MB, free: 15.27 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.116e-05/0.3526, allocations: 16 kB / 439.6 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3526, allocations: 0 / 439.6 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.3526, allocations: 4 kB / 439.6 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3526, allocations: 0 / 439.6 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.3526, allocations: 7.984 kB / 439.6 MB, free: 15.24 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.3529, allocations: 279.9 kB / 439.9 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.137e-05/0.353, allocations: 15.88 kB / 439.9 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.353, allocations: 8 kB / 439.9 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.3531, allocations: 11.98 kB / 439.9 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.038e-05/0.3532, allocations: 19.97 kB / 439.9 MB, free: 14.89 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.3532, allocations: 7.938 kB / 439.9 MB, free: 14.89 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001516/0.3533, allocations: 91.27 kB / 440 MB, free: 14.8 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3533, allocations: 0 / 440 MB, free: 14.8 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003024/0.3536, allocations: 55.83 kB / 440.1 MB, free: 14.74 MB / 350.1 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 0.000125/0.3538, allocations: 107.2 kB / 440.2 MB, free: 14.63 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003422/0.3541, allocations: 159.8 kB / 440.3 MB, free: 14.47 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3541, allocations: 0 / 440.3 MB, free: 14.47 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.3542, allocations: 67.92 kB / 440.4 MB, free: 14.41 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.3545, allocations: 23.92 kB / 440.4 MB, free: 14.38 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006586/0.3552, allocations: 319.9 kB / 440.7 MB, free: 14.04 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.3556, allocations: 0.7284 MB / 441.5 MB, free: 13.29 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 7.629e-05/0.3557, allocations: 29.88 kB / 441.5 MB, free: 13.26 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.3557, allocations: 19.44 kB / 441.5 MB, free: 13.24 MB / 350.1 MB
Notification: Performance of SimCode: time 3.81e-07/0.3557, allocations: 0 / 441.5 MB, free: 13.24 MB / 350.1 MB
Notification: Performance of Templates: time 0.005417/0.3611, allocations: 1.787 MB / 443.3 MB, free: 11.46 MB / 350.1 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=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.385636282153428]