Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0007538/0.0007538, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001407/0.002161, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007554/0.0007554, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009461/0.001701, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.011/1.011, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09092/1.102, allocations: 53.66 MB / 243.3 MB, free: 15.57 MB / 250.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.715e-05, allocations: 10.25 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003471/0.003498, allocations: 1.747 MB / 246.2 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007885/0.004287, allocations: 311 kB / 246.5 MB, free: 12.28 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.661e-05/0.004383, allocations: 4 kB / 246.5 MB, free: 12.28 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.004488, allocations: 31.61 kB / 246.6 MB, free: 12.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.798e-05/0.004526, allocations: 15.81 kB / 246.6 MB, free: 12.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002992/0.004825, allocations: 135.7 kB / 246.7 MB, free: 12.1 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.005076, allocations: 279.5 kB / 247 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.005317, allocations: 157.5 kB / 247.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.005446, allocations: 147.7 kB / 247.3 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.005565, allocations: 67.78 kB / 247.4 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.772e-05/0.005593, allocations: 24 kB / 247.4 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.235e-05/0.005665, allocations: 31.98 kB / 247.4 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.138e-05/0.005716, allocations: 47.86 kB / 247.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.005788, allocations: 51.88 kB / 247.5 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.005995, allocations: 171.3 kB / 247.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.728e-05/0.006013, allocations: 0 / 247.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.006014, allocations: 0 / 247.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.006032, allocations: 0 / 247.7 MB, free: 11.14 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.0005561/0.006588, allocations: 443.4 kB / 248.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.006622, allocations: 8.031 kB / 248.1 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.006831, allocations: 130 kB / 248.3 MB, free: 10.52 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.007017, allocations: 157.5 kB / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.007044, allocations: 20.88 kB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.00707, allocations: 36.34 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.007275, allocations: 214.6 kB / 248.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.007286, allocations: 4.125 kB / 248.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.007301, allocations: 12.38 kB / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.007316, allocations: 8.359 kB / 248.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.008e-05/0.007406, allocations: 71.34 kB / 248.8 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006256/0.008031, allocations: 0.7232 MB / 249.5 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.008177, allocations: 109.2 kB / 249.6 MB, free: 9.082 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.069e-05/0.008218, allocations: 45.69 kB / 249.6 MB, free: 9.031 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.008234, allocations: 4 kB / 249.6 MB, free: 9.027 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.00836, allocations: 124.1 kB / 249.8 MB, free: 8.891 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.122e-06/0.008362, allocations: 0 / 249.8 MB, free: 8.891 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001897/0.008551, allocations: 137.4 kB / 249.9 MB, free: 8.75 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.008601, allocations: 89.09 kB / 250 MB, free: 8.645 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.025e-05/0.008681, allocations: 165.8 kB / 250.1 MB, free: 8.473 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.0087, allocations: 33.83 kB / 250.2 MB, free: 8.434 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.526e-05/0.008766, allocations: 144.8 kB / 250.3 MB, free: 8.289 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/0.008808, allocations: 71.44 kB / 250.4 MB, free: 8.219 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/0.008874, allocations: 81.62 kB / 250.5 MB, free: 8.133 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.008967, allocations: 326.8 kB / 250.8 MB, free: 7.805 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.527e-05/0.009003, allocations: 31.77 kB / 250.8 MB, free: 7.773 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.436e-05/0.009077, allocations: 108.5 kB / 250.9 MB, free: 7.637 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.009213, allocations: 152.9 kB / 251.1 MB, free: 7.457 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.009215, allocations: 0 / 251.1 MB, free: 7.457 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001873/0.009402, allocations: 169.3 kB / 251.2 MB, free: 7.285 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.00942, allocations: 15.66 kB / 251.3 MB, free: 7.273 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.009428, allocations: 8 kB / 251.3 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.009439, allocations: 4 kB / 251.3 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.009573, allocations: 39.92 kB / 251.3 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.009579, allocations: 7.984 kB / 251.3 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.432e-05/0.009633, allocations: 31.78 kB / 251.3 MB, free: 7.184 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.009643, allocations: 8 kB / 251.4 MB, free: 7.176 MB / 250.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 8.949e-05/0.009733, allocations: 145.7 kB / 251.5 MB, free: 7.023 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.009751, allocations: 15.98 kB / 251.5 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.009789, allocations: 24.86 kB / 251.5 MB, free: 6.984 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.009792, allocations: 8 kB / 251.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.009793, allocations: 0 / 251.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.009797, allocations: 0 / 251.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003175/0.01011, allocations: 371.7 kB / 251.9 MB, free: 6.586 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.01012, allocations: 0 / 251.9 MB, free: 6.586 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.529e-05/0.01016, allocations: 19.98 kB / 251.9 MB, free: 6.566 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.181e-05/0.01017, allocations: 15.84 kB / 251.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.01018, allocations: 0 / 251.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.01018, allocations: 8 kB / 252 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.01019, allocations: 3.984 kB / 252 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.01019, allocations: 4 kB / 252 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.01031, allocations: 212.2 kB / 252.2 MB, free: 6.309 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/0.01033, allocations: 4 kB / 252.2 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.578e-05/0.01037, allocations: 11.98 kB / 252.2 MB, free: 6.293 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.431e-05/0.01042, allocations: 19.97 kB / 252.2 MB, free: 6.273 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.01042, allocations: 0 / 252.2 MB, free: 6.273 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.784e-05/0.01044, allocations: 24.83 kB / 252.2 MB, free: 6.246 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01044, allocations: 0 / 252.2 MB, free: 6.246 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001542/0.0106, allocations: 51.83 kB / 252.3 MB, free: 6.195 MB / 250.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 9.454e-05/0.01069, allocations: 100 kB / 252.4 MB, free: 6.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.01083, allocations: 131.6 kB / 252.5 MB, free: 5.961 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.01084, allocations: 8 kB / 252.5 MB, free: 5.953 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.548e-05/0.0109, allocations: 56.72 kB / 252.6 MB, free: 5.895 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.01109, allocations: 43.89 kB / 252.6 MB, free: 5.852 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005077/0.01159, allocations: 337.9 kB / 252.9 MB, free: 5.496 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.715e-05/0.01164, allocations: 80.95 kB / 253 MB, free: 5.398 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.202e-05/0.01169, allocations: 25.94 kB / 253 MB, free: 5.371 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.055e-05/0.01177, allocations: 79.36 kB / 253.1 MB, free: 5.293 MB / 250.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01178, allocations: 0 / 253.1 MB, free: 5.293 MB / 250.7 MB Notification: Performance of Templates: time 0.003735/0.01551, allocations: 1.941 MB / 255.1 MB, free: 3.383 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.459163699299097]