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.0009405/0.0009405, allocations: 88.25 kB / 22.22 MB, free: 2.281 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.001177/0.001177, allocations: 168.4 kB / 25.61 MB, free: 8.879 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.9692/0.9692, allocations: 177 MB / 205.9 MB, free: 4.449 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.432e-06/1.432e-06, allocations: 0 / 274.1 MB, free: 4.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.507e-05, allocations: 5.812 kB / 274.1 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002287/0.002313, allocations: 1.696 MB / 275.8 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005933/0.002906, allocations: 299 kB / 276.1 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.203e-05/0.002998, allocations: 7.938 kB / 276.1 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.003133, allocations: 27.73 kB / 276.1 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.757e-05/0.00317, allocations: 15.8 kB / 276.1 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003637/0.003534, allocations: 131.7 kB / 276.2 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.003803, allocations: 276.1 kB / 276.5 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.004039, allocations: 161.2 kB / 276.7 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.00416, allocations: 143.7 kB / 276.8 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.004277, allocations: 74.02 kB / 276.9 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.829e-05/0.004305, allocations: 24 kB / 276.9 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.206e-05/0.004357, allocations: 24 kB / 276.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.327e-05/0.00441, allocations: 63.8 kB / 277 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.503e-05/0.004465, allocations: 67.83 kB / 277.1 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002104/0.004676, allocations: 187.2 kB / 277.2 MB, free: 1.004 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.004679, allocations: 2 kB / 277.2 MB, free: 1.004 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.00468, allocations: 0 / 277.2 MB, free: 1.004 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.004685, allocations: 4 kB / 277.3 MB, free: 1 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.0005027/0.005188, allocations: 0.5189 MB / 277.8 MB, free: 448 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.005225, allocations: 8.031 kB / 277.8 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.005391, allocations: 53.44 kB / 277.8 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.005568, allocations: 184.2 kB / 278 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.005593, allocations: 20.88 kB / 278 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.00562, allocations: 36.36 kB / 278.1 MB, free: 120 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.005867, allocations: 228.7 kB / 278.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.005877, allocations: 192 / 278.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.005893, allocations: 8.375 kB / 278.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.0059, allocations: 4.375 kB / 278.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.72e-05/0.005998, allocations: 87.3 kB / 278.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008195/0.006817, allocations: 1.038 MB / 279.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.007022, allocations: 134.3 kB / 279.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.693e-05/0.007079, allocations: 55.44 kB / 279.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.0071, allocations: 4 kB / 279.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001433/0.007244, allocations: 133.3 kB / 279.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.007245, allocations: 0 / 279.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002665/0.007512, allocations: 178.9 kB / 279.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.007561, allocations: 89.09 kB / 280 MB, free: 14.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.00769, allocations: 219.9 kB / 280.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.007713, allocations: 41.83 kB / 280.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.735e-05/0.0078, allocations: 183.5 kB / 280.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4e-05/0.00784, allocations: 67.44 kB / 280.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.4e-05/0.007924, allocations: 91.28 kB / 280.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.008061, allocations: 0.4962 MB / 281.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.349e-05/0.008105, allocations: 31.97 kB / 281.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.666e-05/0.008201, allocations: 136.7 kB / 281.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.008352, allocations: 176.7 kB / 281.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.008355, allocations: 4 kB / 281.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002285/0.008584, allocations: 205.6 kB / 281.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.008601, allocations: 11.94 kB / 281.6 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.008611, allocations: 4 kB / 281.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.008623, allocations: 8 kB / 281.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.008733, allocations: 39.86 kB / 281.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.008739, allocations: 4 kB / 281.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.274e-05/0.008812, allocations: 27.84 kB / 281.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.008825, allocations: 8 kB / 281.7 MB, free: 12.15 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.0001229/0.008948, allocations: 192.4 kB / 281.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.008977, allocations: 27.84 kB / 282 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.009017, allocations: 24.94 kB / 282 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.00902, allocations: 0 / 282 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.009023, allocations: 0 / 282 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.009029, allocations: 7.984 kB / 282 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.00949, allocations: 491.4 kB / 282.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.009492, allocations: 0 / 282.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.419e-05/0.009536, allocations: 19.94 kB / 282.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.00954, allocations: 3.984 kB / 282.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.009549, allocations: 4 kB / 282.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.009551, allocations: 0 / 282.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.009552, allocations: 0 / 282.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.009745, allocations: 315.2 kB / 282.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.287e-05/0.009757, allocations: 11.91 kB / 282.8 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.009776, allocations: 8 kB / 282.8 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.764e-05/0.009824, allocations: 11.94 kB / 282.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.009882, allocations: 23.81 kB / 282.9 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.009892, allocations: 4 kB / 282.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.364e-05/0.009936, allocations: 135.2 kB / 283 MB, free: 10.83 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009936, allocations: 0 / 283 MB, free: 10.83 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002157/0.01015, allocations: 51.83 kB / 283 MB, free: 10.78 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.0001095/0.01026, allocations: 115.2 kB / 283.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000196/0.01046, allocations: 136.4 kB / 283.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01046, allocations: 0 / 283.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.039e-05/0.01053, allocations: 68.58 kB / 283.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.01076, allocations: 31.91 kB / 283.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004335/0.01119, allocations: 335.8 kB / 283.7 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.895e-05/0.01124, allocations: 80.33 kB / 283.8 MB, free: 9.965 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.771e-05/0.0113, allocations: 25.94 kB / 283.8 MB, free: 9.941 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.288e-05/0.01139, allocations: 98.19 kB / 283.9 MB, free: 9.844 MB / 266.7 MB Notification: Performance of SimCode: time 6.12e-07/0.01139, allocations: 0 / 283.9 MB, free: 9.844 MB / 266.7 MB Notification: Performance of Templates: time 0.004176/0.01557, allocations: 1.972 MB / 285.9 MB, free: 7.91 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.790736238937825]