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_Variant3.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_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.126/1.126, allocations: 111.1 MB / 127.3 MB, free: 6.152 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003662, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06378/0.06418, allocations: 25.16 MB / 184 MB, free: 6.031 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2166/0.2809, allocations: 33.83 MB / 217.9 MB, free: 6.703 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.2812, allocations: 63.73 kB / 217.9 MB, free: 6.699 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01307/0.2943, allocations: 2.918 MB / 220.8 MB, free: 5.355 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.2944, allocations: 0 / 220.8 MB, free: 5.355 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.2944, allocations: 4.719 kB / 220.8 MB, free: 5.355 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.000668/0.2951, allocations: 440.7 kB / 221.3 MB, free: 4.949 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2951, allocations: 7.844 kB / 221.3 MB, free: 4.949 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.895e-05/0.2952, allocations: 27.2 kB / 221.3 MB, free: 4.934 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/0.2956, allocations: 224.2 kB / 221.5 MB, free: 4.711 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.413e-05/0.2956, allocations: 19.47 kB / 221.5 MB, free: 4.711 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.2957, allocations: 30.88 kB / 221.6 MB, free: 4.707 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006767/0.2964, allocations: 262.1 kB / 221.8 MB, free: 4.586 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.2964, allocations: 7.922 kB / 221.8 MB, free: 4.578 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.2965, allocations: 9.656 kB / 221.9 MB, free: 4.578 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.2965, allocations: 7.828 kB / 221.9 MB, free: 4.574 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005479/0.2971, allocations: 163.8 kB / 222 MB, free: 4.547 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.2985, allocations: 0.9541 MB / 223 MB, free: 3.785 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/0.299, allocations: 143.1 kB / 223.1 MB, free: 3.75 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.299, allocations: 8.031 kB / 223.1 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/0.2993, allocations: 121.2 kB / 223.2 MB, free: 3.672 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 2.595e-06/0.2993, allocations: 0 / 223.2 MB, free: 3.672 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006272/0.2999, allocations: 207.9 kB / 223.4 MB, free: 3.613 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.3, allocations: 59.23 kB / 223.5 MB, free: 3.547 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.3002, allocations: 157.3 kB / 223.7 MB, free: 3.426 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.3002, allocations: 37.36 kB / 223.7 MB, free: 3.391 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.3003, allocations: 203.5 kB / 223.9 MB, free: 3.215 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.81e-05/0.3004, allocations: 64.17 kB / 224 MB, free: 3.176 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.917e-05/0.3004, allocations: 7.312 kB / 224 MB, free: 3.172 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.234e-05/0.3005, allocations: 329.6 kB / 224.3 MB, free: 2.852 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3007, allocations: 56.44 kB / 224.3 MB, free: 2.84 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.301, allocations: 138.6 kB / 224.5 MB, free: 2.746 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.3012, allocations: 73.31 kB / 224.5 MB, free: 2.734 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.3012, allocations: 0 / 224.5 MB, free: 2.734 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006141/0.3019, allocations: 240.3 kB / 224.8 MB, free: 2.664 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3019, allocations: 7.656 kB / 224.8 MB, free: 2.664 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3019, allocations: 0 / 224.8 MB, free: 2.664 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.302, allocations: 3.781 kB / 224.8 MB, free: 2.664 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/0.3022, allocations: 38.25 kB / 224.8 MB, free: 2.652 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.3022, allocations: 3.875 kB / 224.8 MB, free: 2.652 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02715/0.3294, allocations: 20.92 kB / 224.9 MB, free: 2.645 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.3295, allocations: 19.06 kB / 224.9 MB, free: 2.641 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,SetBoolean1.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.00024/0.3297, allocations: 165.5 kB / 225 MB, free: 2.504 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.889e-05/0.3298, allocations: 11.47 kB / 225 MB, free: 2.496 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005464/0.3303, allocations: 194.7 kB / 225.2 MB, free: 2.426 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.3304, allocations: 3.719 kB / 225.2 MB, free: 2.426 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.3304, allocations: 0 / 225.2 MB, free: 2.426 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3304, allocations: 0 / 225.2 MB, free: 2.426 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.3315, allocations: 0.5904 MB / 225.8 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3316, allocations: 0 / 225.8 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.3317, allocations: 16.66 kB / 225.8 MB, free: 2.008 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3317, allocations: 0 / 225.8 MB, free: 2.008 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.3318, allocations: 10.77 kB / 225.9 MB, free: 2.004 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3318, allocations: 0 / 225.9 MB, free: 2.004 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3318, allocations: 0 / 225.9 MB, free: 2.004 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004674/0.3323, allocations: 279.5 kB / 226.1 MB, free: 1.84 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.3323, allocations: 92.75 kB / 226.2 MB, free: 1.734 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.493e-05/0.3324, allocations: 2.688 kB / 226.2 MB, free: 1.734 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.3326, allocations: 6.625 kB / 226.2 MB, free: 1.734 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3327, allocations: 26.44 kB / 226.3 MB, free: 1.723 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/0.3327, allocations: 9.266 kB / 226.3 MB, free: 1.719 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.007278/0.34, allocations: 105.1 kB / 226.4 MB, free: 1.633 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3401, allocations: 3.938 kB / 226.4 MB, free: 1.629 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005859/0.3406, allocations: 42.44 kB / 226.4 MB, free: 1.629 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) * 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.0001623/0.3408, allocations: 109.2 kB / 226.5 MB, free: 1.535 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0005194/0.3414, allocations: 183.8 kB / 226.7 MB, free: 1.5 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3414, allocations: 4.406 kB / 226.7 MB, free: 1.5 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002148/0.3416, allocations: 76.92 kB / 226.8 MB, free: 1.488 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.3419, allocations: 25.5 kB / 226.8 MB, free: 1.477 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008573/0.3428, allocations: 414.2 kB / 227.2 MB, free: 1.176 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.3431, allocations: 0.7387 MB / 227.9 MB, free: 460 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.3432, allocations: 25.55 kB / 228 MB, free: 448 kB / 170.7 MB Notification: Performance of SimCode: time 8.12e-07/0.3432, allocations: 0 / 228 MB, free: 448 kB / 170.7 MB Notification: Performance of Templates: time 0.008405/0.3516, allocations: 2.303 MB / 230.3 MB, free: 15.29 MB / 186.7 MB