Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002087/0.002087, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002766/0.002766, allocations: 204.7 kB / 25.23 MB, free: 3.551 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.85/1.85, allocations: 207.6 MB / 236 MB, free: 9.984 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 51.92 kB / 348.4 MB, free: 9.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3536, allocations: 49.17 MB / 397.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003152/0.3568, allocations: 1.674 MB / 399.3 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006778/0.3575, allocations: 262.1 kB / 399.5 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.3576, allocations: 3.281 kB / 399.5 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.3577, allocations: 25.84 kB / 399.5 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.558e-05/0.3578, allocations: 19.86 kB / 399.6 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004539/0.3582, allocations: 129.1 kB / 399.7 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004096/0.3586, allocations: 272.6 kB / 400 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000356/0.359, allocations: 165.9 kB / 400.1 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.3591, allocations: 89.42 kB / 400.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.3593, allocations: 99.73 kB / 400.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.3593, allocations: 23.75 kB / 400.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-05/0.3594, allocations: 29.05 kB / 400.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.957e-05/0.3595, allocations: 60.44 kB / 400.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.3596, allocations: 102.4 kB / 400.5 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.3599, allocations: 261.7 kB / 400.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3599, allocations: 4.75 kB / 400.8 MB, free: 7.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3599, allocations: 0 / 400.8 MB, free: 7.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.36, allocations: 0.9375 kB / 400.8 MB, free: 7.535 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006785/0.3606, allocations: 417.1 kB / 401.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3607, allocations: 14.52 kB / 401.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.3607, allocations: 24.91 kB / 401.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.361, allocations: 175.5 kB / 401.4 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/0.3611, allocations: 21.81 kB / 401.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.385e-05/0.3611, allocations: 30.53 kB / 401.4 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/0.3616, allocations: 273.6 kB / 401.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.3616, allocations: 192 / 401.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.3617, allocations: 15.53 kB / 401.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.3617, allocations: 6.375 kB / 401.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.362, allocations: 165.1 kB / 401.9 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.3631, allocations: 0.9321 MB / 402.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.3634, allocations: 147.1 kB / 403 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.3635, allocations: 63.27 kB / 403 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.3635, allocations: 9.469 kB / 403 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.3637, allocations: 121 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.3637, allocations: 0 / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004641/0.3641, allocations: 211.2 kB / 403.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.3642, allocations: 58.97 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.3643, allocations: 162.9 kB / 403.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.3644, allocations: 34.73 kB / 403.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.407e-05/0.3644, allocations: 146.1 kB / 403.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.956e-05/0.3645, allocations: 60 kB / 403.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.3646, allocations: 79.34 kB / 403.9 MB, free: 5.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.679e-05/0.3647, allocations: 327.6 kB / 404.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.3648, allocations: 62.73 kB / 404.3 MB, free: 4.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.3649, allocations: 141.1 kB / 404.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.3652, allocations: 189.8 kB / 404.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3652, allocations: 5.125 kB / 404.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003794/0.3656, allocations: 257 kB / 404.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3656, allocations: 5.875 kB / 404.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3656, allocations: 2.375 kB / 404.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3656, allocations: 4.344 kB / 404.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.3657, allocations: 33.64 kB / 404.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.3658, allocations: 8.25 kB / 404.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.551e-05/0.3659, allocations: 30.81 kB / 404.9 MB, free: 4.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.3659, allocations: 18.78 kB / 405 MB, free: 4.512 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.000117/0.366, allocations: 152.1 kB / 405.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.366, allocations: 14.91 kB / 405.1 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000347/0.3664, allocations: 188.1 kB / 405.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3664, allocations: 3.953 kB / 405.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3664, allocations: 0 / 405.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.3664, allocations: 2.344 kB / 405.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006801/0.3671, allocations: 0.5664 MB / 405.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3671, allocations: 0 / 405.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.355e-05/0.3671, allocations: 18.28 kB / 405.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.3672, allocations: 5.156 kB / 405.9 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.3672, allocations: 6.453 kB / 405.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3672, allocations: 5.25 kB / 405.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3672, allocations: 1.219 kB / 405.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000302/0.3675, allocations: 273.9 kB / 406.2 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.023e-05/0.3675, allocations: 25.02 kB / 406.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.3675, allocations: 10.73 kB / 406.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.411e-05/0.3676, allocations: 12.86 kB / 406.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.832e-05/0.3677, allocations: 21.53 kB / 406.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.3677, allocations: 6.203 kB / 406.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.295e-05/0.3678, allocations: 103.8 kB / 406.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3678, allocations: 0 / 406.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.3681, allocations: 51.33 kB / 406.4 MB, free: 3.512 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 (step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001379/0.3682, allocations: 106.3 kB / 406.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003709/0.3686, allocations: 169.6 kB / 406.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3686, allocations: 0 / 406.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.3687, allocations: 70.25 kB / 406.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.369, allocations: 23.25 kB / 406.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.3696, allocations: 369.1 kB / 407.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.3698, allocations: 0.7395 MB / 407.9 MB, free: 2.375 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.256e-05/0.3699, allocations: 22.41 kB / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3699, allocations: 0 / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of Templates: time 0.005481/0.3754, allocations: 2.433 MB / 410.3 MB, free: 1.742 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.97142183710821]