Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.153/1.153, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004063, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07196/0.0724, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2504/0.3228, allocations: 33.29 MB / 217.3 MB, free: 6.777 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.3232, allocations: 67.19 kB / 217.4 MB, free: 6.773 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01073/0.3339, allocations: 2.775 MB / 220.2 MB, free: 5.52 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.334, allocations: 0 / 220.2 MB, free: 5.52 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.334, allocations: 4.719 kB / 220.2 MB, free: 5.52 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.0006008/0.3346, allocations: 449.9 kB / 220.6 MB, free: 5.098 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.3346, allocations: 7.719 kB / 220.6 MB, free: 5.098 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.043e-05/0.3347, allocations: 26.84 kB / 220.6 MB, free: 5.082 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.335, allocations: 219.2 kB / 220.9 MB, free: 4.863 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.335, allocations: 18.38 kB / 220.9 MB, free: 4.863 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.3351, allocations: 25.27 kB / 220.9 MB, free: 4.859 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.3356, allocations: 230.7 kB / 221.1 MB, free: 4.77 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.3356, allocations: 3.656 kB / 221.1 MB, free: 4.77 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.3357, allocations: 7.25 kB / 221.1 MB, free: 4.77 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.3357, allocations: 15.42 kB / 221.1 MB, free: 4.762 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000418/0.3361, allocations: 162 kB / 221.3 MB, free: 4.734 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.3372, allocations: 0.6702 MB / 222 MB, free: 4.246 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.3376, allocations: 163.6 kB / 222.1 MB, free: 4.207 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.3376, allocations: 15.53 kB / 222.2 MB, free: 4.199 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.3379, allocations: 114.4 kB / 222.3 MB, free: 4.133 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 2.215e-06/0.3379, allocations: 0 / 222.3 MB, free: 4.133 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006822/0.3386, allocations: 220.4 kB / 222.5 MB, free: 4.066 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.3386, allocations: 58.72 kB / 222.5 MB, free: 4.004 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.3387, allocations: 147.2 kB / 222.7 MB, free: 3.879 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.3388, allocations: 35.73 kB / 222.7 MB, free: 3.848 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.3388, allocations: 194.7 kB / 222.9 MB, free: 3.676 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.51e-05/0.3389, allocations: 59.08 kB / 223 MB, free: 3.641 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.583e-05/0.3389, allocations: 6.438 kB / 223 MB, free: 3.641 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.89e-05/0.339, allocations: 321.9 kB / 223.3 MB, free: 3.324 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.3392, allocations: 63.27 kB / 223.3 MB, free: 3.309 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.3394, allocations: 122 kB / 223.5 MB, free: 3.23 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.3396, allocations: 73.86 kB / 223.5 MB, free: 3.219 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3396, allocations: 3.844 kB / 223.5 MB, free: 3.219 MB / 170.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004794/0.3401, allocations: 243.8 kB / 223.8 MB, free: 3.141 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.3401, allocations: 3.844 kB / 223.8 MB, free: 3.141 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3401, allocations: 3.906 kB / 223.8 MB, free: 3.141 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3401, allocations: 3.875 kB / 223.8 MB, free: 3.141 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.3403, allocations: 29.58 kB / 223.8 MB, free: 3.133 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3404, allocations: 3.844 kB / 223.8 MB, free: 3.133 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.3405, allocations: 18.28 kB / 223.8 MB, free: 3.125 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/0.3406, allocations: 14.86 kB / 223.9 MB, free: 3.121 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.0001923/0.3408, allocations: 166.5 kB / 224 MB, free: 2.98 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.3408, allocations: 15.7 kB / 224 MB, free: 2.973 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004348/0.3412, allocations: 196.3 kB / 224.2 MB, free: 2.906 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.3413, allocations: 3.656 kB / 224.2 MB, free: 2.906 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3413, allocations: 3.938 kB / 224.2 MB, free: 2.902 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3413, allocations: 3.984 kB / 224.2 MB, free: 2.898 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009509/0.3423, allocations: 0.5679 MB / 224.8 MB, free: 2.516 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3423, allocations: 0 / 224.8 MB, free: 2.516 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.3424, allocations: 16.86 kB / 224.8 MB, free: 2.512 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.251e-06/0.3424, allocations: 3.844 kB / 224.8 MB, free: 2.512 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.3425, allocations: 2.812 kB / 224.8 MB, free: 2.512 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.3425, allocations: 3.938 kB / 224.8 MB, free: 2.508 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3425, allocations: 0 / 224.8 MB, free: 2.508 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004221/0.3429, allocations: 282.1 kB / 225.1 MB, free: 2.344 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-05/0.343, allocations: 92.08 kB / 225.2 MB, free: 2.242 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/0.343, allocations: 7.734 kB / 225.2 MB, free: 2.238 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.3432, allocations: 10.19 kB / 225.2 MB, free: 2.238 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.822e-05/0.3433, allocations: 23.17 kB / 225.2 MB, free: 2.227 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.3433, allocations: 9.562 kB / 225.2 MB, free: 2.227 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.217e-05/0.3434, allocations: 91.83 kB / 225.3 MB, free: 2.148 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3434, allocations: 4 kB / 225.3 MB, free: 2.145 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004224/0.3438, allocations: 45.81 kB / 225.4 MB, free: 2.141 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.000183/0.344, allocations: 111.8 kB / 225.5 MB, free: 2.047 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004859/0.3445, allocations: 182.2 kB / 225.7 MB, free: 2.016 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3446, allocations: 0 / 225.7 MB, free: 2.016 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.3448, allocations: 83.73 kB / 225.8 MB, free: 2.008 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.3452, allocations: 26.06 kB / 225.8 MB, free: 1.996 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.3464, allocations: 391.2 kB / 226.2 MB, free: 1.707 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.3468, allocations: 0.7398 MB / 226.9 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.347, allocations: 18.66 kB / 226.9 MB, free: 0.9766 MB / 170.7 MB Notification: Performance of SimCode: time 1.603e-06/0.347, allocations: 7.938 kB / 226.9 MB, free: 0.9688 MB / 170.7 MB Notification: Performance of Templates: time 0.008655/0.3557, allocations: 2.27 MB / 229.2 MB, free: 15.86 MB / 186.7 MB