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.001351/0.001351, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001497/0.001497, allocations: 211.6 kB / 23.73 MB, free: 4.523 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.611/1.611, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001681/0.001681, allocations: 51.92 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2624, allocations: 53.37 MB / 431.5 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002778/0.2652, allocations: 1.467 MB / 433 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007506/0.266, allocations: 283.2 kB / 433.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.2661, allocations: 7.938 kB / 433.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.2662, allocations: 19.75 kB / 433.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.42e-05/0.2663, allocations: 27.78 kB / 433.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004123/0.2667, allocations: 119.8 kB / 433.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.267, allocations: 271.4 kB / 433.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002715/0.2673, allocations: 134.7 kB / 433.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.2674, allocations: 87.7 kB / 433.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.2675, allocations: 95.59 kB / 434 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.2676, allocations: 24 kB / 434.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.084e-05/0.2676, allocations: 28 kB / 434.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.872e-05/0.2677, allocations: 55.83 kB / 434.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.584e-05/0.2678, allocations: 75.66 kB / 434.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.2681, allocations: 249.2 kB / 434.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.2681, allocations: 3.984 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2681, allocations: 3.938 kB / 434.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2681, allocations: 0 / 434.5 MB, free: 3.805 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.0006522/0.2688, allocations: 413 kB / 434.9 MB, free: 3.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.2688, allocations: 8.031 kB / 434.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002399/0.269, allocations: 28.83 kB / 434.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.2693, allocations: 174.2 kB / 435.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.2694, allocations: 20.88 kB / 435.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.2694, allocations: 24.38 kB / 435.1 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/0.2698, allocations: 247.1 kB / 435.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.2699, allocations: 192 / 435.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.2699, allocations: 11.94 kB / 435.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.2699, allocations: 11.94 kB / 435.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002897/0.2702, allocations: 149.7 kB / 435.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009197/0.2711, allocations: 0.5697 MB / 436.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.2714, allocations: 164.5 kB / 436.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.2715, allocations: 68.88 kB / 436.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.2715, allocations: 4 kB / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002097/0.2718, allocations: 115.2 kB / 436.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.724e-06/0.2718, allocations: 4 kB / 436.5 MB, free: 1.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004278/0.2722, allocations: 218.7 kB / 436.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.2722, allocations: 59.39 kB / 436.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.2724, allocations: 153.6 kB / 436.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.2724, allocations: 37.69 kB / 436.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.906e-05/0.2725, allocations: 132.9 kB / 437 MB, free: 1.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.421e-05/0.2726, allocations: 67.47 kB / 437.1 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.2727, allocations: 74.02 kB / 437.2 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2728, allocations: 322.8 kB / 437.5 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.2729, allocations: 64.62 kB / 437.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.2731, allocations: 132 kB / 437.7 MB, free: 404 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.2734, allocations: 171.2 kB / 437.9 MB, free: 208 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2734, allocations: 0 / 437.9 MB, free: 208 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000387/0.2737, allocations: 249.3 kB / 438.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2738, allocations: 7.938 kB / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2738, allocations: 4 kB / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.2738, allocations: 0 / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.2739, allocations: 27.92 kB / 438.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.2739, allocations: 8.156 kB / 438.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.274, allocations: 39.77 kB / 438.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.274, 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.0001426/0.2742, allocations: 153.8 kB / 438.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.2742, allocations: 23.77 kB / 438.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.2743, allocations: 20.94 kB / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.2743, allocations: 0 / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2743, allocations: 0 / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.2743, allocations: 7.984 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006405/0.2749, allocations: 470 kB / 438.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2749, allocations: 0 / 438.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.117e-05/0.275, allocations: 12 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.275, allocations: 0 / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.275, allocations: 8 kB / 438.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.275, allocations: 3.938 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.275, allocations: 3.984 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/0.2753, allocations: 271.9 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.906e-05/0.2753, allocations: 15.84 kB / 439.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.2754, allocations: 4 kB / 439.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.2755, allocations: 11.98 kB / 439.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.399e-05/0.2755, allocations: 23.97 kB / 439.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.2755, allocations: 4 kB / 439.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.632e-05/0.2756, allocations: 95.27 kB / 439.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2756, allocations: 0 / 439.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.2759, allocations: 51.88 kB / 439.3 MB, free: 14.64 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.0001059/0.276, allocations: 103.2 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003129/0.2763, allocations: 164.1 kB / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.2763, allocations: 64 / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.2764, allocations: 74.77 kB / 439.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.2767, allocations: 27.92 kB / 439.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005767/0.2773, allocations: 319.5 kB / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.2774, allocations: 112.5 kB / 440.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.089e-05/0.2775, allocations: 29.88 kB / 440.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.284e-05/0.2775, allocations: 19.44 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2775, allocations: 3.938 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Templates: time 0.005244/0.2828, allocations: 1.813 MB / 442 MB, free: 11.96 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.710346299223602]