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.001759/0.001759, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002242/0.002242, allocations: 210.4 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001802/0.001802, allocations: 51.92 kB / 378.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2756, allocations: 53.36 MB / 431.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002675/0.2782, allocations: 1.479 MB / 433 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006662/0.2789, allocations: 279.2 kB / 433.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.325e-05/0.279, allocations: 7.938 kB / 433.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.2791, allocations: 23.73 kB / 433.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.858e-05/0.2792, allocations: 19.81 kB / 433.3 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.2795, allocations: 115.8 kB / 433.5 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.2799, allocations: 267.4 kB / 433.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.2802, allocations: 130.7 kB / 433.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.2803, allocations: 91.69 kB / 433.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.2804, allocations: 75.61 kB / 434 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.785e-05/0.2804, allocations: 27.98 kB / 434 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.352e-05/0.2805, allocations: 31.94 kB / 434.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.516e-05/0.2806, allocations: 55.83 kB / 434.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.543e-05/0.2807, allocations: 79.64 kB / 434.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.281, allocations: 241.3 kB / 434.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.281, allocations: 0 / 434.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.281, allocations: 0 / 434.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.281, allocations: 0 / 434.4 MB, free: 3.816 MB / 334.1 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.0006492/0.2816, allocations: 420.9 kB / 434.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2817, allocations: 8.031 kB / 434.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002505/0.2819, allocations: 32.81 kB / 434.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.2822, allocations: 178.2 kB / 435.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.2823, allocations: 20.88 kB / 435.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.2823, allocations: 24.38 kB / 435.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.2828, allocations: 239.2 kB / 435.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2828, allocations: 192 / 435.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.2828, allocations: 11.94 kB / 435.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.2828, allocations: 8 kB / 435.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002993/0.2831, allocations: 157.6 kB / 435.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009659/0.2841, allocations: 0.5658 MB / 436.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.2844, allocations: 169.9 kB / 436.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.2845, allocations: 68.78 kB / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.2845, allocations: 3.938 kB / 436.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002051/0.2847, allocations: 123.3 kB / 436.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.2847, allocations: 4 kB / 436.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004278/0.2852, allocations: 218.6 kB / 436.7 MB, free: 1.477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.2852, allocations: 59.41 kB / 436.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.2853, allocations: 150 kB / 436.9 MB, free: 1.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.2854, allocations: 37.7 kB / 436.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.2855, allocations: 128.9 kB / 437 MB, free: 1.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.559e-05/0.2855, allocations: 71.47 kB / 437.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.721e-05/0.2856, allocations: 70.02 kB / 437.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.2858, allocations: 330.8 kB / 437.5 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.2859, allocations: 64.62 kB / 437.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.2861, allocations: 120.1 kB / 437.7 MB, free: 400 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.2863, allocations: 179.1 kB / 437.8 MB, free: 196 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2863, allocations: 0 / 437.8 MB, free: 196 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003997/0.2867, allocations: 245.3 kB / 438.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2868, allocations: 4 kB / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2868, allocations: 4 kB / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2868, allocations: 3.984 kB / 438.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.2869, allocations: 27.94 kB / 438.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.2869, allocations: 12.2 kB / 438.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.6e-05/0.287, allocations: 27.78 kB / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.287, allocations: 8 kB / 438.2 MB, free: 15.86 MB / 350.1 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.0001536/0.2872, allocations: 161.8 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.2872, allocations: 15.84 kB / 438.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.068e-05/0.2873, allocations: 20.94 kB / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.2873, allocations: 0 / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2873, allocations: 0 / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2873, allocations: 3.984 kB / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006654/0.288, allocations: 470.1 kB / 438.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.288, allocations: 0 / 438.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.962e-05/0.288, allocations: 19.94 kB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.288, allocations: 3.984 kB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.2881, allocations: 4 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.2881, allocations: 0 / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.2881, allocations: 0 / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003285/0.2884, allocations: 275.8 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.2884, allocations: 19.84 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.2884, allocations: 7.922 kB / 439.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.14e-05/0.2885, allocations: 12 kB / 439.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.2886, allocations: 27.89 kB / 439.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2886, allocations: 4 kB / 439.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.665e-05/0.2887, allocations: 99.27 kB / 439.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2887, allocations: 0 / 439.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.289, allocations: 47.89 kB / 439.3 MB, free: 14.62 MB / 350.1 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 0.0001079/0.2891, allocations: 99.25 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.2894, allocations: 160.1 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2894, allocations: 4.125 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.2895, allocations: 82.67 kB / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.2898, allocations: 20 kB / 439.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005926/0.2904, allocations: 315.5 kB / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.2905, allocations: 120.5 kB / 440.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.614e-05/0.2906, allocations: 21.94 kB / 440.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.092e-05/0.2907, allocations: 19.44 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2907, allocations: 0 / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Templates: time 0.005311/0.296, allocations: 1.788 MB / 441.9 MB, free: 11.99 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.555673956871033]