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.001594/0.001594, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001794/0.001794, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.404/1.404, allocations: 230.6 MB / 258.3 MB, free: 8.246 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.001598/0.001598, allocations: 47.92 kB / 379 MB, free: 2.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2655, allocations: 53.36 MB / 432.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002961/0.2684, allocations: 1.51 MB / 433.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007433/0.2692, allocations: 283.2 kB / 434.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.2693, allocations: 7.938 kB / 434.2 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.2695, allocations: 31.67 kB / 434.2 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.019e-05/0.2695, allocations: 11.81 kB / 434.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.27, allocations: 119.8 kB / 434.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004272/0.2705, allocations: 275.4 kB / 434.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003238/0.2708, allocations: 138.7 kB / 434.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.2709, allocations: 79.78 kB / 434.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.2711, allocations: 103.5 kB / 434.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.2711, allocations: 20 kB / 434.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.227e-05/0.2712, allocations: 35.92 kB / 435 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.756e-05/0.2712, allocations: 55.83 kB / 435 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.2714, allocations: 95.53 kB / 435.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.2717, allocations: 248.3 kB / 435.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2717, allocations: 0 / 435.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2717, allocations: 0 / 435.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2717, allocations: 0 / 435.3 MB, free: 3.984 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.0006883/0.2724, allocations: 413 kB / 435.7 MB, free: 3.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.2724, allocations: 12.03 kB / 435.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002649/0.2727, allocations: 28.83 kB / 435.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.273, allocations: 182.1 kB / 436 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.223e-05/0.2731, allocations: 16.88 kB / 436 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.2731, allocations: 32.36 kB / 436 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004366/0.2736, allocations: 231.2 kB / 436.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2736, allocations: 192 / 436.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.2736, allocations: 15.94 kB / 436.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.2736, allocations: 4 kB / 436.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.2739, allocations: 157.6 kB / 436.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.2749, allocations: 0.655 MB / 437.1 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.2752, allocations: 158.7 kB / 437.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.2754, allocations: 68.78 kB / 437.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.2754, allocations: 8 kB / 437.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.2756, allocations: 115.3 kB / 437.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.392e-06/0.2756, allocations: 0 / 437.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004193/0.276, allocations: 226.6 kB / 437.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.276, allocations: 55.41 kB / 437.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.2762, allocations: 148.2 kB / 437.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.2762, allocations: 41.7 kB / 437.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.471e-05/0.2763, allocations: 132.9 kB / 438 MB, free: 1.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.22e-05/0.2764, allocations: 63.47 kB / 438.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-05/0.2765, allocations: 74.02 kB / 438.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2766, allocations: 326.8 kB / 438.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.2768, allocations: 64.62 kB / 438.5 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.277, allocations: 128.1 kB / 438.6 MB, free: 484 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.2772, allocations: 183 kB / 438.8 MB, free: 276 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2772, allocations: 7.938 kB / 438.8 MB, free: 268 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003714/0.2776, allocations: 241.3 kB / 439.1 MB, free: 20 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2776, allocations: 4 kB / 439.1 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2776, allocations: 4 kB / 439.1 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.2776, allocations: 4 kB / 439.1 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.2778, allocations: 27.97 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.2778, allocations: 4.156 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.502e-05/0.2779, allocations: 31.78 kB / 439.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.2779, allocations: 16 kB / 439.2 MB, free: 15.93 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.0001511/0.2781, allocations: 153.8 kB / 439.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.2781, allocations: 11.89 kB / 439.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.503e-05/0.2782, allocations: 16.94 kB / 439.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2782, allocations: 0 / 439.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.2782, allocations: 8 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.2782, allocations: 3.984 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007134/0.2789, allocations: 0.517 MB / 439.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2789, allocations: 0 / 439.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.231e-05/0.279, allocations: 19.92 kB / 439.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.279, allocations: 4 kB / 439.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.279, allocations: 4 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.279, allocations: 0 / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.279, allocations: 4 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.2793, allocations: 275.8 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.2793, allocations: 15.89 kB / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.2793, allocations: 0 / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.185e-05/0.2794, allocations: 8 kB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.2795, allocations: 23.95 kB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.2795, allocations: 7.938 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.176e-05/0.2796, allocations: 99.27 kB / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2796, allocations: 0 / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002774/0.2798, allocations: 51.84 kB / 440.4 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.0001166/0.28, allocations: 103.2 kB / 440.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003046/0.2803, allocations: 159.8 kB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.2803, allocations: 0 / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.2804, allocations: 74.69 kB / 440.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.0002699/0.2807, allocations: 19.98 kB / 440.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006097/0.2813, allocations: 353.5 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.2817, allocations: 0.7245 MB / 441.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.94e-05/0.2817, allocations: 19.44 kB / 441.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2817, allocations: 0 / 441.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Templates: time 0.004193/0.2859, allocations: 2.201 MB / 444 MB, free: 10.94 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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: 6.577960911905393]