Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001967/0.001967, 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.002648/0.002648, allocations: 213.7 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.6/1.6, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 63.89 kB / 379 MB, free: 2.68 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3372, allocations: 53.37 MB / 432.4 MB, free: 6.973 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004813/0.342, allocations: 1.687 MB / 434.1 MB, free: 5.281 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001127/0.3431, allocations: 299.1 kB / 434.4 MB, free: 4.988 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.3433, allocations: 3.938 kB / 434.4 MB, free: 4.984 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000231/0.3435, allocations: 31.67 kB / 434.4 MB, free: 4.953 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 8.626e-05/0.3436, allocations: 19.8 kB / 434.4 MB, free: 4.934 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006817/0.3443, allocations: 119.8 kB / 434.5 MB, free: 4.816 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006068/0.3449, allocations: 279.4 kB / 434.8 MB, free: 4.543 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004545/0.3453, allocations: 171.5 kB / 435 MB, free: 4.371 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.3455, allocations: 91.72 kB / 435.1 MB, free: 4.281 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.3458, allocations: 111.5 kB / 435.2 MB, free: 4.172 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.435e-05/0.3458, allocations: 24 kB / 435.2 MB, free: 4.148 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.346, allocations: 31.94 kB / 435.2 MB, free: 4.117 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.3461, allocations: 59.81 kB / 435.3 MB, free: 4.059 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000179/0.3463, allocations: 99.53 kB / 435.4 MB, free: 3.961 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005555/0.3468, allocations: 260.6 kB / 435.6 MB, free: 3.711 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3468, allocations: 7.938 kB / 435.6 MB, free: 3.703 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.935e-06/0.3468, allocations: 0 / 435.6 MB, free: 3.703 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.185e-06/0.3468, allocations: 0 / 435.6 MB, free: 3.703 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.001117/0.3479, allocations: 429.2 kB / 436.1 MB, free: 3.25 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.348, allocations: 8.031 kB / 436.1 MB, free: 3.242 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004901/0.3485, allocations: 32.78 kB / 436.1 MB, free: 3.211 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004954/0.349, allocations: 174.2 kB / 436.3 MB, free: 3.016 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.569e-05/0.349, allocations: 24.88 kB / 436.3 MB, free: 2.992 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.417e-05/0.3491, allocations: 32.36 kB / 436.3 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008138/0.3499, allocations: 269.7 kB / 436.6 MB, free: 2.672 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.3499, allocations: 192 / 436.6 MB, free: 2.672 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.018e-05/0.35, allocations: 11.92 kB / 436.6 MB, free: 2.66 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.35, allocations: 8 kB / 436.6 MB, free: 2.652 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006051/0.3506, allocations: 161.6 kB / 436.8 MB, free: 2.496 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.3527, allocations: 0.9249 MB / 437.7 MB, free: 1.516 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005755/0.3533, allocations: 161.4 kB / 437.9 MB, free: 1.34 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/0.3535, allocations: 69.62 kB / 437.9 MB, free: 1.266 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.3536, allocations: 4 kB / 437.9 MB, free: 1.262 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003864/0.354, allocations: 141 kB / 438.1 MB, free: 1.105 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 2.495e-06/0.354, allocations: 0 / 438.1 MB, free: 1.105 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.0008346/0.3548, allocations: 221.8 kB / 438.3 MB, free: 0.8867 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.3549, allocations: 85.11 kB / 438.4 MB, free: 0.7852 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.3552, allocations: 156.3 kB / 438.5 MB, free: 0.625 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.232e-05/0.3552, allocations: 41.69 kB / 438.6 MB, free: 0.5781 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.3554, allocations: 140.8 kB / 438.7 MB, free: 444 kB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.3555, allocations: 63.53 kB / 438.8 MB, free: 380 kB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.3557, allocations: 85.75 kB / 438.8 MB, free: 288 kB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002576/0.356, allocations: 326.8 kB / 439.2 MB, free: 15.95 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.3562, allocations: 71.69 kB / 439.2 MB, free: 15.88 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.3566, allocations: 132.5 kB / 439.4 MB, free: 15.72 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005643/0.3571, allocations: 208.8 kB / 439.6 MB, free: 15.49 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3571, allocations: 0 / 439.6 MB, free: 15.49 MB / 350.1 MB
Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007773/0.3579, allocations: 249.3 kB / 439.8 MB, free: 15.24 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.3579, allocations: 8 kB / 439.8 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.3579, allocations: 0 / 439.8 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.165e-05/0.358, allocations: 4.281 kB / 439.8 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/0.3583, allocations: 39.92 kB / 439.9 MB, free: 15.19 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.681e-05/0.3583, allocations: 4 kB / 439.9 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.3585, allocations: 31.77 kB / 439.9 MB, free: 15.15 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.3585, allocations: 15.94 kB / 439.9 MB, free: 15.14 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.0003124/0.3588, allocations: 157.7 kB / 440.1 MB, free: 14.97 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.876e-05/0.3589, allocations: 15.95 kB / 440.1 MB, free: 14.96 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.486e-05/0.3589, allocations: 12.94 kB / 440.1 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-05/0.359, allocations: 4 kB / 440.1 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.359, allocations: 4 kB / 440.1 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.359, allocations: 0 / 440.1 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.3603, allocations: 0.547 MB / 440.6 MB, free: 14.33 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3603, allocations: 3.938 kB / 440.6 MB, free: 14.33 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.3604, allocations: 23.98 kB / 440.7 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.3605, allocations: 0 / 440.7 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.3605, allocations: 4 kB / 440.7 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.3605, allocations: 7.875 kB / 440.7 MB, free: 14.29 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3605, allocations: 0 / 440.7 MB, free: 14.29 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000595/0.3611, allocations: 280.1 kB / 441 MB, free: 14 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.713e-05/0.3611, allocations: 15.84 kB / 441 MB, free: 13.98 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.099e-05/0.3612, allocations: 8 kB / 441 MB, free: 13.98 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.3613, allocations: 11.92 kB / 441 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.3615, allocations: 23.97 kB / 441 MB, free: 13.94 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.3615, allocations: 4 kB / 441 MB, free: 13.94 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.000118/0.3616, allocations: 99.27 kB / 441.1 MB, free: 13.84 MB / 350.1 MB
Notification: Performance of sort global known variables: time 2.21e-07/0.3616, allocations: 0 / 441.1 MB, free: 13.84 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0005961/0.3622, allocations: 47.89 kB / 441.2 MB, free: 13.79 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.0002255/0.3624, allocations: 115.2 kB / 441.3 MB, free: 13.67 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006353/0.3631, allocations: 170.6 kB / 441.4 MB, free: 13.51 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3631, allocations: 4.5 kB / 441.4 MB, free: 13.5 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.3633, allocations: 75.78 kB / 441.5 MB, free: 13.43 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.3638, allocations: 23.92 kB / 441.5 MB, free: 13.41 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.3649, allocations: 340.4 kB / 441.9 MB, free: 13.05 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006413/0.3655, allocations: 0.7327 MB / 442.6 MB, free: 12.29 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001496/0.3657, allocations: 21.94 kB / 442.6 MB, free: 12.26 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.3658, allocations: 19.44 kB / 442.6 MB, free: 12.24 MB / 350.1 MB
Notification: Performance of SimCode: time 4.51e-07/0.3658, allocations: 0 / 442.6 MB, free: 12.24 MB / 350.1 MB
Notification: Performance of Templates: time 0.009538/0.3753, allocations: 1.837 MB / 444.5 MB, free: 10.41 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.029994583688676]