Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001917/0.001917, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002165/0.002165, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.664/1.664, allocations: 230.3 MB / 258 MB, free: 8.254 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2")
translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 67.89 kB / 378.7 MB, free: 2.801 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3342, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003436/0.3376, allocations: 1.694 MB / 433.8 MB, free: 5.395 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.000839/0.3384, allocations: 299.1 kB / 434.1 MB, free: 5.102 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.3386, allocations: 4 kB / 434.1 MB, free: 5.098 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.3388, allocations: 31.67 kB / 434.1 MB, free: 5.066 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.772e-05/0.3388, allocations: 15.8 kB / 434.1 MB, free: 5.051 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.3393, allocations: 123.8 kB / 434.3 MB, free: 4.93 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004139/0.3397, allocations: 275.5 kB / 434.5 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003981/0.3401, allocations: 171.4 kB / 434.7 MB, free: 4.488 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.3402, allocations: 87.7 kB / 434.8 MB, free: 4.402 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.3404, allocations: 111.5 kB / 434.9 MB, free: 4.293 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.982e-05/0.3405, allocations: 20 kB / 434.9 MB, free: 4.273 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.479e-05/0.3406, allocations: 28 kB / 434.9 MB, free: 4.246 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.101e-05/0.3406, allocations: 51.84 kB / 435 MB, free: 4.195 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.00017/0.3408, allocations: 107.5 kB / 435.1 MB, free: 4.09 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.00054/0.3414, allocations: 260.6 kB / 435.3 MB, free: 3.84 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3414, allocations: 0 / 435.3 MB, free: 3.84 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.813e-06/0.3414, allocations: 3.938 kB / 435.3 MB, free: 3.836 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.638e-05/0.3414, allocations: 3.938 kB / 435.4 MB, free: 3.832 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: 60
 * Number of variables: 60
Notification: Performance of Generate backend data structure: time 0.0009273/0.3423, allocations: 429.2 kB / 435.8 MB, free: 3.379 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.3424, allocations: 8.031 kB / 435.8 MB, free: 3.371 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002694/0.3426, allocations: 32.78 kB / 435.8 MB, free: 3.34 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.3431, allocations: 174.2 kB / 436 MB, free: 3.145 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.054e-05/0.3431, allocations: 20.88 kB / 436 MB, free: 3.125 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.026e-05/0.3432, allocations: 28.38 kB / 436 MB, free: 3.098 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.3437, allocations: 273.7 kB / 436.3 MB, free: 2.805 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.3438, allocations: 192 / 436.3 MB, free: 2.805 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.855e-05/0.3438, allocations: 15.94 kB / 436.3 MB, free: 2.789 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.3438, allocations: 4 kB / 436.3 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004709/0.3443, allocations: 165.6 kB / 436.5 MB, free: 2.625 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.3458, allocations: 0.9249 MB / 437.4 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.3462, allocations: 161.4 kB / 437.6 MB, free: 1.469 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.3464, allocations: 77.62 kB / 437.6 MB, free: 1.387 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.3464, allocations: 0 / 437.6 MB, free: 1.387 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.3467, allocations: 136 kB / 437.8 MB, free: 1.238 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.3467, allocations: 0 / 437.8 MB, free: 1.238 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.0005666/0.3472, allocations: 225.3 kB / 438 MB, free: 1.012 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.815e-05/0.3473, allocations: 81.11 kB / 438.1 MB, free: 0.9141 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.3475, allocations: 157.7 kB / 438.2 MB, free: 0.75 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.3476, allocations: 37.7 kB / 438.3 MB, free: 0.707 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.3477, allocations: 144.8 kB / 438.4 MB, free: 0.5586 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.585e-05/0.3478, allocations: 59.52 kB / 438.5 MB, free: 0.5 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.3479, allocations: 81.64 kB / 438.5 MB, free: 424 kB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.000203/0.3481, allocations: 334.8 kB / 438.9 MB, free: 80 kB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.3483, allocations: 67.88 kB / 438.9 MB, free: 12 kB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.3485, allocations: 140.5 kB / 439.1 MB, free: 15.84 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003153/0.3488, allocations: 192.8 kB / 439.3 MB, free: 15.62 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3488, allocations: 4 kB / 439.3 MB, free: 15.62 MB / 350.1 MB
Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004455/0.3493, allocations: 253.3 kB / 439.5 MB, free: 15.37 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3493, allocations: 4 kB / 439.5 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3493, allocations: 4 kB / 439.5 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.3493, allocations: 4 kB / 439.5 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.3495, allocations: 35.86 kB / 439.6 MB, free: 15.32 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3495, allocations: 4 kB / 439.6 MB, free: 15.32 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.3496, allocations: 40.05 kB / 439.6 MB, free: 15.28 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.3496, allocations: 12 kB / 439.6 MB, free: 15.27 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 10
 * Number of states: 0 ()
 * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (41):
 * Single equations (assignments): 41
 * 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.0001933/0.3498, allocations: 153.7 kB / 439.8 MB, free: 15.11 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.061e-05/0.3498, allocations: 19.88 kB / 439.8 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.01e-05/0.3499, allocations: 20.94 kB / 439.8 MB, free: 15.07 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3499, allocations: 0 / 439.8 MB, free: 15.07 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.3499, allocations: 4 kB / 439.8 MB, free: 15.06 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3499, allocations: 0 / 439.8 MB, free: 15.06 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008424/0.3508, allocations: 0.5515 MB / 440.4 MB, free: 14.45 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3508, allocations: 0 / 440.4 MB, free: 14.45 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.688e-05/0.3509, allocations: 19.92 kB / 440.4 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3509, allocations: 3.938 kB / 440.4 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.3509, allocations: 4 kB / 440.4 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.3509, allocations: 7.938 kB / 440.4 MB, free: 14.42 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3509, allocations: 0 / 440.4 MB, free: 14.42 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/0.3513, allocations: 280.1 kB / 440.7 MB, free: 14.12 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.743e-05/0.3513, allocations: 19.84 kB / 440.7 MB, free: 14.11 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.3513, allocations: 7.938 kB / 440.7 MB, free: 14.1 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.856e-05/0.3514, allocations: 11.92 kB / 440.7 MB, free: 14.09 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.772e-05/0.3515, allocations: 19.97 kB / 440.7 MB, free: 14.07 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.3515, allocations: 8 kB / 440.7 MB, free: 14.06 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 8.046e-05/0.3516, allocations: 95.27 kB / 440.8 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.3516, allocations: 0 / 440.8 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003268/0.3519, allocations: 55.89 kB / 440.9 MB, free: 13.91 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps)
 * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (24):
 * Single equations (assignments): 19
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 5
 * 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.0001516/0.3521, allocations: 99.23 kB / 441 MB, free: 13.8 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003843/0.3525, allocations: 175.7 kB / 441.1 MB, free: 13.63 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3525, allocations: 4 kB / 441.1 MB, free: 13.63 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.3526, allocations: 67.78 kB / 441.2 MB, free: 13.56 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.3529, allocations: 28.27 kB / 441.2 MB, free: 13.54 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007481/0.3537, allocations: 336.3 kB / 441.6 MB, free: 13.18 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.3543, allocations: 0.7365 MB / 442.3 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 8.608e-05/0.3543, allocations: 21.95 kB / 442.3 MB, free: 12.39 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.903e-05/0.3544, allocations: 23.42 kB / 442.4 MB, free: 12.37 MB / 350.1 MB
Notification: Performance of SimCode: time 2.7e-07/0.3544, allocations: 0 / 442.4 MB, free: 12.37 MB / 350.1 MB
Notification: Performance of Templates: time 0.005894/0.3603, allocations: 1.831 MB / 444.2 MB, free: 10.55 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.279563014395535]