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_Variant2.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_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.149/1.149, allocations: 111.2 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002516/0.0002516, allocations: 4 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05579/0.05607, allocations: 25.16 MB / 184 MB, free: 6.035 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2796/0.3358, allocations: 33.85 MB / 217.9 MB, free: 6.68 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.336, allocations: 64.94 kB / 217.9 MB, free: 6.672 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01095/0.347, allocations: 2.933 MB / 220.9 MB, free: 5.328 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3471, allocations: 0 / 220.9 MB, free: 5.328 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.3471, allocations: 4.719 kB / 220.9 MB, free: 5.328 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.000604/0.3477, allocations: 453.2 kB / 221.3 MB, free: 4.91 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3477, allocations: 7.688 kB / 221.3 MB, free: 4.91 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.593e-05/0.3478, allocations: 27.2 kB / 221.4 MB, free: 4.895 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.3481, allocations: 218.3 kB / 221.6 MB, free: 4.676 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.3481, allocations: 21.47 kB / 221.6 MB, free: 4.676 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.3482, allocations: 24.84 kB / 221.6 MB, free: 4.676 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005427/0.3487, allocations: 271.3 kB / 221.9 MB, free: 4.543 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3488, allocations: 0 / 221.9 MB, free: 4.543 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.3488, allocations: 11 kB / 221.9 MB, free: 4.543 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3488, allocations: 7.766 kB / 221.9 MB, free: 4.539 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000433/0.3493, allocations: 170.4 kB / 222.1 MB, free: 4.512 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.3506, allocations: 0.9507 MB / 223 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003807/0.351, allocations: 157.2 kB / 223.2 MB, free: 3.703 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.3511, allocations: 3.703 kB / 223.2 MB, free: 3.703 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.3513, allocations: 116.4 kB / 223.3 MB, free: 3.633 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 3.586e-06/0.3513, allocations: 4 kB / 223.3 MB, free: 3.629 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.000568/0.3519, allocations: 213.5 kB / 223.5 MB, free: 3.566 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.352, allocations: 58.44 kB / 223.6 MB, free: 3.504 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.3521, allocations: 154.4 kB / 223.7 MB, free: 3.387 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.3522, allocations: 37.08 kB / 223.7 MB, free: 3.352 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.686e-05/0.3523, allocations: 203.1 kB / 223.9 MB, free: 3.172 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.652e-05/0.3524, allocations: 67.75 kB / 224 MB, free: 3.133 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.672e-05/0.3524, allocations: 7.5 kB / 224 MB, free: 3.133 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.47e-05/0.3525, allocations: 330.3 kB / 224.3 MB, free: 2.809 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.3526, allocations: 59.53 kB / 224.4 MB, free: 2.797 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.3528, allocations: 133.2 kB / 224.5 MB, free: 2.707 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.353, allocations: 72.86 kB / 224.6 MB, free: 2.695 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3531, allocations: 0 / 224.6 MB, free: 2.695 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005209/0.3536, allocations: 248.5 kB / 224.8 MB, free: 2.617 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.3536, allocations: 7.688 kB / 224.8 MB, free: 2.617 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3536, allocations: 0 / 224.8 MB, free: 2.617 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3537, allocations: 7.5 kB / 224.9 MB, free: 2.617 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.3539, allocations: 29.98 kB / 224.9 MB, free: 2.609 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.3539, allocations: 11.77 kB / 224.9 MB, free: 2.602 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.3541, allocations: 19.03 kB / 224.9 MB, free: 2.598 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.3542, allocations: 14.8 kB / 224.9 MB, free: 2.594 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: 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 () * Number of clocked 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.0002447/0.3545, allocations: 165.5 kB / 225.1 MB, free: 2.457 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.3545, allocations: 15.58 kB / 225.1 MB, free: 2.449 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000454/0.355, allocations: 194.1 kB / 225.3 MB, free: 2.383 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.355, allocations: 3.812 kB / 225.3 MB, free: 2.383 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.355, allocations: 0 / 225.3 MB, free: 2.383 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.355, allocations: 0 / 225.3 MB, free: 2.383 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009565/0.356, allocations: 0.5886 MB / 225.9 MB, free: 1.969 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.356, allocations: 0 / 225.9 MB, free: 1.969 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.3561, allocations: 16.23 kB / 225.9 MB, free: 1.965 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.3562, allocations: 3.5 kB / 225.9 MB, free: 1.965 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.3562, allocations: 7.938 kB / 225.9 MB, free: 1.961 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.3562, allocations: 0 / 225.9 MB, free: 1.961 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3562, allocations: 3.953 kB / 225.9 MB, free: 1.957 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000396/0.3566, allocations: 280.5 kB / 226.2 MB, free: 1.793 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.3567, allocations: 92.83 kB / 226.3 MB, free: 1.688 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.3567, allocations: 2.938 kB / 226.3 MB, free: 1.688 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.3569, allocations: 12.08 kB / 226.3 MB, free: 1.684 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.357, allocations: 21.22 kB / 226.3 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/0.357, allocations: 9.297 kB / 226.3 MB, free: 1.672 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.696e-05/0.3571, allocations: 101.4 kB / 226.4 MB, free: 1.59 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3571, allocations: 3.938 kB / 226.4 MB, free: 1.586 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004172/0.3575, allocations: 46.17 kB / 226.5 MB, free: 1.582 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) * Number of clocked states: 0 () * 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.0001584/0.3577, allocations: 122.4 kB / 226.6 MB, free: 1.477 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004947/0.3582, allocations: 176.2 kB / 226.8 MB, free: 1.449 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3582, allocations: 0 / 226.8 MB, free: 1.449 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.3584, allocations: 84.47 kB / 226.8 MB, free: 1.434 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.3587, allocations: 19.14 kB / 226.9 MB, free: 1.43 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007745/0.3595, allocations: 414 kB / 227.3 MB, free: 1.141 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.3597, allocations: 0.7338 MB / 228 MB, free: 428 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.3598, allocations: 26.19 kB / 228 MB, free: 416 kB / 170.7 MB Notification: Performance of SimCode: time 1.233e-06/0.3598, allocations: 4 kB / 228 MB, free: 412 kB / 170.7 MB Notification: Performance of Templates: time 0.008407/0.3682, allocations: 2.318 MB / 230.4 MB, free: 15.24 MB / 186.7 MB