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.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.001769/0.001769, 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.002097/0.002097, allocations: 204.8 kB / 25.24 MB, free: 3.547 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.556/1.556, allocations: 207.6 MB / 236 MB, free: 9.973 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,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.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.002183/0.002183, allocations: 59.91 kB / 348.4 MB, free: 9.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3591, allocations: 49.16 MB / 397.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002689/0.3618, allocations: 1.478 MB / 399.1 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006318/0.3624, allocations: 240.6 kB / 399.3 MB, free: 8.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.3625, allocations: 6.906 kB / 399.3 MB, free: 8.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.3627, allocations: 25.91 kB / 399.3 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.394e-05/0.3627, allocations: 23.09 kB / 399.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.3631, allocations: 118.9 kB / 399.5 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003431/0.3635, allocations: 266.5 kB / 399.7 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002954/0.3638, allocations: 134.8 kB / 399.9 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.997e-05/0.3639, allocations: 91.61 kB / 399.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.364, allocations: 98.64 kB / 400 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.3641, allocations: 22.47 kB / 400.1 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.446e-05/0.3642, allocations: 34.39 kB / 400.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.569e-05/0.3642, allocations: 57.97 kB / 400.2 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.26e-05/0.3643, allocations: 92 kB / 400.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003344/0.3646, allocations: 241.2 kB / 400.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3646, allocations: 0 / 400.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3647, allocations: 0.6094 kB / 400.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.3647, allocations: 1.406 kB / 400.5 MB, free: 7.719 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.0006214/0.3653, allocations: 422.4 kB / 400.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3653, allocations: 13.3 kB / 400.9 MB, free: 7.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.557e-05/0.3654, allocations: 32.53 kB / 400.9 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.3657, allocations: 166.3 kB / 401.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.3657, allocations: 20.52 kB / 401.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.375e-05/0.3657, allocations: 26.97 kB / 401.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004192/0.3662, allocations: 244.8 kB / 401.4 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3662, allocations: 192 / 401.4 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.3662, allocations: 10.94 kB / 401.4 MB, free: 7.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.3662, allocations: 5.5 kB / 401.4 MB, free: 7.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002858/0.3665, allocations: 165.6 kB / 401.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009385/0.3674, allocations: 0.6655 MB / 402.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.3677, allocations: 152.9 kB / 402.4 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3679, allocations: 73.41 kB / 402.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.3679, allocations: 10.23 kB / 402.5 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.3681, allocations: 122.4 kB / 402.6 MB, free: 6.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.332e-06/0.3681, allocations: 1.031 kB / 402.6 MB, free: 6.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.000413/0.3685, allocations: 222.2 kB / 402.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.3685, allocations: 55.7 kB / 402.9 MB, free: 6.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.3686, allocations: 147.9 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.3686, allocations: 42.77 kB / 403 MB, free: 5.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.625e-05/0.3687, allocations: 126.7 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.371e-05/0.3687, allocations: 67.56 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.3688, allocations: 72.86 kB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.264e-05/0.3689, allocations: 328.4 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.369, allocations: 62.84 kB / 403.7 MB, free: 5.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.3692, allocations: 128.8 kB / 403.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.3694, allocations: 174.7 kB / 404 MB, free: 5.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3694, allocations: 0 / 404 MB, free: 5.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003509/0.3697, allocations: 244.8 kB / 404.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.3698, allocations: 5.781 kB / 404.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3698, allocations: 2 kB / 404.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.3698, allocations: 3.594 kB / 404.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.3699, allocations: 36.39 kB / 404.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.37, allocations: 3.438 kB / 404.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.906e-05/0.3701, allocations: 29.16 kB / 404.3 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.3701, allocations: 15.48 kB / 404.3 MB, free: 5.035 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.0001129/0.3702, allocations: 153.9 kB / 404.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.3702, allocations: 18.5 kB / 404.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003139/0.3705, allocations: 201.2 kB / 404.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3705, allocations: 6.969 kB / 404.7 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3705, allocations: 0 / 404.7 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3705, allocations: 1.469 kB / 404.7 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000651/0.3712, allocations: 0.5323 MB / 405.2 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3712, allocations: 4.5 kB / 405.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.3713, allocations: 14.88 kB / 405.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3713, allocations: 1.25 kB / 405.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.3713, allocations: 7.562 kB / 405.2 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3713, allocations: 8.969 kB / 405.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3713, allocations: 7.938 kB / 405.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000302/0.3716, allocations: 281.2 kB / 405.5 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.891e-05/0.3716, allocations: 17.19 kB / 405.6 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.3717, allocations: 6.578 kB / 405.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.3717, allocations: 4.781 kB / 405.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.111e-05/0.3718, allocations: 28.08 kB / 405.6 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.3718, allocations: 11.05 kB / 405.6 MB, free: 4.164 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.6e-05/0.3719, allocations: 96.78 kB / 405.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3719, allocations: 0 / 405.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.3722, allocations: 49.7 kB / 405.7 MB, free: 4.066 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.0001251/0.3723, allocations: 105.6 kB / 405.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.3727, allocations: 170 kB / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3727, allocations: 0 / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.3728, allocations: 72.64 kB / 406.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.3731, allocations: 27.86 kB / 406.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.3737, allocations: 356.6 kB / 406.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.3738, allocations: 0.7266 MB / 407.2 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.178e-05/0.3739, allocations: 26.45 kB / 407.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3739, allocations: 0 / 407.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of Templates: time 0.005241/0.3791, allocations: 2.379 MB / 409.6 MB, free: 2.355 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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: 8.151064501143992]