Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000932/0.000932, allocations: 81.91 kB / 21.43 MB, free: 3.066 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 164.4 kB / 24.82 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9942/0.9942, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.732e-05/2.904e-05, allocations: 5.266 kB / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003636/0.003665, allocations: 1.694 MB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008705/0.004536, allocations: 303 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.004696, allocations: 4 kB / 275.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001846/0.004881, allocations: 35.61 kB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.581e-05/0.004956, allocations: 15.8 kB / 275.3 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005717/0.005528, allocations: 131.7 kB / 275.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.005929, allocations: 279.4 kB / 275.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003363/0.006265, allocations: 163.7 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.006478, allocations: 139.7 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.006635, allocations: 71.77 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.038e-05/0.006685, allocations: 24 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.088e-05/0.006756, allocations: 28 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.222e-05/0.006828, allocations: 63.73 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.199e-05/0.00691, allocations: 71.81 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.007235, allocations: 191.2 kB / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.007239, allocations: 4 kB / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.00724, allocations: 0 / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.007248, allocations: 0 / 276.5 MB, free: 14.04 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006728/0.007921, allocations: 0.5151 MB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.00797, allocations: 11.98 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.008202, allocations: 52.78 kB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.00844, allocations: 176.2 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.008473, allocations: 24.81 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.008507, allocations: 28.38 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.008833, allocations: 232.7 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.008845, allocations: 192 / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.008866, allocations: 8.375 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.00888, allocations: 12.36 kB / 277.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.009019, allocations: 79.25 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.01011, allocations: 1.034 MB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.01033, allocations: 142.2 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.36e-05/0.01041, allocations: 55.42 kB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.01043, allocations: 8 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/0.01062, allocations: 128.2 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.346e-06/0.01062, allocations: 3.984 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003393/0.01096, allocations: 170.8 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.01101, allocations: 89.09 kB / 279.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.01117, allocations: 220.6 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.286e-05/0.0112, allocations: 41.7 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.01132, allocations: 187.5 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.445e-05/0.01138, allocations: 63.45 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.0115, allocations: 87.42 kB / 279.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.01165, allocations: 0.5001 MB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.83e-05/0.01171, allocations: 31.97 kB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.01184, allocations: 132.8 kB / 280.5 MB, free: 9.738 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.01205, allocations: 188.6 kB / 280.7 MB, free: 9.512 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.01206, allocations: 0 / 280.7 MB, free: 9.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003149/0.01237, allocations: 209.3 kB / 280.9 MB, free: 9.301 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.0124, allocations: 11.94 kB / 280.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.0124, allocations: 0 / 280.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.01242, allocations: 11.94 kB / 280.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.01256, allocations: 36.2 kB / 280.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.01257, allocations: 8 kB / 280.9 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.01267, allocations: 27.78 kB / 281 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.01269, allocations: 15.98 kB / 281 MB, free: 9.191 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 0.0001407/0.01283, allocations: 184.5 kB / 281.2 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.01286, allocations: 23.84 kB / 281.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.828e-05/0.01291, allocations: 24.94 kB / 281.2 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.01291, allocations: 4 kB / 281.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.01292, allocations: 0 / 281.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.01292, allocations: 3.984 kB / 281.2 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002683/0.01561, allocations: 493.5 kB / 281.7 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.01561, allocations: 4 kB / 281.7 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.004e-05/0.01568, allocations: 15.92 kB / 281.7 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.01569, allocations: 4 kB / 281.7 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.0157, allocations: 4 kB / 281.7 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.01571, allocations: 4 kB / 281.7 MB, free: 8.398 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.01571, allocations: 0 / 281.7 MB, free: 8.398 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.01596, allocations: 312.1 kB / 282 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.16e-05/0.01598, allocations: 15.95 kB / 282 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.016, allocations: 4 kB / 282.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.748e-05/0.01606, allocations: 15.98 kB / 282.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.0161, allocations: 15.97 kB / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.01611, allocations: 8 kB / 282.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.824e-05/0.01616, allocations: 131.2 kB / 282.2 MB, free: 7.883 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01616, allocations: 0 / 282.2 MB, free: 7.883 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002331/0.0164, allocations: 63.72 kB / 282.3 MB, free: 7.82 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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0001045/0.0165, allocations: 103.2 kB / 282.4 MB, free: 7.707 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002104/0.01671, allocations: 148.6 kB / 282.5 MB, free: 7.559 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01671, allocations: 0 / 282.5 MB, free: 7.559 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.586e-05/0.01678, allocations: 67.58 kB / 282.6 MB, free: 7.488 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.01699, allocations: 30.89 kB / 282.6 MB, free: 7.461 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003977/0.01739, allocations: 326.5 kB / 282.9 MB, free: 7.113 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.261e-05/0.01743, allocations: 80.28 kB / 283 MB, free: 7.016 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.345e-05/0.01748, allocations: 26.25 kB / 283 MB, free: 6.988 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.862e-05/0.01757, allocations: 102.2 kB / 283.1 MB, free: 6.887 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01757, allocations: 3.938 kB / 283.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of Templates: time 0.00378/0.02135, allocations: 1.922 MB / 285.1 MB, free: 4.992 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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.8347370689734817]