Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 106 kB / 21.18 MB, free: 0.707 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002374/0.002374, allocations: 183.9 kB / 24.47 MB, free: 4.074 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 207.6 MB / 235.2 MB, free: 10 MB / 190.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample")
translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 47.92 kB / 347.6 MB, free: 9.582 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3345, allocations: 49.16 MB / 396.8 MB, free: 9.512 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003364/0.3378, allocations: 1.469 MB / 398.3 MB, free: 8.492 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0006948/0.3385, allocations: 249.1 kB / 398.5 MB, free: 8.324 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.3386, allocations: 7.719 kB / 398.5 MB, free: 8.32 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.3388, allocations: 21.88 kB / 398.5 MB, free: 8.305 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.499e-05/0.3388, allocations: 17.88 kB / 398.5 MB, free: 8.289 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004956/0.3393, allocations: 126.8 kB / 398.7 MB, free: 8.219 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003481/0.3397, allocations: 263.6 kB / 398.9 MB, free: 8.105 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002962/0.34, allocations: 147 kB / 399.1 MB, free: 8.035 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.3401, allocations: 86.78 kB / 399.2 MB, free: 7.992 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.3402, allocations: 94.86 kB / 399.2 MB, free: 7.938 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.378e-05/0.3403, allocations: 27.06 kB / 399.3 MB, free: 7.934 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.73e-05/0.3404, allocations: 32.17 kB / 399.3 MB, free: 7.93 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.212e-05/0.3404, allocations: 56.42 kB / 399.4 MB, free: 7.895 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.3405, allocations: 99.94 kB / 399.5 MB, free: 7.824 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.3409, allocations: 241.2 kB / 399.7 MB, free: 7.723 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3409, allocations: 0 / 399.7 MB, free: 7.723 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.402e-06/0.3409, allocations: 0 / 399.7 MB, free: 7.723 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 7.995e-06/0.3409, allocations: 1.125 kB / 399.7 MB, free: 7.723 MB / 318.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.000708/0.3416, allocations: 419 kB / 400.1 MB, free: 7.367 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.3417, allocations: 13.05 kB / 400.1 MB, free: 7.363 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.127e-05/0.3418, allocations: 24.52 kB / 400.1 MB, free: 7.352 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.3421, allocations: 166.5 kB / 400.3 MB, free: 7.195 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.3421, allocations: 25.48 kB / 400.3 MB, free: 7.184 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/0.3422, allocations: 24.5 kB / 400.4 MB, free: 7.176 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.3427, allocations: 241.6 kB / 400.6 MB, free: 7.055 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.3427, allocations: 1.312 kB / 400.6 MB, free: 7.055 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.375e-05/0.3428, allocations: 13.94 kB / 400.6 MB, free: 7.043 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.3428, allocations: 5.781 kB / 400.6 MB, free: 7.043 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000373/0.3432, allocations: 153.9 kB / 400.8 MB, free: 6.988 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.3443, allocations: 0.6697 MB / 401.4 MB, free: 6.492 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.3447, allocations: 157 kB / 401.6 MB, free: 6.414 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.3449, allocations: 73.05 kB / 401.7 MB, free: 6.379 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.3449, allocations: 6.344 kB / 401.7 MB, free: 6.375 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002938/0.3452, allocations: 130.5 kB / 401.8 MB, free: 6.289 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=24): time 2.164e-06/0.3452, allocations: 3.938 kB / 401.8 MB, free: 6.285 MB / 318.1 MB
Notification: Performance of matching and sorting (n=24): time 0.0006704/0.3459, allocations: 218.1 kB / 402 MB, free: 6.195 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.3459, allocations: 58.78 kB / 402.1 MB, free: 6.129 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.3461, allocations: 151.4 kB / 402.2 MB, free: 6 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.3461, allocations: 34.61 kB / 402.2 MB, free: 5.965 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3463, allocations: 138.8 kB / 402.4 MB, free: 5.84 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.534e-05/0.3463, allocations: 61.17 kB / 402.4 MB, free: 5.793 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.3465, allocations: 77.5 kB / 402.5 MB, free: 5.746 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001301/0.3466, allocations: 322.3 kB / 402.8 MB, free: 5.43 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.3468, allocations: 61.94 kB / 402.9 MB, free: 5.41 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.347, allocations: 128.8 kB / 403 MB, free: 5.316 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003289/0.3473, allocations: 175.1 kB / 403.2 MB, free: 5.191 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.3473, allocations: 1 kB / 403.2 MB, free: 5.191 MB / 318.1 MB
Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005223/0.3478, allocations: 251.2 kB / 403.4 MB, free: 5.07 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.3479, allocations: 8.062 kB / 403.4 MB, free: 5.07 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3479, allocations: 1.031 kB / 403.4 MB, free: 5.07 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.892e-05/0.3479, allocations: 3.469 kB / 403.4 MB, free: 5.07 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.3481, allocations: 28.2 kB / 403.5 MB, free: 5.066 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.3481, allocations: 3.781 kB / 403.5 MB, free: 5.066 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.3483, allocations: 37.47 kB / 403.5 MB, free: 5.039 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.3483, allocations: 11.27 kB / 403.5 MB, free: 5.039 MB / 318.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.0001997/0.3485, allocations: 152.7 kB / 403.7 MB, free: 4.898 MB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.3486, allocations: 18.94 kB / 403.7 MB, free: 4.887 MB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004499/0.349, allocations: 195.3 kB / 403.9 MB, free: 4.793 MB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.349, allocations: 5.219 kB / 403.9 MB, free: 4.793 MB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.349, allocations: 5.062 kB / 403.9 MB, free: 4.789 MB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.349, allocations: 4 kB / 403.9 MB, free: 4.785 MB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008817/0.3499, allocations: 0.5337 MB / 404.4 MB, free: 4.406 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3499, allocations: 0 / 404.4 MB, free: 4.406 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.524e-05/0.35, allocations: 19.67 kB / 404.4 MB, free: 4.402 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.35, allocations: 2.109 kB / 404.5 MB, free: 4.402 MB / 318.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.35, allocations: 2.234 kB / 404.5 MB, free: 4.402 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.35, allocations: 1.469 kB / 404.5 MB, free: 4.402 MB / 318.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.35, allocations: 3.938 kB / 404.5 MB, free: 4.398 MB / 318.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003909/0.3504, allocations: 284 kB / 404.7 MB, free: 4.207 MB / 318.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.795e-05/0.3505, allocations: 17.81 kB / 404.8 MB, free: 4.195 MB / 318.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.3505, allocations: 11.42 kB / 404.8 MB, free: 4.188 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.657e-05/0.3506, allocations: 7.984 kB / 404.8 MB, free: 4.184 MB / 318.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3507, allocations: 26.98 kB / 404.8 MB, free: 4.176 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.3507, allocations: 7 kB / 404.8 MB, free: 4.176 MB / 318.1 MB
Notification: Performance of sorting global known variables: time 6.561e-05/0.3508, allocations: 92.95 kB / 404.9 MB, free: 4.098 MB / 318.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.3508, allocations: 0 / 404.9 MB, free: 4.098 MB / 318.1 MB
Notification: Performance of remove unused functions: time 0.0003888/0.3512, allocations: 54.64 kB / 404.9 MB, free: 4.078 MB / 318.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26):
 * Single equations (assignments): 22
 * 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.0001725/0.3514, allocations: 109.9 kB / 405.1 MB, free: 3.98 MB / 318.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004612/0.3518, allocations: 170.1 kB / 405.2 MB, free: 3.93 MB / 318.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3518, allocations: 0 / 405.2 MB, free: 3.93 MB / 318.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.352, allocations: 72.83 kB / 405.3 MB, free: 3.91 MB / 318.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.3523, allocations: 22.94 kB / 405.3 MB, free: 3.898 MB / 318.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006563/0.353, allocations: 335.3 kB / 405.6 MB, free: 3.668 MB / 318.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.3532, allocations: 0.7278 MB / 406.4 MB, free: 2.973 MB / 318.1 MB
Notification: Performance of simCode: alias equations: time 9.46e-05/0.3533, allocations: 34.17 kB / 406.4 MB, free: 2.961 MB / 318.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.3533, allocations: 22.55 kB / 406.4 MB, free: 2.953 MB / 318.1 MB
Notification: Performance of SimCode: time 7.62e-07/0.3534, allocations: 0 / 406.4 MB, free: 2.953 MB / 318.1 MB
Notification: Performance of Templates: time 0.007453/0.3608, allocations: 2.011 MB / 408.4 MB, free: 2.645 MB / 318.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.081418265588582]