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.0009407/0.0009407, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.0008978/0.0008978, allocations: 168.7 kB / 24.91 MB, free: 9.203 MB / 18.57 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 0.9449/0.9449, allocations: 177.1 MB / 205.3 MB, free: 5.148 MB / 186.7 MB " [Timeout remaining time 179] 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 1.393e-06/1.393e-06, allocations: 0 / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.357e-05, allocations: 2.312 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002589/0.002612, allocations: 1.566 MB / 275 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006157/0.003228, allocations: 291 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.748e-05/0.003315, allocations: 7.938 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.003436, allocations: 23.67 kB / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.487e-05/0.003481, allocations: 15.81 kB / 275.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.003879, allocations: 119.7 kB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002797/0.004159, allocations: 275.4 kB / 275.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.004391, allocations: 135.5 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.00451, allocations: 127.8 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.004623, allocations: 67.78 kB / 276.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.004652, allocations: 24 kB / 276.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.115e-05/0.004724, allocations: 24 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.357e-05/0.004777, allocations: 63.8 kB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.004838, allocations: 63.83 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002216/0.005059, allocations: 183.2 kB / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.005062, allocations: 0 / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.005064, allocations: 0 / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.005068, allocations: 0 / 276.4 MB, free: 14.2 MB / 266.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.0004227/0.005491, allocations: 387.7 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.005521, allocations: 8.031 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.005725, allocations: 48.89 kB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.005908, allocations: 149.5 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.005934, allocations: 20.88 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.005959, allocations: 28.38 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.00618, allocations: 195.9 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.00619, allocations: 192 / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.006204, allocations: 4.375 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.006215, allocations: 8.375 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.756e-05/0.006312, allocations: 67.39 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005688/0.006881, allocations: 468.1 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.007037, allocations: 117.9 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.909e-05/0.007086, allocations: 40.84 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.0071, allocations: 8 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001092/0.007209, allocations: 91.33 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.007211, allocations: 0 / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003668/0.007578, allocations: 132.1 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.007614, allocations: 59.34 kB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/0.007704, allocations: 158.4 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.007727, allocations: 37.7 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.485e-05/0.007792, allocations: 128.9 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.007833, allocations: 71.44 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.732e-05/0.00791, allocations: 73.97 kB / 278.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.846e-05/0.007999, allocations: 326.8 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.155e-05/0.00804, allocations: 32.64 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.641e-05/0.008117, allocations: 96 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.008254, allocations: 126.7 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.008257, allocations: 0 / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001975/0.008454, allocations: 169.4 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.008469, allocations: 4 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.008476, allocations: 4 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.00849, allocations: 8 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.008604, allocations: 35.92 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.008614, allocations: 11.88 kB / 279.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.523e-05/0.008679, allocations: 27.83 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.008693, allocations: 12.22 kB / 279.5 MB, free: 10.88 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,transition1.condition,transition2.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 (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 8.718e-05/0.00878, allocations: 137.7 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.008802, allocations: 19.98 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.123e-05/0.008833, allocations: 16.94 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.008837, allocations: 4 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.008841, allocations: 3.938 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.008845, allocations: 7.922 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003515/0.009197, allocations: 329.6 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.0092, allocations: 4 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.897e-05/0.009259, allocations: 19.92 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.009261, allocations: 4 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.009271, allocations: 11.94 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.009273, allocations: 0 / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.009274, allocations: 0 / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001391/0.009413, allocations: 204 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.35e-05/0.009427, allocations: 19.88 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.009444, allocations: 11.94 kB / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.537e-05/0.0095, allocations: 0 / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.938e-05/0.009549, allocations: 23.95 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.009557, allocations: 4 kB / 280.3 MB, free: 10.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.071e-05/0.009578, allocations: 28.83 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009578, allocations: 0 / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002278/0.009806, allocations: 47.89 kB / 280.4 MB, free: 9.953 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: 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 8.125e-05/0.009887, allocations: 88.36 kB / 280.5 MB, free: 9.859 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001734/0.01006, allocations: 112.7 kB / 280.6 MB, free: 9.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.01006, allocations: 0 / 280.6 MB, free: 9.746 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.917e-05/0.01013, allocations: 63.59 kB / 280.6 MB, free: 9.684 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.01032, allocations: 28.42 kB / 280.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003743/0.01069, allocations: 313.3 kB / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.61e-05/0.01074, allocations: 75.98 kB / 281 MB, free: 9.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.431e-05/0.01079, allocations: 17.95 kB / 281.1 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.675e-05/0.01088, allocations: 79.36 kB / 281.1 MB, free: 9.133 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01088, allocations: 4 kB / 281.1 MB, free: 9.129 MB / 266.7 MB Notification: Performance of Templates: time 0.003909/0.01479, allocations: 1.834 MB / 283 MB, free: 7.332 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.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.626890225801617]