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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.1/1.1, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.827e-05/2.84e-05, allocations: 0 / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1786, allocations: 25.15 MB / 179.5 MB, free: 0.8086 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06386/0.2425, allocations: 33.75 MB / 213.3 MB, free: 15.36 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.2428, allocations: 59.97 kB / 213.3 MB, free: 15.3 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01303/0.2559, allocations: 2.905 MB / 216.2 MB, free: 12.38 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.349e-06/0.2559, allocations: 8 kB / 216.2 MB, free: 12.38 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.012e-05/0.256, allocations: 4.875 kB / 216.2 MB, free: 12.37 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.0007834/0.2568, allocations: 431 kB / 216.7 MB, free: 11.91 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.2568, allocations: 12.03 kB / 216.7 MB, free: 11.89 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/0.257, allocations: 70.48 kB / 216.7 MB, free: 11.82 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.427e-05/0.257, allocations: 15.81 kB / 216.8 MB, free: 11.8 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003698/0.2574, allocations: 230.7 kB / 217 MB, free: 11.54 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.2575, allocations: 20.56 kB / 217 MB, free: 11.52 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/0.2576, allocations: 32 kB / 217 MB, free: 11.48 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006469/0.2582, allocations: 250.1 kB / 217.3 MB, free: 11.21 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.2583, allocations: 3.938 kB / 217.3 MB, free: 11.21 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.846e-05/0.2583, allocations: 12 kB / 217.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.52e-05/0.2583, allocations: 11.94 kB / 217.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005051/0.2589, allocations: 165.6 kB / 217.5 MB, free: 11.03 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.2606, allocations: 0.9406 MB / 218.4 MB, free: 10.01 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.261, allocations: 147.2 kB / 218.6 MB, free: 9.859 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.2612, allocations: 77.25 kB / 218.6 MB, free: 9.781 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.2613, allocations: 8.125 kB / 218.6 MB, free: 9.773 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.2616, allocations: 119.4 kB / 218.8 MB, free: 9.645 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 3.045e-06/0.2616, allocations: 0 / 218.8 MB, free: 9.645 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005019/0.2621, allocations: 153.4 kB / 218.9 MB, free: 9.488 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.2622, allocations: 55.41 kB / 219 MB, free: 9.422 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.2624, allocations: 143.4 kB / 219.1 MB, free: 9.277 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.193e-05/0.2625, allocations: 37.7 kB / 219.1 MB, free: 9.234 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.2627, allocations: 210.7 kB / 219.3 MB, free: 9.027 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.839e-05/0.2628, allocations: 55.34 kB / 219.4 MB, free: 8.973 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/0.2628, allocations: 8 kB / 219.4 MB, free: 8.965 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.263, allocations: 324.2 kB / 219.7 MB, free: 8.641 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.2632, allocations: 60.66 kB / 219.8 MB, free: 8.578 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.2634, allocations: 130.9 kB / 219.9 MB, free: 8.422 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.2637, allocations: 71.89 kB / 220 MB, free: 8.352 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.2637, allocations: 0 / 220 MB, free: 8.352 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006244/0.2644, allocations: 241.2 kB / 220.2 MB, free: 8.109 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.2644, allocations: 8 kB / 220.2 MB, free: 8.102 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.2644, allocations: 3.984 kB / 220.2 MB, free: 8.098 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/0.2645, allocations: 4 kB / 220.2 MB, free: 8.094 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.2648, allocations: 36.2 kB / 220.3 MB, free: 8.059 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.2648, allocations: 8 kB / 220.3 MB, free: 8.051 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.265, allocations: 23.78 kB / 220.3 MB, free: 8.027 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.682e-05/0.2651, allocations: 15.98 kB / 220.3 MB, free: 8.012 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,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.0002198/0.2653, allocations: 138.7 kB / 220.4 MB, free: 7.875 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.03e-05/0.2653, allocations: 7.906 kB / 220.5 MB, free: 7.867 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000544/0.2659, allocations: 182.3 kB / 220.6 MB, free: 7.68 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.2659, allocations: 8 kB / 220.6 MB, free: 7.672 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.2659, allocations: 4 kB / 220.6 MB, free: 7.668 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.266, allocations: 3.984 kB / 220.6 MB, free: 7.664 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.2672, allocations: 0.5797 MB / 221.2 MB, free: 7.023 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.2672, allocations: 0 / 221.2 MB, free: 7.023 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.2674, allocations: 23.92 kB / 221.3 MB, free: 7 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.2674, allocations: 3.938 kB / 221.3 MB, free: 6.996 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.2674, allocations: 12 kB / 221.3 MB, free: 6.984 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.2674, allocations: 0 / 221.3 MB, free: 6.984 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.2675, allocations: 3.953 kB / 221.3 MB, free: 6.98 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004839/0.268, allocations: 267.6 kB / 221.5 MB, free: 6.703 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-05/0.268, allocations: 85.02 kB / 221.6 MB, free: 6.602 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.2681, allocations: 15.88 kB / 221.6 MB, free: 6.586 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.2683, allocations: 8 kB / 221.6 MB, free: 6.578 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.2684, allocations: 23.95 kB / 221.7 MB, free: 6.555 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.2684, allocations: 11.95 kB / 221.7 MB, free: 6.543 MB / 186.7 MB Notification: Performance of sorting global known variables: time 8.901e-05/0.2685, allocations: 92.41 kB / 221.8 MB, free: 6.453 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.2686, allocations: 4 kB / 221.8 MB, free: 6.449 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004355/0.269, allocations: 43.98 kB / 221.8 MB, free: 6.406 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,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.0009451/0.27, allocations: 0.8135 MB / 222.6 MB, free: 5.566 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0005353/0.2705, allocations: 176 kB / 222.8 MB, free: 5.395 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2705, allocations: 0 / 222.8 MB, free: 5.395 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.2708, allocations: 72.38 kB / 222.9 MB, free: 5.324 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.2711, allocations: 19.98 kB / 222.9 MB, free: 5.305 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.2722, allocations: 319.2 kB / 223.2 MB, free: 4.957 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.2726, allocations: 0.7404 MB / 223.9 MB, free: 4.188 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.2728, allocations: 59.42 kB / 224 MB, free: 4.129 MB / 186.7 MB Notification: Performance of SimCode: time 4.378e-06/0.2728, allocations: 0 / 224 MB, free: 4.129 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.664/2.937, allocations: 3.039 MB / 227 MB, free: 1.09 MB / 186.7 MB