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.001677/0.001677, allocations: 99.66 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.001923/0.001923, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.573/1.573, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.001631/0.001631, allocations: 51.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2619, allocations: 53.36 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003237/0.2651, allocations: 1.695 MB / 434 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007942/0.2659, allocations: 291.2 kB / 434.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.2661, allocations: 7.938 kB / 434.3 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.2662, allocations: 23.67 kB / 434.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.381e-05/0.2663, allocations: 15.81 kB / 434.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.2668, allocations: 131.8 kB / 434.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000406/0.2672, allocations: 267.5 kB / 434.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.2676, allocations: 161.5 kB / 434.9 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.2677, allocations: 95.7 kB / 435 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.2679, allocations: 87.53 kB / 435.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.268, allocations: 20 kB / 435.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.059e-05/0.268, allocations: 28 kB / 435.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.2681, allocations: 59.81 kB / 435.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.2682, allocations: 83.59 kB / 435.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003599/0.2686, allocations: 253.9 kB / 435.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2686, allocations: 3.984 kB / 435.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2686, allocations: 4 kB / 435.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.2686, allocations: 0 / 435.5 MB, free: 3.551 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.0007274/0.2693, allocations: 417.2 kB / 435.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2694, allocations: 12.03 kB / 435.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.2696, allocations: 36.72 kB / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.27, allocations: 170.2 kB / 436.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.27, allocations: 28.86 kB / 436.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.27, allocations: 28.38 kB / 436.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004807/0.2705, allocations: 269.7 kB / 436.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.2705, allocations: 4.188 kB / 436.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.39e-05/0.2706, allocations: 11.94 kB / 436.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2706, allocations: 11.94 kB / 436.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.2709, allocations: 161.6 kB / 436.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.2721, allocations: 0.8279 MB / 437.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.2724, allocations: 157.4 kB / 437.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.2725, allocations: 77.58 kB / 437.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.2726, allocations: 0 / 437.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.2728, allocations: 134.7 kB / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.2728, allocations: 4 kB / 437.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004817/0.2733, allocations: 229 kB / 438 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.2733, allocations: 81.11 kB / 438.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.2735, allocations: 153.7 kB / 438.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.2735, allocations: 41.7 kB / 438.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.2736, allocations: 140.7 kB / 438.5 MB, free: 400 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/0.2737, allocations: 63.52 kB / 438.5 MB, free: 336 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.2738, allocations: 85.42 kB / 438.6 MB, free: 244 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.274, allocations: 322.8 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.2741, allocations: 68.09 kB / 439 MB, free: 15.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.2743, allocations: 140.5 kB / 439.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/0.2746, allocations: 196.8 kB / 439.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2746, allocations: 0 / 439.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000431/0.275, allocations: 257.3 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2751, allocations: 8 kB / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2751, allocations: 0 / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.2751, allocations: 4 kB / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.2752, allocations: 39.86 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.2753, allocations: 8 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.2754, allocations: 28.12 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.2754, allocations: 12 kB / 439.7 MB, free: 15.1 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.0001678/0.2756, allocations: 169.6 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.2756, allocations: 7.953 kB / 439.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.461e-05/0.2757, allocations: 28.8 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2757, allocations: 4 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2757, allocations: 0 / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.2757, allocations: 0 / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007216/0.2764, allocations: 496.7 kB / 440.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2764, allocations: 4 kB / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.009e-05/0.2765, allocations: 23.92 kB / 440.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.2765, allocations: 4 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.2765, allocations: 0 / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2765, allocations: 0 / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2765, allocations: 4 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003421/0.2768, allocations: 284 kB / 440.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.68e-05/0.2769, allocations: 15.91 kB / 440.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.525e-05/0.2769, allocations: 0 / 440.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.277, allocations: 11.98 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.998e-05/0.2771, allocations: 23.91 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.2771, allocations: 12 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.243e-05/0.2772, allocations: 95.27 kB / 440.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2772, allocations: 0 / 440.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.2775, allocations: 51.89 kB / 440.9 MB, free: 13.82 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.000121/0.2776, allocations: 111.1 kB / 441 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003499/0.278, allocations: 166.6 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.278, allocations: 0.5625 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.2781, allocations: 71.78 kB / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.2784, allocations: 23.97 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006627/0.2791, allocations: 358 kB / 441.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.2792, allocations: 125.6 kB / 441.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.771e-05/0.2793, allocations: 27.42 kB / 441.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2793, allocations: 0 / 441.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of Templates: time 0.004999/0.2843, allocations: 2.287 MB / 444 MB, free: 10.61 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/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: 6.946636429987848]