Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001294/0.001294, allocations: 106.5 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.001572/0.001572, 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 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.59/1.59, allocations: 230.6 MB / 258.2 MB, free: 8.066 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample")
translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") [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.001982/0.001982, allocations: 71.88 kB / 379 MB, free: 2.695 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3038, allocations: 53.36 MB / 432.4 MB, free: 6.996 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003646/0.3075, allocations: 1.51 MB / 433.9 MB, free: 5.48 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0008077/0.3083, allocations: 279.2 kB / 434.2 MB, free: 5.207 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.3084, allocations: 7.875 kB / 434.2 MB, free: 5.199 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.3085, allocations: 27.67 kB / 434.2 MB, free: 5.172 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.224e-05/0.3086, allocations: 19.8 kB / 434.2 MB, free: 5.152 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004166/0.309, allocations: 123.8 kB / 434.3 MB, free: 5.031 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003602/0.3093, allocations: 263.6 kB / 434.6 MB, free: 4.773 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003075/0.3096, allocations: 134.6 kB / 434.7 MB, free: 4.637 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.3098, allocations: 91.72 kB / 434.8 MB, free: 4.547 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.3099, allocations: 95.53 kB / 434.9 MB, free: 4.453 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.31, allocations: 24 kB / 434.9 MB, free: 4.43 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.219e-05/0.3101, allocations: 31.98 kB / 435 MB, free: 4.398 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.261e-05/0.3101, allocations: 51.89 kB / 435 MB, free: 4.348 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.3103, allocations: 95.53 kB / 435.1 MB, free: 4.254 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.3107, allocations: 248.6 kB / 435.3 MB, free: 4.016 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3107, allocations: 0 / 435.3 MB, free: 4.016 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.053e-06/0.3107, allocations: 0 / 435.3 MB, free: 4.016 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.248e-06/0.3107, allocations: 4 kB / 435.3 MB, free: 4.012 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.0009356/0.3116, allocations: 413 kB / 435.8 MB, free: 3.578 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.3117, allocations: 8.031 kB / 435.8 MB, free: 3.57 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003557/0.312, allocations: 28.83 kB / 435.8 MB, free: 3.543 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.3124, allocations: 182.1 kB / 436 MB, free: 3.34 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.437e-05/0.3125, allocations: 20.88 kB / 436 MB, free: 3.32 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.446e-05/0.3125, allocations: 28.36 kB / 436 MB, free: 3.293 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/0.3131, allocations: 239.2 kB / 436.2 MB, free: 3.047 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.3131, allocations: 192 / 436.2 MB, free: 3.047 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.3131, allocations: 7.938 kB / 436.3 MB, free: 3.039 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.3131, allocations: 8 kB / 436.3 MB, free: 3.031 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003277/0.3135, allocations: 157.6 kB / 436.4 MB, free: 2.875 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.3147, allocations: 0.6589 MB / 437.1 MB, free: 2.172 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.3151, allocations: 159.7 kB / 437.2 MB, free: 2.008 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.3152, allocations: 66.16 kB / 437.3 MB, free: 1.941 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.3152, allocations: 8 kB / 437.3 MB, free: 1.934 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.3155, allocations: 119.3 kB / 437.4 MB, free: 1.805 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.3155, allocations: 0 / 437.4 MB, free: 1.805 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.0005277/0.316, allocations: 217.8 kB / 437.6 MB, free: 1.59 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.316, allocations: 55.41 kB / 437.7 MB, free: 1.523 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.3162, allocations: 157.3 kB / 437.8 MB, free: 1.363 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.3162, allocations: 33.7 kB / 437.9 MB, free: 1.324 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.3164, allocations: 132.9 kB / 438 MB, free: 1.188 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.881e-05/0.3165, allocations: 67.47 kB / 438.1 MB, free: 1.121 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.3166, allocations: 74.02 kB / 438.1 MB, free: 1.039 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.000209/0.3168, allocations: 326.8 kB / 438.5 MB, free: 0.7109 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.3169, allocations: 60.62 kB / 438.5 MB, free: 0.6523 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.3171, allocations: 132 kB / 438.7 MB, free: 0.5 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.3174, allocations: 183.1 kB / 438.8 MB, free: 304 kB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3174, allocations: 0 / 438.8 MB, free: 304 kB / 334.1 MB
Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003904/0.3178, allocations: 241.3 kB / 439.1 MB, free: 56 kB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3178, allocations: 6.969 kB / 439.1 MB, free: 52 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.3178, allocations: 7.938 kB / 439.1 MB, free: 44 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3178, allocations: 4 kB / 439.1 MB, free: 40 kB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.3179, allocations: 27.92 kB / 439.1 MB, free: 12 kB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.318, allocations: 8.203 kB / 439.1 MB, free: 4 kB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.3181, allocations: 35.94 kB / 439.2 MB, free: 15.96 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.3181, allocations: 8 kB / 439.2 MB, free: 15.96 MB / 350.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.0001695/0.3183, allocations: 161.7 kB / 439.3 MB, free: 15.79 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.255e-05/0.3183, allocations: 11.89 kB / 439.3 MB, free: 15.78 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.3183, allocations: 16.94 kB / 439.3 MB, free: 15.76 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.3183, allocations: 7.984 kB / 439.4 MB, free: 15.75 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3183, allocations: 0 / 439.4 MB, free: 15.75 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3183, allocations: 0 / 439.4 MB, free: 15.75 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007125/0.3191, allocations: 0.5209 MB / 439.9 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3191, allocations: 0 / 439.9 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.465e-05/0.3191, allocations: 15.98 kB / 439.9 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3191, allocations: 0 / 439.9 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.3192, allocations: 8 kB / 439.9 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3192, allocations: 0 / 439.9 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3192, allocations: 0 / 439.9 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004279/0.3196, allocations: 279.8 kB / 440.2 MB, free: 14.87 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.696e-05/0.3196, allocations: 11.89 kB / 440.2 MB, free: 14.86 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.3196, allocations: 8 kB / 440.2 MB, free: 14.85 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.461e-05/0.3197, allocations: 4 kB / 440.2 MB, free: 14.84 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.486e-05/0.3198, allocations: 23.95 kB / 440.2 MB, free: 14.82 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.3198, allocations: 11.94 kB / 440.2 MB, free: 14.81 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 7.164e-05/0.3199, allocations: 91.27 kB / 440.3 MB, free: 14.72 MB / 350.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.3199, allocations: 0 / 440.3 MB, free: 14.72 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0002984/0.3202, allocations: 51.84 kB / 440.4 MB, free: 14.67 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.0001242/0.3203, allocations: 107.2 kB / 440.5 MB, free: 14.55 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003456/0.3207, allocations: 155.8 kB / 440.6 MB, free: 14.4 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3207, allocations: 4 kB / 440.6 MB, free: 14.4 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.3208, allocations: 70.75 kB / 440.7 MB, free: 14.33 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.3211, allocations: 27.92 kB / 440.7 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006863/0.3218, allocations: 323.9 kB / 441 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005301/0.3223, allocations: 0.7245 MB / 441.8 MB, free: 13.21 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 6.978e-05/0.3224, allocations: 21.95 kB / 441.8 MB, free: 13.19 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.596e-05/0.3224, allocations: 27.38 kB / 441.8 MB, free: 13.16 MB / 350.1 MB
Notification: Performance of SimCode: time 2.7e-07/0.3224, allocations: 0 / 441.8 MB, free: 13.16 MB / 350.1 MB
Notification: Performance of Templates: time 0.005603/0.328, allocations: 1.78 MB / 443.6 MB, free: 11.39 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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: 4.811995852738619]