Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.09/1.09, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.946e-05, allocations: 4 kB / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05292/0.05299, allocations: 25.18 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.2503, allocations: 33.1 MB / 206.4 MB, free: 6.977 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.2507, allocations: 62.7 kB / 206.4 MB, free: 6.977 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01846/0.2691, allocations: 2.876 MB / 209.3 MB, free: 6.488 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.894e-06/0.2692, allocations: 0 / 209.3 MB, free: 6.488 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.885e-05/0.2693, allocations: 5.469 kB / 209.3 MB, free: 6.488 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0009771/0.2703, allocations: 437.1 kB / 209.8 MB, free: 6.109 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.554e-05/0.2704, allocations: 10.25 kB / 209.8 MB, free: 6.109 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.2705, allocations: 28.16 kB / 209.8 MB, free: 6.094 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.271, allocations: 222.5 kB / 210 MB, free: 5.887 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.1e-05/0.2711, allocations: 9.578 kB / 210 MB, free: 5.887 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.2713, allocations: 15.5 kB / 210 MB, free: 5.887 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008242/0.2721, allocations: 150.1 kB / 210.2 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.2731, allocations: 228.2 kB / 210.4 MB, free: 5.797 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.2731, allocations: 0 / 210.4 MB, free: 5.797 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.499e-05/0.2732, allocations: 5.047 kB / 210.4 MB, free: 5.793 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.2732, allocations: 6.625 kB / 210.4 MB, free: 5.793 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.2754, allocations: 0.8925 MB / 211.3 MB, free: 5.176 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.276, allocations: 135.5 kB / 211.4 MB, free: 5.148 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.2764, allocations: 66.36 kB / 211.5 MB, free: 5.141 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.2764, allocations: 6.453 kB / 211.5 MB, free: 5.141 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003891/0.2769, allocations: 113.4 kB / 211.6 MB, free: 5.082 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 5.009e-06/0.2769, allocations: 0 / 211.6 MB, free: 5.082 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007398/0.2776, allocations: 145.7 kB / 211.8 MB, free: 5.043 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.2777, allocations: 61.61 kB / 211.8 MB, free: 4.977 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.278, allocations: 138.6 kB / 212 MB, free: 4.875 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.134e-05/0.278, allocations: 36.72 kB / 212 MB, free: 4.844 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.2782, allocations: 202.3 kB / 212.2 MB, free: 4.668 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.2783, allocations: 57.27 kB / 212.2 MB, free: 4.641 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.2784, allocations: 4 kB / 212.3 MB, free: 4.637 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.2785, allocations: 325.7 kB / 212.6 MB, free: 4.32 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.2788, allocations: 57 kB / 212.6 MB, free: 4.312 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.2792, allocations: 127.5 kB / 212.7 MB, free: 4.23 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003222/0.2796, allocations: 62.94 kB / 212.8 MB, free: 4.219 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.2796, allocations: 0 / 212.8 MB, free: 4.219 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009735/0.2806, allocations: 218.1 kB / 213 MB, free: 4.156 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.2807, allocations: 9.703 kB / 213 MB, free: 4.156 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.2807, allocations: 3.469 kB / 213 MB, free: 4.156 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.379e-05/0.2808, allocations: 3.188 kB / 213 MB, free: 4.156 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003385/0.2811, allocations: 29.55 kB / 213.1 MB, free: 4.152 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.2812, allocations: 3.531 kB / 213.1 MB, free: 4.152 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.2815, allocations: 15.2 kB / 213.1 MB, free: 4.148 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-05/0.2816, allocations: 13.44 kB / 213.1 MB, free: 4.148 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002317/0.2818, allocations: 136.7 kB / 213.2 MB, free: 4.02 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.197e-05/0.2819, allocations: 9.625 kB / 213.2 MB, free: 4.016 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000813/0.2828, allocations: 173.3 kB / 213.4 MB, free: 3.969 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.2828, allocations: 2.125 kB / 213.4 MB, free: 3.969 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.364e-06/0.2828, allocations: 1.375 kB / 213.4 MB, free: 3.969 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.2829, allocations: 2.344 kB / 213.4 MB, free: 3.969 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.2845, allocations: 0.5264 MB / 213.9 MB, free: 3.648 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.994e-06/0.2845, allocations: 0 / 213.9 MB, free: 3.648 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/0.2848, allocations: 15.08 kB / 214 MB, free: 3.648 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.2848, allocations: 1.219 kB / 214 MB, free: 3.648 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.2848, allocations: 0 / 214 MB, free: 3.648 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.299e-06/0.2849, allocations: 5.406 kB / 214 MB, free: 3.645 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.8e-06/0.2849, allocations: 0 / 214 MB, free: 3.645 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007509/0.2857, allocations: 263.1 kB / 214.2 MB, free: 3.496 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.123e-05/0.2857, allocations: 85.17 kB / 214.3 MB, free: 3.398 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.2858, allocations: 2.297 kB / 214.3 MB, free: 3.398 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.2861, allocations: 4.766 kB / 214.3 MB, free: 3.398 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.2863, allocations: 26.88 kB / 214.3 MB, free: 3.395 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-05/0.2864, allocations: 6.062 kB / 214.3 MB, free: 3.395 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001083/0.2865, allocations: 104.6 kB / 214.4 MB, free: 3.312 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.443e-06/0.2866, allocations: 4 kB / 214.5 MB, free: 3.309 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001/0.2876, allocations: 31.53 kB / 214.5 MB, free: 3.309 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002383/0.2878, allocations: 116.3 kB / 214.6 MB, free: 3.211 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0007259/0.2886, allocations: 159.4 kB / 214.8 MB, free: 3.199 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.453e-06/0.2886, allocations: 0 / 214.8 MB, free: 3.199 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.2889, allocations: 77.53 kB / 214.8 MB, free: 3.191 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.2895, allocations: 16.58 kB / 214.8 MB, free: 3.188 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.2906, allocations: 254.8 kB / 215.1 MB, free: 3.035 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.291, allocations: 0.7355 MB / 215.8 MB, free: 2.34 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.2912, allocations: 22.39 kB / 215.8 MB, free: 2.332 MB / 170.7 MB Notification: Performance of SimCode: time 2.492e-06/0.2912, allocations: 0 / 215.8 MB, free: 2.332 MB / 170.7 MB Notification: Performance of Templates: time 0.009164/0.3004, allocations: 2.307 MB / 218.2 MB, free: 2.133 MB / 170.7 MB