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.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.021/1.021, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002693/0.0002695, allocations: 4 kB / 158.3 MB, free: 15.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04579/0.04608, allocations: 25.17 MB / 183.5 MB, free: 5.988 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1766/0.2227, allocations: 33.3 MB / 216.8 MB, free: 6.879 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.223, allocations: 63.27 kB / 216.9 MB, free: 6.879 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01463/0.2377, allocations: 2.773 MB / 219.6 MB, free: 5.621 MB / 170.7 MB Notification: Performance of FrontEnd: time 4.53e-06/0.2377, allocations: 0 / 219.6 MB, free: 5.621 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.132e-05/0.2378, allocations: 4.656 kB / 219.6 MB, free: 5.621 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007741/0.2386, allocations: 442 kB / 220.1 MB, free: 5.211 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.2387, allocations: 11.75 kB / 220.1 MB, free: 5.207 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.2388, allocations: 22.14 kB / 220.1 MB, free: 5.195 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.2392, allocations: 221.4 kB / 220.3 MB, free: 4.973 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.443e-05/0.2392, allocations: 22.03 kB / 220.3 MB, free: 4.969 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.257e-05/0.2393, allocations: 29.41 kB / 220.4 MB, free: 4.965 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007531/0.2401, allocations: 230.8 kB / 220.6 MB, free: 4.875 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.913e-05/0.2402, allocations: 0 / 220.6 MB, free: 4.875 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.2402, allocations: 6.781 kB / 220.6 MB, free: 4.875 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.2403, allocations: 7.828 kB / 220.6 MB, free: 4.871 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006709/0.241, allocations: 168.9 kB / 220.8 MB, free: 4.84 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.2426, allocations: 0.6833 MB / 221.5 MB, free: 4.34 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.2432, allocations: 165.8 kB / 221.6 MB, free: 4.301 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.2432, allocations: 7.688 kB / 221.6 MB, free: 4.301 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003394/0.2436, allocations: 112.1 kB / 221.7 MB, free: 4.23 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 4.972e-06/0.2436, allocations: 4 kB / 221.7 MB, free: 4.227 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008395/0.2445, allocations: 218.6 kB / 221.9 MB, free: 4.164 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.2446, allocations: 62 kB / 222 MB, free: 4.098 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.2447, allocations: 135.3 kB / 222.1 MB, free: 3.984 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.926e-05/0.2448, allocations: 36.61 kB / 222.2 MB, free: 3.953 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.906e-05/0.2449, allocations: 189.5 kB / 222.4 MB, free: 3.785 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.794e-05/0.245, allocations: 65.03 kB / 222.4 MB, free: 3.746 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-05/0.2451, allocations: 3.062 kB / 222.4 MB, free: 3.746 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.2452, allocations: 324.9 kB / 222.7 MB, free: 3.43 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/0.2455, allocations: 68.3 kB / 222.8 MB, free: 3.41 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.2458, allocations: 121.6 kB / 222.9 MB, free: 3.336 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.2461, allocations: 70.36 kB / 223 MB, free: 3.324 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.665e-06/0.2461, allocations: 3.938 kB / 223 MB, free: 3.32 MB / 170.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008/0.2469, allocations: 231.8 kB / 223.2 MB, free: 3.254 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.247, allocations: 7.719 kB / 223.2 MB, free: 3.254 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.247, allocations: 0 / 223.2 MB, free: 3.254 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.2471, allocations: 3.719 kB / 223.2 MB, free: 3.254 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.2473, allocations: 39.06 kB / 223.3 MB, free: 3.238 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.2474, allocations: 7.781 kB / 223.3 MB, free: 3.234 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.2476, allocations: 19.25 kB / 223.3 MB, free: 3.227 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.2477, allocations: 14.59 kB / 223.3 MB, free: 3.227 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = true 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: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002914/0.248, allocations: 156.3 kB / 223.5 MB, free: 3.098 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.197e-05/0.2481, allocations: 18.34 kB / 223.5 MB, free: 3.086 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006995/0.2488, allocations: 198.2 kB / 223.7 MB, free: 3.02 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.2489, allocations: 7.625 kB / 223.7 MB, free: 3.016 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.552e-06/0.2489, allocations: 3.938 kB / 223.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.166e-06/0.2489, allocations: 0 / 223.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.2504, allocations: 0.5639 MB / 224.3 MB, free: 2.629 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.674e-06/0.2504, allocations: 4 kB / 224.3 MB, free: 2.625 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.2506, allocations: 21.77 kB / 224.3 MB, free: 2.617 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.226e-06/0.2507, allocations: 0 / 224.3 MB, free: 2.617 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.2507, allocations: 5.969 kB / 224.3 MB, free: 2.617 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.2508, allocations: 0 / 224.3 MB, free: 2.617 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.038e-06/0.2508, allocations: 4 kB / 224.3 MB, free: 2.613 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000618/0.2514, allocations: 282.7 kB / 224.6 MB, free: 2.449 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.2515, allocations: 88.77 kB / 224.7 MB, free: 2.348 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.2516, allocations: 4.75 kB / 224.7 MB, free: 2.348 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.2518, allocations: 17.61 kB / 224.7 MB, free: 2.34 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.252, allocations: 18.41 kB / 224.7 MB, free: 2.332 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.859e-05/0.252, allocations: 9.188 kB / 224.7 MB, free: 2.332 MB / 170.7 MB Notification: Performance of sorting global known variables: time 8.021e-05/0.2521, allocations: 93.2 kB / 224.8 MB, free: 2.254 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.242e-06/0.2521, allocations: 0 / 224.8 MB, free: 2.254 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007824/0.2529, allocations: 46.2 kB / 224.8 MB, free: 2.25 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 (transition2.enableFire,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,step.active,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 (26): * Single equations (assignments): 22 * 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.0001965/0.2532, allocations: 114.5 kB / 225 MB, free: 2.156 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0006606/0.2539, allocations: 181.3 kB / 225.1 MB, free: 2.125 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.2539, allocations: 3.719 kB / 225.1 MB, free: 2.125 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002774/0.2542, allocations: 82.59 kB / 225.2 MB, free: 2.113 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.2546, allocations: 15.72 kB / 225.2 MB, free: 2.105 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009876/0.2556, allocations: 391 kB / 225.6 MB, free: 1.82 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.2559, allocations: 0.735 MB / 226.3 MB, free: 1.094 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.256, allocations: 26.8 kB / 226.4 MB, free: 1.086 MB / 170.7 MB Notification: Performance of SimCode: time 2.032e-06/0.2561, allocations: 0 / 226.4 MB, free: 1.086 MB / 170.7 MB Notification: Performance of Templates: time 0.007573/0.2636, allocations: 2.272 MB / 228.6 MB, free: 15.96 MB / 186.7 MB