Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.00142/0.00142, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001792/0.001792, allocations: 220.5 kB / 23.73 MB, free: 4.16 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.552/1.552, allocations: 230.6 MB / 257.5 MB, free: 7.793 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 39.94 kB / 378.2 MB, free: 2.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2525, allocations: 53.37 MB / 431.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002933/0.2554, allocations: 1.694 MB / 433.2 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006902/0.2561, allocations: 291.2 kB / 433.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.2562, allocations: 7.938 kB / 433.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.2564, allocations: 23.69 kB / 433.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.082e-05/0.2564, allocations: 23.8 kB / 433.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.2568, allocations: 119.8 kB / 433.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.2572, allocations: 275.5 kB / 434 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.2574, allocations: 160.1 kB / 434.1 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.2576, allocations: 95.69 kB / 434.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.2577, allocations: 87.53 kB / 434.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.2577, allocations: 28 kB / 434.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.105e-05/0.2578, allocations: 24 kB / 434.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.098e-05/0.2579, allocations: 59.83 kB / 434.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.558e-05/0.258, allocations: 83.58 kB / 434.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003246/0.2583, allocations: 268.1 kB / 434.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2583, allocations: 0 / 434.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2583, allocations: 0 / 434.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.2583, allocations: 0 / 434.8 MB, free: 3.508 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006792/0.259, allocations: 417.2 kB / 435.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.259, allocations: 8.031 kB / 435.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002448/0.2593, allocations: 36.77 kB / 435.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.2596, allocations: 170.3 kB / 435.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.2596, allocations: 24.88 kB / 435.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.2596, allocations: 24.38 kB / 435.4 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004562/0.2601, allocations: 273.7 kB / 435.7 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2601, allocations: 192 / 435.7 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.2601, allocations: 15.94 kB / 435.7 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.2601, allocations: 4 kB / 435.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.2604, allocations: 161.6 kB / 435.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.2616, allocations: 0.8434 MB / 436.7 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.2618, allocations: 153.5 kB / 436.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.262, allocations: 73.62 kB / 436.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.262, allocations: 7.938 kB / 436.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.2622, allocations: 134.7 kB / 437.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.2622, allocations: 0 / 437.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004762/0.2627, allocations: 225 kB / 437.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.2627, allocations: 85.11 kB / 437.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.2629, allocations: 153.7 kB / 437.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.2629, allocations: 41.83 kB / 437.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.263, allocations: 144.7 kB / 437.7 MB, free: 356 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.652e-05/0.2631, allocations: 63.52 kB / 437.8 MB, free: 292 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2632, allocations: 85.42 kB / 437.8 MB, free: 200 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2633, allocations: 330.8 kB / 438.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.2635, allocations: 59.97 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.2636, allocations: 140.5 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.2639, allocations: 196.8 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2639, allocations: 0 / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004052/0.2643, allocations: 253.6 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.2643, allocations: 12 kB / 438.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2643, allocations: 4 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.2644, allocations: 4 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.2645, allocations: 31.86 kB / 438.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.2645, allocations: 4 kB / 438.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.2646, allocations: 31.83 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.2646, allocations: 12 kB / 438.9 MB, free: 15.06 MB / 350.1 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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * 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 0.0001603/0.2648, allocations: 157.7 kB / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.2648, allocations: 15.94 kB / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.2649, allocations: 20.94 kB / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2649, allocations: 4 kB / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2649, allocations: 0 / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2649, allocations: 0 / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006997/0.2656, allocations: 0.4928 MB / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2656, allocations: 0 / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.219e-05/0.2657, allocations: 15.94 kB / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2657, allocations: 4 kB / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.2657, allocations: 7.984 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2657, allocations: 7.938 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2657, allocations: 4 kB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.266, allocations: 280 kB / 439.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.174e-05/0.266, allocations: 11.91 kB / 439.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.211e-05/0.2661, allocations: 11.98 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.574e-05/0.2662, allocations: 4 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.039e-05/0.2662, allocations: 23.91 kB / 440 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.2663, allocations: 11.98 kB / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.722e-05/0.2663, allocations: 98.27 kB / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2663, allocations: 0 / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.2666, allocations: 47.89 kB / 440.1 MB, free: 13.79 MB / 350.1 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,transition1.enableFire,step.active,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 0.0001109/0.2667, allocations: 111.2 kB / 440.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003307/0.2671, allocations: 174.6 kB / 440.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2671, allocations: 0 / 440.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.2672, allocations: 75.77 kB / 440.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.2675, allocations: 18.48 kB / 440.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005948/0.2681, allocations: 337 kB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001312/0.2682, allocations: 121.6 kB / 440.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.878e-05/0.2683, allocations: 25.94 kB / 441 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.991e-05/0.2684, allocations: 23.44 kB / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2684, allocations: 0 / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of Templates: time 0.005385/0.2737, allocations: 1.814 MB / 442.8 MB, free: 11.08 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.573327552527189]