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_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.135/1.135, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.202e-05/2.214e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06157/0.06161, allocations: 25.16 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2566/0.3183, allocations: 33.09 MB / 206.4 MB, free: 7.062 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001728/0.3185, allocations: 59.47 kB / 206.4 MB, free: 7.062 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009955/0.3285, allocations: 2.852 MB / 209.3 MB, free: 6.586 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3286, allocations: 3.938 kB / 209.3 MB, free: 6.582 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.3286, allocations: 4.188 kB / 209.3 MB, free: 6.582 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.0005501/0.3292, allocations: 437.3 kB / 209.7 MB, free: 6.203 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3292, allocations: 9.625 kB / 209.7 MB, free: 6.203 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.3293, allocations: 28.95 kB / 209.8 MB, free: 6.188 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.3295, allocations: 230.6 kB / 210 MB, free: 5.977 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.3296, allocations: 8.625 kB / 210 MB, free: 5.977 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.3297, allocations: 15.31 kB / 210 MB, free: 5.977 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003846/0.33, allocations: 143.4 kB / 210.1 MB, free: 5.977 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004352/0.3305, allocations: 231 kB / 210.4 MB, free: 5.887 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3305, allocations: 1.125 kB / 210.4 MB, free: 5.887 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.3306, allocations: 3.953 kB / 210.4 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3306, allocations: 6.875 kB / 210.4 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.3317, allocations: 0.8832 MB / 211.3 MB, free: 5.273 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.332, allocations: 143.2 kB / 211.4 MB, free: 5.238 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.3322, allocations: 64.95 kB / 211.5 MB, free: 5.23 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.3322, allocations: 6.078 kB / 211.5 MB, free: 5.23 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001904/0.3324, allocations: 106.9 kB / 211.6 MB, free: 5.176 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 3.39e-06/0.3324, allocations: 4 kB / 211.6 MB, free: 5.172 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003583/0.3328, allocations: 135.8 kB / 211.7 MB, free: 5.137 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.3328, allocations: 70.39 kB / 211.8 MB, free: 5.066 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.333, allocations: 135.7 kB / 211.9 MB, free: 4.969 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.333, allocations: 28.11 kB / 211.9 MB, free: 4.938 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.704e-05/0.3331, allocations: 205.7 kB / 212.1 MB, free: 4.766 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.3331, allocations: 55.95 kB / 212.2 MB, free: 4.734 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.242e-05/0.3332, allocations: 0 / 212.2 MB, free: 4.734 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.999e-05/0.3332, allocations: 327.3 kB / 212.5 MB, free: 4.418 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.3334, allocations: 59.39 kB / 212.6 MB, free: 4.41 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.3336, allocations: 121.8 kB / 212.7 MB, free: 4.328 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.3337, allocations: 59.02 kB / 212.7 MB, free: 4.32 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.3337, allocations: 5.125 kB / 212.8 MB, free: 4.316 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004441/0.3342, allocations: 211.9 kB / 213 MB, free: 4.262 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.3342, allocations: 9.844 kB / 213 MB, free: 4.258 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.635e-06/0.3343, allocations: 2.375 kB / 213 MB, free: 4.258 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3343, allocations: 5.156 kB / 213 MB, free: 4.258 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.3345, allocations: 40.02 kB / 213 MB, free: 4.25 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3345, allocations: 4.562 kB / 213 MB, free: 4.25 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.3347, allocations: 17.88 kB / 213 MB, free: 4.238 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.193e-05/0.3347, allocations: 13.06 kB / 213.1 MB, free: 4.238 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,SetBoolean1.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.0001392/0.3349, allocations: 131.9 kB / 213.2 MB, free: 4.113 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.3349, allocations: 11 kB / 213.2 MB, free: 4.109 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004149/0.3353, allocations: 173.9 kB / 213.4 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.475e-06/0.3354, allocations: 2.594 kB / 213.4 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3354, allocations: 1.25 kB / 213.4 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.107e-06/0.3354, allocations: 0 / 213.4 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007931/0.3362, allocations: 0.53 MB / 213.9 MB, free: 3.742 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.96e-06/0.3362, allocations: 0 / 213.9 MB, free: 3.742 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.698e-05/0.3363, allocations: 19.61 kB / 213.9 MB, free: 3.742 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.824e-06/0.3364, allocations: 0 / 213.9 MB, free: 3.742 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.3364, allocations: 1.438 kB / 213.9 MB, free: 3.742 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.721e-06/0.3364, allocations: 1.656 kB / 213.9 MB, free: 3.742 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.84e-06/0.3364, allocations: 0 / 213.9 MB, free: 3.742 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003398/0.3368, allocations: 253.8 kB / 214.2 MB, free: 3.598 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.3368, allocations: 96.84 kB / 214.3 MB, free: 3.492 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.3369, allocations: 1.625 kB / 214.3 MB, free: 3.492 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.337, allocations: 6.625 kB / 214.3 MB, free: 3.492 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.246e-05/0.3371, allocations: 22.77 kB / 214.3 MB, free: 3.488 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.3371, allocations: 7.5 kB / 214.3 MB, free: 3.488 MB / 170.7 MB Notification: Performance of sorting global known variables: time 5.042e-05/0.3372, allocations: 97.41 kB / 214.4 MB, free: 3.414 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.48e-07/0.3372, allocations: 0 / 214.4 MB, free: 3.414 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004815/0.3377, allocations: 30 kB / 214.4 MB, free: 3.414 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,SetBoolean1.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.0001475/0.3379, allocations: 117.3 kB / 214.5 MB, free: 3.309 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003601/0.3382, allocations: 161.3 kB / 214.7 MB, free: 3.293 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.647e-06/0.3382, allocations: 0 / 214.7 MB, free: 3.293 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.3384, allocations: 72.05 kB / 214.8 MB, free: 3.289 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.3387, allocations: 14.58 kB / 214.8 MB, free: 3.285 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005487/0.3392, allocations: 243.1 kB / 215 MB, free: 3.145 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.3394, allocations: 0.7372 MB / 215.8 MB, free: 2.445 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.2e-05/0.3395, allocations: 28.97 kB / 215.8 MB, free: 2.438 MB / 170.7 MB Notification: Performance of SimCode: time 1.728e-06/0.3395, allocations: 3.938 kB / 215.8 MB, free: 2.434 MB / 170.7 MB Notification: Performance of Templates: time 0.007373/0.3469, allocations: 2.298 MB / 218.1 MB, free: 2.223 MB / 170.7 MB