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/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_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 0.9298/0.9298, allocations: 111.2 MB / 124.2 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.955e-05/1.97e-05, allocations: 4 kB / 154.3 MB, free: 13.2 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1357, allocations: 25.15 MB / 179.4 MB, free: 0.793 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0947/0.2305, allocations: 33.77 MB / 213.2 MB, free: 15.36 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.2307, allocations: 63.95 kB / 213.3 MB, free: 15.29 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01094/0.2417, allocations: 2.919 MB / 216.2 MB, free: 12.36 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2417, allocations: 0 / 216.2 MB, free: 12.36 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.834e-05/0.2418, allocations: 4.875 kB / 216.2 MB, free: 12.35 MB / 186.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.0006468/0.2424, allocations: 443 kB / 216.6 MB, free: 11.88 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2425, allocations: 8.031 kB / 216.6 MB, free: 11.87 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.202e-05/0.2426, allocations: 27.77 kB / 216.6 MB, free: 11.84 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.2429, allocations: 222.8 kB / 216.9 MB, free: 11.59 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.243, allocations: 28.56 kB / 216.9 MB, free: 11.56 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.243, allocations: 31.98 kB / 216.9 MB, free: 11.53 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005477/0.2436, allocations: 258 kB / 217.2 MB, free: 11.25 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.2436, allocations: 0 / 217.2 MB, free: 11.25 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.504e-05/0.2437, allocations: 12 kB / 217.2 MB, free: 11.24 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.2437, allocations: 7.953 kB / 217.2 MB, free: 11.23 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004079/0.2441, allocations: 165.6 kB / 217.4 MB, free: 11.07 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.2455, allocations: 0.9406 MB / 218.3 MB, free: 10.05 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.2459, allocations: 159.4 kB / 218.5 MB, free: 9.891 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.2461, allocations: 65.23 kB / 218.5 MB, free: 9.824 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.2461, allocations: 8.125 kB / 218.5 MB, free: 9.816 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.2464, allocations: 116 kB / 218.6 MB, free: 9.691 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 2.788e-06/0.2464, allocations: 0 / 218.6 MB, free: 9.691 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004061/0.2468, allocations: 161 kB / 218.8 MB, free: 9.531 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.2469, allocations: 59.39 kB / 218.9 MB, free: 9.461 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.2471, allocations: 155.7 kB / 219 MB, free: 9.305 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.2471, allocations: 33.7 kB / 219 MB, free: 9.266 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.2473, allocations: 210.7 kB / 219.2 MB, free: 9.059 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.847e-05/0.2474, allocations: 51.34 kB / 219.3 MB, free: 9.008 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.2474, allocations: 12 kB / 219.3 MB, free: 8.996 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.2476, allocations: 322.8 kB / 219.6 MB, free: 8.672 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.2478, allocations: 64.64 kB / 219.7 MB, free: 8.605 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.248, allocations: 132.2 kB / 219.8 MB, free: 8.449 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.2482, allocations: 75.8 kB / 219.9 MB, free: 8.375 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.441e-06/0.2482, allocations: 0 / 219.9 MB, free: 8.375 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005484/0.2488, allocations: 233.3 kB / 220.1 MB, free: 8.141 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.2488, allocations: 10.19 kB / 220.1 MB, free: 8.133 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.2488, allocations: 288 / 220.1 MB, free: 8.133 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2489, allocations: 8 kB / 220.1 MB, free: 8.125 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.2491, allocations: 35.92 kB / 220.2 MB, free: 8.09 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.2491, allocations: 11.92 kB / 220.2 MB, free: 8.078 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001408/0.2492, allocations: 15.91 kB / 220.2 MB, free: 8.062 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.12e-05/0.2493, allocations: 16 kB / 220.2 MB, free: 8.047 MB / 186.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.000173/0.2495, allocations: 131.9 kB / 220.3 MB, free: 7.914 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.359e-05/0.2495, allocations: 15.89 kB / 220.4 MB, free: 7.898 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004406/0.25, allocations: 186.2 kB / 220.5 MB, free: 7.707 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.822e-06/0.25, allocations: 4 kB / 220.5 MB, free: 7.703 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.25, allocations: 4 kB / 220.5 MB, free: 7.699 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.25, allocations: 0 / 220.5 MB, free: 7.699 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.2511, allocations: 0.5798 MB / 221.1 MB, free: 7.059 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.598e-06/0.2511, allocations: 0 / 221.1 MB, free: 7.059 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.2512, allocations: 15.94 kB / 221.1 MB, free: 7.043 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.451e-06/0.2512, allocations: 7.938 kB / 221.1 MB, free: 7.035 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.2513, allocations: 7.984 kB / 221.2 MB, free: 7.027 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.2513, allocations: 3.984 kB / 221.2 MB, free: 7.023 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.988e-06/0.2513, allocations: 11.94 kB / 221.2 MB, free: 7.012 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004304/0.2517, allocations: 271.6 kB / 221.4 MB, free: 6.73 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.445e-05/0.2518, allocations: 85.02 kB / 221.5 MB, free: 6.629 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.2519, allocations: 7.922 kB / 221.5 MB, free: 6.621 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.252, allocations: 12 kB / 221.5 MB, free: 6.609 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.58e-05/0.2521, allocations: 23.97 kB / 221.6 MB, free: 6.586 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.2522, allocations: 11.94 kB / 221.6 MB, free: 6.574 MB / 186.7 MB Notification: Performance of sorting global known variables: time 8.748e-05/0.2523, allocations: 100.9 kB / 221.7 MB, free: 6.477 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.39e-07/0.2523, allocations: 0 / 221.7 MB, free: 6.477 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004314/0.2527, allocations: 47.98 kB / 221.7 MB, free: 6.43 MB / 186.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.0001847/0.2529, allocations: 115 kB / 221.8 MB, free: 6.309 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004217/0.2534, allocations: 184 kB / 222 MB, free: 6.129 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.181e-06/0.2534, allocations: 0 / 222 MB, free: 6.129 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.2536, allocations: 75.94 kB / 222.1 MB, free: 6.055 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.2538, allocations: 26.81 kB / 222.1 MB, free: 6.031 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005997/0.2544, allocations: 252.8 kB / 222.4 MB, free: 5.758 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.2549, allocations: 0.737 MB / 223.1 MB, free: 4.992 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.431e-05/0.255, allocations: 23.44 kB / 223.1 MB, free: 4.969 MB / 186.7 MB Notification: Performance of SimCode: time 1.438e-06/0.255, allocations: 0 / 223.1 MB, free: 4.969 MB / 186.7 MB Notification: Performance of Templates: time 0.005161/0.2602, allocations: 2.322 MB / 225.4 MB, free: 2.645 MB / 186.7 MB