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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.032/1.032, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.589e-05, allocations: 0 / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0651/0.06516, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2115/0.2767, allocations: 33.09 MB / 206.5 MB, free: 4.648 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.277, allocations: 62.22 kB / 206.5 MB, free: 4.648 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01105/0.2881, allocations: 2.855 MB / 209.4 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2881, allocations: 0.875 kB / 209.4 MB, free: 4.172 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.2882, allocations: 3.844 kB / 209.4 MB, free: 4.172 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.0006241/0.2888, allocations: 435.7 kB / 209.8 MB, free: 3.797 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.2889, allocations: 9.688 kB / 209.8 MB, free: 3.797 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.678e-05/0.2889, allocations: 27.55 kB / 209.8 MB, free: 3.781 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.2892, allocations: 222.6 kB / 210.1 MB, free: 3.57 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.826e-05/0.2893, allocations: 9.281 kB / 210.1 MB, free: 3.57 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.78e-05/0.2893, allocations: 19.25 kB / 210.1 MB, free: 3.566 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004591/0.2898, allocations: 149.2 kB / 210.2 MB, free: 3.562 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005268/0.2903, allocations: 224.4 kB / 210.5 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.2904, allocations: 4.578 kB / 210.5 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.2904, allocations: 4.453 kB / 210.5 MB, free: 3.473 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.2904, allocations: 5.969 kB / 210.5 MB, free: 3.473 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.2917, allocations: 0.895 MB / 211.4 MB, free: 2.852 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.2921, allocations: 138 kB / 211.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.2923, allocations: 68.52 kB / 211.6 MB, free: 2.809 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.2923, allocations: 7.031 kB / 211.6 MB, free: 2.805 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.2926, allocations: 112.3 kB / 211.7 MB, free: 2.754 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 3.717e-06/0.2926, allocations: 0 / 211.7 MB, free: 2.754 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004446/0.2931, allocations: 139.8 kB / 211.8 MB, free: 2.719 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.2931, allocations: 59.11 kB / 211.9 MB, free: 2.652 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.2933, allocations: 133.3 kB / 212 MB, free: 2.555 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.2933, allocations: 35.2 kB / 212 MB, free: 2.523 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.133e-05/0.2934, allocations: 208.7 kB / 212.2 MB, free: 2.344 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.611e-05/0.2935, allocations: 51.77 kB / 212.3 MB, free: 2.316 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.356e-05/0.2935, allocations: 1.344 kB / 212.3 MB, free: 2.316 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.313e-05/0.2936, allocations: 328.4 kB / 212.6 MB, free: 2 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.2938, allocations: 50.75 kB / 212.7 MB, free: 1.996 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.294, allocations: 135.1 kB / 212.8 MB, free: 1.906 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.2942, allocations: 50.31 kB / 212.8 MB, free: 1.906 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.2942, allocations: 1.188 kB / 212.8 MB, free: 1.906 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005712/0.2948, allocations: 216.4 kB / 213.1 MB, free: 1.844 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.2948, allocations: 7.844 kB / 213.1 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2949, allocations: 2.812 kB / 213.1 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.2949, allocations: 3.938 kB / 213.1 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.2951, allocations: 35.11 kB / 213.1 MB, free: 1.84 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.2952, allocations: 7.531 kB / 213.1 MB, free: 1.836 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.2954, allocations: 13.84 kB / 213.1 MB, free: 1.828 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.2954, allocations: 20.72 kB / 213.2 MB, free: 1.824 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.0001637/0.2956, allocations: 127.1 kB / 213.3 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003457/0.2959, allocations: 146.2 kB / 213.4 MB, free: 1.66 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.809e-05/0.296, allocations: 13.88 kB / 213.4 MB, free: 1.652 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004825/0.2965, allocations: 168.8 kB / 213.6 MB, free: 1.613 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.2965, allocations: 2.5 kB / 213.6 MB, free: 1.613 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.2965, allocations: 4 kB / 213.6 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.2965, allocations: 1.312 kB / 213.6 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009431/0.2975, allocations: 0.5306 MB / 214.1 MB, free: 1.285 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2975, allocations: 0 / 214.1 MB, free: 1.285 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.2977, allocations: 12 kB / 214.1 MB, free: 1.285 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.2977, allocations: 4.828 kB / 214.2 MB, free: 1.285 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.2977, allocations: 0 / 214.2 MB, free: 1.285 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2977, allocations: 5.5 kB / 214.2 MB, free: 1.281 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2977, allocations: 0 / 214.2 MB, free: 1.281 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.2981, allocations: 263.7 kB / 214.4 MB, free: 1.129 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.2982, allocations: 95.94 kB / 214.5 MB, free: 1.023 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.378e-05/0.2982, allocations: 1.25 kB / 214.5 MB, free: 1.023 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.2984, allocations: 4.031 kB / 214.5 MB, free: 1.023 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.2985, allocations: 21.52 kB / 214.5 MB, free: 1.023 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.2985, allocations: 8.578 kB / 214.5 MB, free: 1.023 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.099e-05/0.2986, allocations: 99.14 kB / 214.6 MB, free: 0.9414 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2986, allocations: 1.344 kB / 214.6 MB, free: 0.9414 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000464/0.2991, allocations: 39.88 kB / 214.7 MB, free: 0.9414 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.0007284/0.2998, allocations: 0.7848 MB / 215.5 MB, free: 16.27 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004701/0.3003, allocations: 165 kB / 215.6 MB, free: 16.25 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3003, allocations: 0 / 215.6 MB, free: 16.25 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.3005, allocations: 73.41 kB / 215.7 MB, free: 16.25 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.3009, allocations: 16.69 kB / 215.7 MB, free: 16.24 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009324/0.3018, allocations: 290.4 kB / 216 MB, free: 16.06 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.3022, allocations: 0.742 MB / 216.7 MB, free: 15.36 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.3024, allocations: 67.64 kB / 216.8 MB, free: 15.34 MB / 186.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3024, allocations: 0 / 216.8 MB, free: 15.34 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.391/2.693, allocations: 3.013 MB / 219.8 MB, free: 14.67 MB / 186.7 MB