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.001273/0.001273, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001451/0.001451, allocations: 206.8 kB / 24.48 MB, free: 3.695 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.582/1.582, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.001567/0.001567, allocations: 51.92 kB / 378.9 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2569, allocations: 53.35 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00287/0.2598, allocations: 1.478 MB / 433.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007054/0.2605, allocations: 291.1 kB / 434.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.934e-05/0.2606, allocations: 0 / 434.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.2607, allocations: 23.73 kB / 434.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.185e-05/0.2607, allocations: 23.8 kB / 434.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004287/0.2612, allocations: 119.8 kB / 434.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.2615, allocations: 271.4 kB / 434.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.2618, allocations: 130.7 kB / 434.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2619, allocations: 91.7 kB / 434.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.2621, allocations: 91.59 kB / 434.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.2621, allocations: 24 kB / 434.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.039e-05/0.2622, allocations: 24 kB / 434.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.223e-05/0.2622, allocations: 67.81 kB / 434.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.2623, allocations: 75.66 kB / 435 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003272/0.2627, allocations: 249.6 kB / 435.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2627, allocations: 0 / 435.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2627, allocations: 0 / 435.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2627, allocations: 0 / 435.2 MB, free: 3.793 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.0006845/0.2634, allocations: 413 kB / 435.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.2634, allocations: 8.031 kB / 435.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002537/0.2637, allocations: 28.83 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.264, allocations: 174.2 kB / 435.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.264, allocations: 24.86 kB / 435.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.2641, allocations: 24.38 kB / 435.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004284/0.2645, allocations: 243.2 kB / 436.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.2645, allocations: 192 / 436.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.2645, allocations: 11.94 kB / 436.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2645, allocations: 4 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/0.2648, allocations: 153.7 kB / 436.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.2659, allocations: 0.5697 MB / 436.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.2662, allocations: 166.7 kB / 437 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.2663, allocations: 64.78 kB / 437.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.2663, allocations: 4 kB / 437.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002209/0.2665, allocations: 123.2 kB / 437.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.2665, allocations: 0 / 437.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004487/0.267, allocations: 219 kB / 437.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.2671, allocations: 55.41 kB / 437.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.2672, allocations: 154 kB / 437.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.2672, allocations: 33.7 kB / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.2674, allocations: 128.9 kB / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.686e-05/0.2674, allocations: 63.47 kB / 437.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.2675, allocations: 81.95 kB / 437.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.2677, allocations: 326.8 kB / 438.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.2678, allocations: 64.64 kB / 438.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.268, allocations: 132 kB / 438.4 MB, free: 384 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002628/0.2682, allocations: 183.1 kB / 438.6 MB, free: 176 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2682, allocations: 0 / 438.6 MB, free: 176 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003914/0.2686, allocations: 237.3 kB / 438.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2687, allocations: 4 kB / 438.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2687, allocations: 4 kB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.2687, allocations: 4 kB / 438.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.2688, allocations: 27.92 kB / 438.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.2688, allocations: 8.141 kB / 438.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2689, allocations: 39.78 kB / 438.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.269, allocations: 8 kB / 438.9 MB, free: 15.84 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.0001801/0.2691, allocations: 161.7 kB / 439.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.2692, allocations: 19.84 kB / 439.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.402e-05/0.2692, allocations: 16.94 kB / 439.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2692, allocations: 4 kB / 439.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.2692, allocations: 0 / 439.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2692, allocations: 0 / 439.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008149/0.2701, allocations: 469.7 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2701, allocations: 7.938 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.24e-05/0.2701, allocations: 15.94 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.2701, allocations: 4 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.2701, allocations: 7.984 kB / 439.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.582e-06/0.2701, allocations: 0 / 439.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2702, allocations: 0 / 439.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.2705, allocations: 271.9 kB / 439.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.089e-05/0.2705, allocations: 15.84 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.2705, allocations: 11.98 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.26e-05/0.2706, allocations: 4 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.141e-05/0.2707, allocations: 27.97 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.2707, allocations: 7.984 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.002e-05/0.2708, allocations: 91.27 kB / 440 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2708, allocations: 0 / 440 MB, free: 14.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.2711, allocations: 47.89 kB / 440.1 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.0001152/0.2712, allocations: 103.2 kB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003274/0.2715, allocations: 167.8 kB / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2715, allocations: 448 / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.2716, allocations: 74.75 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.2719, allocations: 23.94 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006092/0.2725, allocations: 341.2 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.2726, allocations: 116.5 kB / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.1e-05/0.2727, allocations: 31.44 kB / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2727, allocations: 0 / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Templates: time 0.004273/0.277, allocations: 2.216 MB / 443.1 MB, free: 11.5 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.994774219987448]