Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001841/0.001841, allocations: 111.5 kB / 18.45 MB, free: 4.605 MB / 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.002198/0.002198, allocations: 208.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.546/1.546, allocations: 230.6 MB / 254.8 MB, free: 15.09 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+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=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_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_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 43.92 kB / 374.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1019, allocations: 53.32 MB / 427.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002753/0.1047, allocations: 1.502 MB / 429 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006848/0.1054, allocations: 283.2 kB / 429.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.589e-05/0.1055, allocations: 7.938 kB / 429.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.1056, allocations: 23.75 kB / 429.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.712e-05/0.1056, allocations: 19.8 kB / 429.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.106, allocations: 111.8 kB / 429.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.1064, allocations: 255.6 kB / 429.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.1067, allocations: 138.5 kB / 429.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.1068, allocations: 95.62 kB / 429.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.1069, allocations: 99.59 kB / 430 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.1069, allocations: 20 kB / 430 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.254e-05/0.107, allocations: 31.98 kB / 430 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.419e-05/0.1071, allocations: 51.84 kB / 430.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.1072, allocations: 99.5 kB / 430.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.1075, allocations: 247 kB / 430.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.1075, allocations: 3.938 kB / 430.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1075, allocations: 0 / 430.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1075, allocations: 0 / 430.4 MB, free: 1.332 MB / 350.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.0007216/0.1083, allocations: 490.3 kB / 430.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.1083, allocations: 8.031 kB / 430.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002681/0.1086, allocations: 32.81 kB / 430.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.1089, allocations: 228 kB / 431.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.1089, allocations: 20.94 kB / 431.2 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.109, allocations: 24.38 kB / 431.2 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000439/0.1094, allocations: 240 kB / 431.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1094, allocations: 192 / 431.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.1095, allocations: 15.94 kB / 431.4 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1095, allocations: 8 kB / 431.4 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003056/0.1098, allocations: 157.6 kB / 431.6 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1999/0.3097, allocations: 0.6857 MB / 432.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.3101, allocations: 157.6 kB / 432.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.3102, allocations: 69.17 kB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.3102, allocations: 2.062 kB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.3105, allocations: 116 kB / 432.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.825e-06/0.3105, allocations: 0 / 432.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005289/0.311, allocations: 223.7 kB / 432.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.3111, allocations: 55.66 kB / 432.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.3112, allocations: 148.1 kB / 433 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.3113, allocations: 37.17 kB / 433.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.705e-05/0.3114, allocations: 133.5 kB / 433.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.313e-05/0.3114, allocations: 62.89 kB / 433.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3115, allocations: 75.69 kB / 433.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.296e-05/0.3116, allocations: 323.1 kB / 433.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.3117, allocations: 64.03 kB / 433.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.3119, allocations: 131.8 kB / 433.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.3121, allocations: 176.2 kB / 434 MB, free: 9.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3121, allocations: 0 / 434 MB, free: 9.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003329/0.3124, allocations: 241.6 kB / 434.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.3124, allocations: 8.062 kB / 434.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.3125, allocations: 5.688 kB / 434.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.018e-05/0.3125, allocations: 3 kB / 434.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.3126, allocations: 34.56 kB / 434.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3126, allocations: 1.812 kB / 434.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.3128, allocations: 30.11 kB / 434.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.3128, allocations: 11.62 kB / 434.4 MB, free: 9.93 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.0001345/0.3129, allocations: 155.3 kB / 434.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.3129, allocations: 17.06 kB / 434.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.762e-05/0.313, allocations: 20.28 kB / 434.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.313, allocations: 6 kB / 434.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.313, allocations: 5.219 kB / 434.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.313, allocations: 3.234 kB / 434.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006379/0.3137, allocations: 0.5465 MB / 435.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.3137, allocations: 3.938 kB / 435.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.682e-05/0.3137, allocations: 21.45 kB / 435.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3137, allocations: 2.156 kB / 435.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.3138, allocations: 7.875 kB / 435.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3138, allocations: 1.219 kB / 435.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3138, allocations: 0 / 435.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.3141, allocations: 271.3 kB / 435.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.3141, allocations: 93.39 kB / 435.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.3141, allocations: 4.25 kB / 435.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.889e-05/0.3142, allocations: 6.969 kB / 435.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.3143, allocations: 25.47 kB / 435.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3144, allocations: 7.781 kB / 435.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.999e-05/0.3144, allocations: 105 kB / 435.6 MB, free: 9.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3144, allocations: 0 / 435.6 MB, free: 9.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.3147, allocations: 48.83 kB / 435.7 MB, free: 9.156 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.0001066/0.3148, allocations: 103.5 kB / 435.8 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003402/0.3152, allocations: 164.9 kB / 435.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3152, allocations: 4.938 kB / 436 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.3153, allocations: 71.11 kB / 436 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.3156, allocations: 23.44 kB / 436 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006185/0.3162, allocations: 342.9 kB / 436.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.3164, allocations: 0.7272 MB / 437.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.442e-05/0.3165, allocations: 20.84 kB / 437.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3165, allocations: 0 / 437.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of Templates: time 0.005547/0.322, allocations: 2.196 MB / 439.3 MB, free: 7.887 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.236183255998185]