Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.000949/0.000949, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0009666/0.0009666, allocations: 145.4 kB / 24.89 MB, free: 9.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.982/0.982, allocations: 173.4 MB / 201.5 MB, free: 9.215 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.581e-06/5.581e-06, allocations: 0 / 268.5 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.795e-05/3.353e-05, allocations: 2.312 kB / 268.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003488/0.003521, allocations: 1.76 MB / 270.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007404/0.004261, allocations: 310.9 kB / 270.5 MB, free: 4.113 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.557e-05/0.004347, allocations: 7.938 kB / 270.6 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.004461, allocations: 23.75 kB / 270.6 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.342e-05/0.004514, allocations: 19.73 kB / 270.6 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.004866, allocations: 127.8 kB / 270.7 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002675/0.005134, allocations: 279.4 kB / 271 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002289/0.005362, allocations: 152 kB / 271.1 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.005467, allocations: 135.8 kB / 271.3 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.005575, allocations: 71.78 kB / 271.3 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.005605, allocations: 24 kB / 271.4 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.266e-05/0.005698, allocations: 39.91 kB / 271.4 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.818e-05/0.005746, allocations: 55.81 kB / 271.5 MB, free: 3.191 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.537e-05/0.005801, allocations: 71.81 kB / 271.5 MB, free: 3.121 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.006037, allocations: 187.3 kB / 271.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.00604, allocations: 0 / 271.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.006041, allocations: 0 / 271.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.006046, allocations: 0 / 271.7 MB, free: 2.938 MB / 250.7 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.0004108/0.006456, allocations: 395.8 kB / 272.1 MB, free: 2.527 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.006487, allocations: 8.031 kB / 272.1 MB, free: 2.52 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.256e-05/0.006539, allocations: 44.91 kB / 272.2 MB, free: 2.477 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.006714, allocations: 153.5 kB / 272.3 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.006742, allocations: 20.88 kB / 272.3 MB, free: 2.281 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.006769, allocations: 32.38 kB / 272.4 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.007002, allocations: 222.5 kB / 272.6 MB, free: 2.008 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.007012, allocations: 192 / 272.6 MB, free: 2.008 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.00703, allocations: 16.36 kB / 272.6 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.007037, allocations: 4.375 kB / 272.6 MB, free: 1.988 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.385e-05/0.007121, allocations: 71.34 kB / 272.7 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006409/0.007762, allocations: 0.731 MB / 273.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00016/0.007922, allocations: 117.2 kB / 273.5 MB, free: 1.023 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.496e-05/0.007967, allocations: 52.62 kB / 273.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.007982, allocations: 4 kB / 273.6 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/0.008092, allocations: 120.9 kB / 273.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.262e-06/0.008093, allocations: 3.938 kB / 273.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.000182/0.008275, allocations: 139.8 kB / 273.8 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.008319, allocations: 89.23 kB / 273.9 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.213e-05/0.008411, allocations: 162.4 kB / 274.1 MB, free: 416 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.008431, allocations: 33.7 kB / 274.1 MB, free: 376 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.008493, allocations: 140.8 kB / 274.2 MB, free: 228 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.008529, allocations: 71.44 kB / 274.3 MB, free: 156 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.524e-05/0.008594, allocations: 77.64 kB / 274.4 MB, free: 72 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.008686, allocations: 330.8 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.301e-05/0.008719, allocations: 27.98 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.802e-05/0.008787, allocations: 108.1 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.008919, allocations: 160.3 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.008921, allocations: 0 / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001652/0.009086, allocations: 177.5 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.009101, allocations: 7.938 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.009108, allocations: 4 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.00912, allocations: 4 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.009232, allocations: 39.91 kB / 275.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.009238, allocations: 4 kB / 275.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.048e-05/0.009298, allocations: 31.78 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.009316, allocations: 8 kB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($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,transition2.t_start,$PRE.transition2.t_start,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 9.294e-05/0.009409, allocations: 153.8 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.009428, allocations: 15.98 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001475/0.009575, allocations: 118.5 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.009579, allocations: 4 kB / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.00958, allocations: 0 / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.009585, allocations: 0 / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003313/0.009916, allocations: 378.2 kB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.009919, allocations: 0 / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.314e-05/0.009972, allocations: 23.92 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.009974, allocations: 0 / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.009983, allocations: 4 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.009987, allocations: 8 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.009989, allocations: 3.984 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.01012, allocations: 224.5 kB / 276.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.465e-05/0.01014, allocations: 23.77 kB / 276.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.01015, allocations: 8 kB / 276.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.485e-05/0.0102, allocations: 12 kB / 276.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.01024, allocations: 19.95 kB / 276.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.01025, allocations: 8 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.916e-05/0.01027, allocations: 20.83 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01027, allocations: 0 / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001864/0.01046, allocations: 55.89 kB / 276.3 MB, free: 13.98 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001083/0.01057, allocations: 92.11 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001505/0.01072, allocations: 128.9 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.01072, allocations: 0 / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.901e-05/0.01079, allocations: 72.69 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/0.01096, allocations: 35.55 kB / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003683/0.01133, allocations: 330.3 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.459e-05/0.01137, allocations: 80.33 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.076e-05/0.01142, allocations: 21.94 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.234e-05/0.01151, allocations: 83.36 kB / 277.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01151, allocations: 0 / 277.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of Templates: time 0.004149/0.01566, allocations: 2.131 MB / 279.3 MB, free: 11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.629204833880067]