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.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,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.046/1.046, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002792, allocations: 8 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05613/0.05645, allocations: 25.16 MB / 183.6 MB, free: 5.895 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2538/0.3103, allocations: 33.31 MB / 216.9 MB, free: 6.863 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.3107, allocations: 60.06 kB / 217 MB, free: 6.863 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01166/0.3223, allocations: 2.768 MB / 219.7 MB, free: 5.594 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3224, allocations: 3.781 kB / 219.7 MB, free: 5.594 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.3224, allocations: 7.75 kB / 219.7 MB, free: 5.59 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006063/0.323, allocations: 446.3 kB / 220.2 MB, free: 5.176 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.3231, allocations: 7.625 kB / 220.2 MB, free: 5.176 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.801e-05/0.3232, allocations: 63.44 kB / 220.2 MB, free: 5.125 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.847e-05/0.3232, allocations: 23.17 kB / 220.3 MB, free: 5.113 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.3235, allocations: 219.2 kB / 220.5 MB, free: 4.895 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.3235, allocations: 22.66 kB / 220.5 MB, free: 4.891 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.923e-05/0.3236, allocations: 25.83 kB / 220.5 MB, free: 4.887 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005053/0.3241, allocations: 231.6 kB / 220.7 MB, free: 4.797 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3241, allocations: 0 / 220.7 MB, free: 4.797 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.3242, allocations: 11.38 kB / 220.8 MB, free: 4.793 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.3242, allocations: 15.55 kB / 220.8 MB, free: 4.785 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004074/0.3246, allocations: 162.5 kB / 220.9 MB, free: 4.758 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.3257, allocations: 0.6672 MB / 221.6 MB, free: 4.27 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.3261, allocations: 170.8 kB / 221.8 MB, free: 4.227 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.3261, allocations: 192 / 221.8 MB, free: 4.227 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.3263, allocations: 120.8 kB / 221.9 MB, free: 4.156 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.3263, allocations: 0 / 221.9 MB, free: 4.156 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005499/0.3269, allocations: 217.2 kB / 222.1 MB, free: 4.094 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.327, allocations: 58.62 kB / 222.2 MB, free: 4.031 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.3271, allocations: 135.9 kB / 222.3 MB, free: 3.918 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.3271, allocations: 43.81 kB / 222.3 MB, free: 3.879 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.3272, allocations: 193.5 kB / 222.5 MB, free: 3.711 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.956e-05/0.3273, allocations: 61.84 kB / 222.6 MB, free: 3.672 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.664e-05/0.3273, allocations: 11.69 kB / 222.6 MB, free: 3.668 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.3274, allocations: 322.4 kB / 222.9 MB, free: 3.352 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.3276, allocations: 64.61 kB / 223 MB, free: 3.336 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.3278, allocations: 117.9 kB / 223.1 MB, free: 3.262 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.328, allocations: 66.27 kB / 223.1 MB, free: 3.254 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.328, allocations: 0 / 223.1 MB, free: 3.254 MB / 170.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004967/0.3285, allocations: 239.5 kB / 223.4 MB, free: 3.184 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3285, allocations: 3.844 kB / 223.4 MB, free: 3.184 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3286, allocations: 12.05 kB / 223.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-05/0.3286, allocations: 7.828 kB / 223.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.3288, allocations: 27.23 kB / 223.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.3288, allocations: 7.781 kB / 223.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.329, allocations: 22.16 kB / 223.5 MB, free: 3.152 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.3291, allocations: 7.688 kB / 223.5 MB, free: 3.152 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000243/0.3293, allocations: 168.8 kB / 223.6 MB, free: 3.012 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.3293, allocations: 15.55 kB / 223.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004571/0.3298, allocations: 198.1 kB / 223.8 MB, free: 2.934 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3298, allocations: 3.844 kB / 223.8 MB, free: 2.934 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3298, allocations: 0 / 223.8 MB, free: 2.934 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3299, allocations: 0 / 223.8 MB, free: 2.934 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009951/0.3309, allocations: 0.5725 MB / 224.4 MB, free: 2.547 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3309, allocations: 0 / 224.4 MB, free: 2.547 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/0.331, allocations: 24.3 kB / 224.4 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.423e-06/0.3311, allocations: 0 / 224.4 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.3311, allocations: 3.125 kB / 224.4 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.3311, allocations: 3.688 kB / 224.4 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3311, allocations: 0 / 224.4 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004055/0.3315, allocations: 281.6 kB / 224.7 MB, free: 2.375 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.983e-05/0.3316, allocations: 88.73 kB / 224.8 MB, free: 2.273 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.3316, allocations: 4.75 kB / 224.8 MB, free: 2.273 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.3318, allocations: 17.05 kB / 224.8 MB, free: 2.266 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3319, allocations: 18.94 kB / 224.9 MB, free: 2.258 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.3319, allocations: 13.05 kB / 224.9 MB, free: 2.254 MB / 170.7 MB Notification: Performance of sorting global known variables: time 5.882e-05/0.332, allocations: 93.05 kB / 225 MB, free: 2.176 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.332, allocations: 0 / 225 MB, free: 2.176 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000412/0.3324, allocations: 41 kB / 225 MB, free: 2.176 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0006582/0.3331, allocations: 0.8229 MB / 225.8 MB, free: 1.484 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004322/0.3336, allocations: 175.4 kB / 226 MB, free: 1.457 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3336, allocations: 0 / 226 MB, free: 1.457 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.3338, allocations: 80.59 kB / 226.1 MB, free: 1.445 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.334, allocations: 21.7 kB / 226.1 MB, free: 1.438 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.3361, allocations: 2.029 MB / 228.1 MB, free: 15.75 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.3366, allocations: 0.7271 MB / 228.8 MB, free: 15.04 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.3367, allocations: 59.84 kB / 228.9 MB, free: 15.02 MB / 186.7 MB Notification: Performance of SimCode: time 1.203e-06/0.3367, allocations: 0 / 228.9 MB, free: 15.02 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.347/2.683, allocations: 2.932 MB / 231.8 MB, free: 13.55 MB / 186.7 MB