Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001713/0.001713, 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.002187/0.002187, 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 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.721/1.721, allocations: 230.6 MB / 258.3 MB, free: 8.008 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3")
translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") [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.001994/0.001994, allocations: 68.75 kB / 379 MB, free: 2.645 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2908, allocations: 53.37 MB / 432.4 MB, free: 6.945 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003435/0.2942, allocations: 1.72 MB / 434.1 MB, free: 5.223 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0008935/0.2951, allocations: 307.1 kB / 434.4 MB, free: 4.922 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.2953, allocations: 7.938 kB / 434.4 MB, free: 4.914 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.2954, allocations: 27.67 kB / 434.4 MB, free: 4.887 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 8.895e-05/0.2955, allocations: 15.81 kB / 434.5 MB, free: 4.871 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004701/0.296, allocations: 123.8 kB / 434.6 MB, free: 4.75 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004134/0.2964, allocations: 279.4 kB / 434.8 MB, free: 4.477 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.2967, allocations: 149.6 kB / 435 MB, free: 4.332 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.2969, allocations: 103.6 kB / 435.1 MB, free: 4.23 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.297, allocations: 103.5 kB / 435.2 MB, free: 4.129 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.825e-05/0.2971, allocations: 24 kB / 435.2 MB, free: 4.105 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.048e-05/0.2972, allocations: 32 kB / 435.3 MB, free: 4.074 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.556e-05/0.2973, allocations: 55.83 kB / 435.3 MB, free: 4.02 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.2974, allocations: 99.52 kB / 435.4 MB, free: 3.922 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003782/0.2978, allocations: 257.9 kB / 435.7 MB, free: 3.672 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2978, allocations: 0 / 435.7 MB, free: 3.672 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.352e-06/0.2978, allocations: 0 / 435.7 MB, free: 3.672 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.204e-05/0.2978, allocations: 3.938 kB / 435.7 MB, free: 3.668 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.0007911/0.2986, allocations: 425.2 kB / 436.1 MB, free: 3.223 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2986, allocations: 8.031 kB / 436.1 MB, free: 3.215 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003015/0.2989, allocations: 36.77 kB / 436.1 MB, free: 3.18 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.2993, allocations: 174.2 kB / 436.3 MB, free: 2.984 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/0.2993, allocations: 24.88 kB / 436.3 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/0.2993, allocations: 24.38 kB / 436.3 MB, free: 2.938 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005246/0.2999, allocations: 269.7 kB / 436.6 MB, free: 2.648 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2999, allocations: 4.188 kB / 436.6 MB, free: 2.645 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.2999, allocations: 11.94 kB / 436.6 MB, free: 2.633 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.2999, allocations: 8 kB / 436.6 MB, free: 2.625 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003364/0.3003, allocations: 169.6 kB / 436.8 MB, free: 2.461 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.3016, allocations: 0.9171 MB / 437.7 MB, free: 1.484 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.3019, allocations: 161.4 kB / 437.9 MB, free: 1.309 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.3021, allocations: 69.64 kB / 437.9 MB, free: 1.234 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.3021, allocations: 4 kB / 437.9 MB, free: 1.23 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.3023, allocations: 137 kB / 438.1 MB, free: 1.078 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.3023, allocations: 3.938 kB / 438.1 MB, free: 1.074 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.0004874/0.3028, allocations: 221.9 kB / 438.3 MB, free: 0.8555 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.3029, allocations: 89.14 kB / 438.4 MB, free: 0.75 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.303, allocations: 153.7 kB / 438.5 MB, free: 0.5898 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.885e-05/0.3031, allocations: 41.64 kB / 438.6 MB, free: 0.543 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3032, allocations: 140.7 kB / 438.7 MB, free: 408 kB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/0.3032, allocations: 67.5 kB / 438.8 MB, free: 340 kB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.3033, allocations: 77.47 kB / 438.8 MB, free: 256 kB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001706/0.3035, allocations: 330.8 kB / 439.2 MB, free: 15.92 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.3036, allocations: 67.97 kB / 439.2 MB, free: 15.85 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.3038, allocations: 136.5 kB / 439.4 MB, free: 15.69 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/0.3041, allocations: 196.8 kB / 439.6 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3041, allocations: 0 / 439.6 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004101/0.3045, allocations: 249.3 kB / 439.8 MB, free: 15.21 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3046, allocations: 11.98 kB / 439.8 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.3046, allocations: 4 kB / 439.8 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3046, allocations: 4 kB / 439.8 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.3047, allocations: 35.92 kB / 439.9 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.3047, allocations: 7.938 kB / 439.9 MB, free: 15.15 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.3048, allocations: 28.12 kB / 439.9 MB, free: 15.12 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.3049, allocations: 12 kB / 439.9 MB, free: 15.11 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.0001833/0.3051, allocations: 165.7 kB / 440.1 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.3051, allocations: 15.91 kB / 440.1 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.283e-05/0.3051, allocations: 12.94 kB / 440.1 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.3051, allocations: 4 kB / 440.1 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3051, allocations: 3.984 kB / 440.1 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3052, allocations: 0 / 440.1 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008207/0.306, allocations: 0.547 MB / 440.7 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.306, allocations: 0 / 440.7 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-05/0.3061, allocations: 19.94 kB / 440.7 MB, free: 14.28 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.3061, allocations: 0 / 440.7 MB, free: 14.28 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.3061, allocations: 4 kB / 440.7 MB, free: 14.28 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.3061, allocations: 7.922 kB / 440.7 MB, free: 14.27 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3061, allocations: 0 / 440.7 MB, free: 14.27 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/0.3064, allocations: 276.1 kB / 441 MB, free: 13.98 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.182e-05/0.3064, allocations: 11.89 kB / 441 MB, free: 13.97 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.3065, allocations: 11.92 kB / 441 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.645e-05/0.3066, allocations: 11.94 kB / 441 MB, free: 13.95 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.851e-05/0.3067, allocations: 23.91 kB / 441 MB, free: 13.92 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.3067, allocations: 11.98 kB / 441 MB, free: 13.91 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 7.512e-05/0.3067, allocations: 91.27 kB / 441.1 MB, free: 13.82 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3067, allocations: 0 / 441.1 MB, free: 13.82 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003086/0.3071, allocations: 59.84 kB / 441.2 MB, free: 13.76 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,transition1.enableFire,step.active,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.000126/0.3072, allocations: 103.2 kB / 441.3 MB, free: 13.65 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003426/0.3075, allocations: 174.5 kB / 441.4 MB, free: 13.48 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3075, allocations: 0 / 441.4 MB, free: 13.48 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000138/0.3077, allocations: 71.77 kB / 441.5 MB, free: 13.41 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.3079, allocations: 20.61 kB / 441.5 MB, free: 13.39 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006449/0.3086, allocations: 344.4 kB / 441.9 MB, free: 13.03 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.309, allocations: 0.7287 MB / 442.6 MB, free: 12.27 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 8.577e-05/0.3091, allocations: 29.88 kB / 442.6 MB, free: 12.24 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.57e-05/0.3091, allocations: 19.44 kB / 442.6 MB, free: 12.22 MB / 350.1 MB
Notification: Performance of SimCode: time 4.21e-07/0.3091, allocations: 0 / 442.6 MB, free: 12.22 MB / 350.1 MB
Notification: Performance of Templates: time 0.00548/0.3146, allocations: 1.817 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_Variant3.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.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: 4.967565705068409]