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.0009699/0.0009699, allocations: 87.62 kB / 22.19 MB, free: 2.367 MB / 18.57 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.0009572/0.0009572, allocations: 163.8 kB / 25.45 MB, free: 9.492 MB / 18.57 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 0.9709/0.9709, allocations: 158.6 MB / 187.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 299.7 MB, free: 6.957 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.59e-05/2.726e-05, allocations: 2.281 kB / 299.7 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002009/0.002036, allocations: 1.44 MB / 301.1 MB, free: 5.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005078/0.002544, allocations: 247.2 kB / 301.3 MB, free: 5.258 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.328e-05/0.002627, allocations: 11.94 kB / 301.4 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.002749, allocations: 27.73 kB / 301.4 MB, free: 5.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.901e-05/0.002788, allocations: 11.81 kB / 301.4 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.003175, allocations: 123.7 kB / 301.5 MB, free: 5.086 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002786/0.003454, allocations: 267.5 kB / 301.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.003721, allocations: 142.6 kB / 301.9 MB, free: 4.684 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.003846, allocations: 131.8 kB / 302 MB, free: 4.555 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003334/0.004179, allocations: 75.77 kB / 302.1 MB, free: 4.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.004217, allocations: 24 kB / 302.1 MB, free: 4.457 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.996e-05/0.004297, allocations: 31.98 kB / 302.2 MB, free: 4.426 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.521e-05/0.004352, allocations: 55.83 kB / 302.2 MB, free: 4.371 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.05e-05/0.004413, allocations: 67.75 kB / 302.3 MB, free: 4.305 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.004688, allocations: 251.2 kB / 302.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.00469, allocations: 0 / 302.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.004692, allocations: 4 kB / 302.5 MB, free: 4.055 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.004697, allocations: 0 / 302.5 MB, free: 4.055 MB / 282.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.0005659/0.005263, allocations: 413.1 kB / 303 MB, free: 3.617 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.005312, allocations: 11.98 kB / 303 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.005366, allocations: 20.84 kB / 303 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.005618, allocations: 169.5 kB / 303.1 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.005655, allocations: 20.88 kB / 303.2 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.005683, allocations: 28.38 kB / 303.2 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.006007, allocations: 235.3 kB / 303.4 MB, free: 3.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.006017, allocations: 4.188 kB / 303.4 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.006035, allocations: 8.375 kB / 303.4 MB, free: 3.094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.006042, allocations: 4.375 kB / 303.4 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.006245, allocations: 173.8 kB / 303.6 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006904/0.006936, allocations: 0.5739 MB / 304.2 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002128/0.007148, allocations: 162.3 kB / 304.3 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.648e-05/0.007225, allocations: 68.83 kB / 304.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.007244, allocations: 4 kB / 304.4 MB, free: 2.07 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.007381, allocations: 115.3 kB / 304.5 MB, free: 1.945 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.894e-06/0.007383, allocations: 0 / 304.5 MB, free: 1.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.000326/0.007709, allocations: 229.1 kB / 304.8 MB, free: 1.715 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.007747, allocations: 59.39 kB / 304.8 MB, free: 1.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.412e-05/0.007831, allocations: 146 kB / 305 MB, free: 1.492 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.007857, allocations: 41.69 kB / 305 MB, free: 1.445 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.433e-05/0.007931, allocations: 132.9 kB / 305.1 MB, free: 1.309 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.007971, allocations: 63.48 kB / 305.2 MB, free: 1.246 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.87e-05/0.00804, allocations: 74.02 kB / 305.3 MB, free: 1.164 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.008135, allocations: 326.8 kB / 305.6 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.966e-05/0.008214, allocations: 60.62 kB / 305.6 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.008324, allocations: 128.1 kB / 305.8 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.008505, allocations: 174.7 kB / 305.9 MB, free: 444 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.008508, allocations: 0 / 305.9 MB, free: 444 kB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002491/0.008757, allocations: 241.3 kB / 306.2 MB, free: 196 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.008772, allocations: 4 kB / 306.2 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.008779, allocations: 4.219 kB / 306.2 MB, free: 188 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.008796, allocations: 11.94 kB / 306.2 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.345e-05/0.008889, allocations: 27.92 kB / 306.2 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.008898, allocations: 3.984 kB / 306.2 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.308e-05/0.008951, allocations: 27.78 kB / 306.2 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.008973, allocations: 16 kB / 306.3 MB, free: 100 kB / 282.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.0001168/0.00909, allocations: 161.7 kB / 306.4 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.009104, allocations: 15.91 kB / 306.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.009345, allocations: 194.4 kB / 306.6 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.009348, allocations: 7.938 kB / 306.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.009354, allocations: 7.984 kB / 306.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.009359, allocations: 0 / 306.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004239/0.009782, allocations: 481.8 kB / 307.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.009784, allocations: 3.938 kB / 307.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.009826, allocations: 19.98 kB / 307.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.00983, allocations: 4 kB / 307.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.009843, allocations: 4 kB / 307.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/0.009846, allocations: 7.938 kB / 307.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.009847, allocations: 4 kB / 307.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.01005, allocations: 283.7 kB / 307.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.237e-05/0.01006, allocations: 23.84 kB / 307.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.01008, allocations: 4 kB / 307.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.315e-05/0.01012, allocations: 11.98 kB / 307.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.01018, allocations: 19.97 kB / 307.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.01019, allocations: 11.98 kB / 307.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.035e-05/0.01024, allocations: 91.77 kB / 307.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01024, allocations: 0 / 307.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001917/0.01043, allocations: 51.89 kB / 307.6 MB, free: 14.65 MB / 298.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.0001317/0.01056, allocations: 107.2 kB / 307.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002332/0.01079, allocations: 171.7 kB / 307.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.01079, allocations: 4 kB / 307.9 MB, free: 14.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.856e-05/0.01087, allocations: 71.91 kB / 308 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.01108, allocations: 27.91 kB / 308 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000457/0.01153, allocations: 352.5 kB / 308.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.506e-05/0.01162, allocations: 125 kB / 308.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.455e-05/0.01166, allocations: 24.5 kB / 308.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01166, allocations: 0 / 308.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of Templates: time 0.003492/0.01516, allocations: 2.396 MB / 310.9 MB, free: 11.32 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/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: 4.566267242655158]