Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001931/0.001931, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002543/0.002543, allocations: 149.4 kB / 24.25 MB, free: 184 kB / 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 1.535/1.535, allocations: 173.4 MB / 200.8 MB, free: 9.266 MB / 186.7 MB " [Timeout remaining time 178] 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.747e-05/2.886e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003156/0.003185, allocations: 1.459 MB / 268.7 MB, free: 5.254 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000809/0.003994, allocations: 283.2 kB / 269 MB, free: 4.977 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.004104, allocations: 7.938 kB / 269 MB, free: 4.969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.004281, allocations: 27.67 kB / 269.1 MB, free: 4.941 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.983e-05/0.004341, allocations: 15.86 kB / 269.1 MB, free: 4.926 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.004835, allocations: 127.6 kB / 269.2 MB, free: 4.801 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.005257, allocations: 263.5 kB / 269.5 MB, free: 4.543 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003448/0.005602, allocations: 154.7 kB / 269.6 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002119/0.005814, allocations: 127.8 kB / 269.7 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.005967, allocations: 71.75 kB / 269.8 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.712e-05/0.006024, allocations: 24 kB / 269.8 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.94e-05/0.006113, allocations: 32 kB / 269.9 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.593e-05/0.006199, allocations: 51.86 kB / 269.9 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.006302, allocations: 63.83 kB / 270 MB, free: 4.023 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003986/0.0067, allocations: 255.1 kB / 270.2 MB, free: 3.773 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.006704, allocations: 0 / 270.2 MB, free: 3.773 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006705, allocations: 0 / 270.2 MB, free: 3.773 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.006712, allocations: 0 / 270.2 MB, free: 3.773 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008098/0.007522, allocations: 421 kB / 270.6 MB, free: 3.332 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.007564, allocations: 12.92 kB / 270.6 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.007676, allocations: 40.8 kB / 270.7 MB, free: 3.281 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.008073, allocations: 173.5 kB / 270.8 MB, free: 3.086 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.778e-05/0.00812, allocations: 16.88 kB / 270.9 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/0.008168, allocations: 32.31 kB / 270.9 MB, free: 3.035 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.008669, allocations: 239.3 kB / 271.1 MB, free: 2.789 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.008682, allocations: 4.188 kB / 271.1 MB, free: 2.785 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.008708, allocations: 4.375 kB / 271.1 MB, free: 2.781 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.00872, allocations: 12.38 kB / 271.2 MB, free: 2.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.009077, allocations: 161.8 kB / 271.3 MB, free: 2.613 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.01016, allocations: 0.5778 MB / 271.9 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.01051, allocations: 162.6 kB / 272 MB, free: 1.832 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.01066, allocations: 72.83 kB / 272.1 MB, free: 1.758 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.01069, allocations: 7.984 kB / 272.1 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.01092, allocations: 111.4 kB / 272.2 MB, free: 1.629 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.01093, allocations: 0 / 272.2 MB, free: 1.629 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005465/0.01147, allocations: 232.6 kB / 272.5 MB, free: 1.398 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.421e-05/0.01154, allocations: 63.34 kB / 272.5 MB, free: 1.324 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.01175, allocations: 157.4 kB / 272.7 MB, free: 1.164 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.602e-05/0.01181, allocations: 33.7 kB / 272.7 MB, free: 1.125 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.01198, allocations: 136.8 kB / 272.8 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.274e-05/0.01207, allocations: 59.55 kB / 272.9 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.0122, allocations: 74.02 kB / 273 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.0124, allocations: 322.8 kB / 273.3 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.01254, allocations: 64.62 kB / 273.4 MB, free: 468 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.01275, allocations: 132.1 kB / 273.5 MB, free: 312 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/0.01308, allocations: 174.7 kB / 273.6 MB, free: 112 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.01308, allocations: 4 kB / 273.7 MB, free: 108 kB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005069/0.01359, allocations: 253.3 kB / 273.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.01361, allocations: 8.219 kB / 273.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.01362, allocations: 4 kB / 273.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.459e-05/0.01366, allocations: 7.938 kB / 273.9 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.01381, allocations: 27.92 kB / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.01382, allocations: 0 / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.01395, allocations: 35.77 kB / 274 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.01399, allocations: 12 kB / 274 MB, free: 15.76 MB / 266.7 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.0001848/0.01417, allocations: 153.8 kB / 274.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/0.01422, allocations: 19.95 kB / 274.2 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004368/0.01465, allocations: 202.4 kB / 274.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.01466, allocations: 7.938 kB / 274.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.01467, allocations: 0 / 274.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.01468, allocations: 3.984 kB / 274.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008141/0.01549, allocations: 490.4 kB / 274.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.01549, allocations: 0 / 274.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.692e-05/0.01558, allocations: 19.94 kB / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.01559, allocations: 3.984 kB / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.01561, allocations: 4 kB / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.01561, allocations: 0 / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01561, allocations: 0 / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004301/0.01604, allocations: 299.7 kB / 275.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.974e-05/0.01607, allocations: 19.84 kB / 275.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/0.0161, allocations: 4 kB / 275.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-05/0.0162, allocations: 15.92 kB / 275.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.882e-05/0.01629, allocations: 19.95 kB / 275.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.01631, allocations: 12 kB / 275.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.477e-05/0.01638, allocations: 91.27 kB / 275.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01638, allocations: 0 / 275.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003444/0.01672, allocations: 55.88 kB / 275.4 MB, free: 14.29 MB / 266.7 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.0004601/0.01718, allocations: 115.1 kB / 275.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003841/0.01757, allocations: 163.8 kB / 275.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01757, allocations: 0 / 275.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.01774, allocations: 79.84 kB / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.01807, allocations: 23.92 kB / 275.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007801/0.01885, allocations: 341.5 kB / 276.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.01901, allocations: 129 kB / 276.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.554e-05/0.01909, allocations: 21.95 kB / 276.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.662e-05/0.01917, allocations: 24.48 kB / 276.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of SimCode: time 1.382e-06/0.01917, allocations: 4 kB / 276.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of Templates: time 0.006512/0.02568, allocations: 1.953 MB / 278.2 MB, free: 11.43 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.3961076609557495]