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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.081/1.081, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002712, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05714/0.05747, allocations: 25.16 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2149/0.2724, allocations: 33.87 MB / 217.4 MB, free: 6.363 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.2727, allocations: 60.28 kB / 217.5 MB, free: 6.355 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01045/0.2831, allocations: 2.938 MB / 220.4 MB, free: 5.012 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2832, allocations: 0 / 220.4 MB, free: 5.012 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.2832, allocations: 3.844 kB / 220.4 MB, free: 5.012 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.0006552/0.2839, allocations: 456.2 kB / 220.9 MB, free: 4.59 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.2839, allocations: 7.688 kB / 220.9 MB, free: 4.59 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.699e-05/0.284, allocations: 66.48 kB / 221 MB, free: 4.539 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.214e-05/0.2841, allocations: 23.25 kB / 221 MB, free: 4.527 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.2844, allocations: 223.3 kB / 221.2 MB, free: 4.305 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.2844, allocations: 18.5 kB / 221.2 MB, free: 4.305 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.2845, allocations: 25.97 kB / 221.3 MB, free: 4.305 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.285, allocations: 261.9 kB / 221.5 MB, free: 4.18 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.2851, allocations: 0 / 221.5 MB, free: 4.18 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.2851, allocations: 18.52 kB / 221.5 MB, free: 4.172 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.2851, allocations: 11.73 kB / 221.5 MB, free: 4.164 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.2856, allocations: 166.2 kB / 221.7 MB, free: 4.137 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.2869, allocations: 0.948 MB / 222.6 MB, free: 3.379 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.2873, allocations: 148.9 kB / 222.8 MB, free: 3.344 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.2873, allocations: 192 / 222.8 MB, free: 3.344 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.2876, allocations: 122.3 kB / 222.9 MB, free: 3.266 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.2876, allocations: 0 / 222.9 MB, free: 3.266 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005621/0.2882, allocations: 205.9 kB / 223.1 MB, free: 3.211 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.2882, allocations: 61.77 kB / 223.2 MB, free: 3.145 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.2884, allocations: 141.8 kB / 223.3 MB, free: 3.039 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.2884, allocations: 35.42 kB / 223.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.2885, allocations: 212.8 kB / 223.6 MB, free: 2.824 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.902e-05/0.2886, allocations: 60.39 kB / 223.6 MB, free: 2.789 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.588e-05/0.2886, allocations: 3.375 kB / 223.6 MB, free: 2.789 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.2887, allocations: 333.2 kB / 223.9 MB, free: 2.465 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.2888, allocations: 63.78 kB / 224 MB, free: 2.449 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.2891, allocations: 131.3 kB / 224.1 MB, free: 2.359 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.2893, allocations: 71.89 kB / 224.2 MB, free: 2.348 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2893, allocations: 0 / 224.2 MB, free: 2.348 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005185/0.2898, allocations: 252.6 kB / 224.4 MB, free: 2.266 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.2899, allocations: 7.656 kB / 224.5 MB, free: 2.266 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.2899, allocations: 3.844 kB / 224.5 MB, free: 2.266 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.2899, allocations: 3.875 kB / 224.5 MB, free: 2.266 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.2902, allocations: 34.17 kB / 224.5 MB, free: 2.258 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.2902, allocations: 3.781 kB / 224.5 MB, free: 2.258 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.2904, allocations: 22.55 kB / 224.5 MB, free: 2.246 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.2904, allocations: 18.61 kB / 224.5 MB, free: 2.242 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.0002644/0.2907, allocations: 172.4 kB / 224.7 MB, free: 2.098 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.454e-05/0.2907, allocations: 7.5 kB / 224.7 MB, free: 2.094 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004738/0.2912, allocations: 192.1 kB / 224.9 MB, free: 2.027 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2912, allocations: 3.844 kB / 224.9 MB, free: 2.027 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2913, allocations: 0 / 224.9 MB, free: 2.027 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2913, allocations: 3.984 kB / 224.9 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.2923, allocations: 0.5859 MB / 225.5 MB, free: 1.613 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2923, allocations: 0 / 225.5 MB, free: 1.613 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.2925, allocations: 19.48 kB / 225.5 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.2925, allocations: 0 / 225.5 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.2925, allocations: 3.438 kB / 225.5 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.2925, allocations: 3.938 kB / 225.5 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2925, allocations: 3.953 kB / 225.5 MB, free: 1.602 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.2929, allocations: 271.8 kB / 225.8 MB, free: 1.441 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.177e-05/0.293, allocations: 92.7 kB / 225.9 MB, free: 1.336 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.884e-05/0.293, allocations: 11.33 kB / 225.9 MB, free: 1.332 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.2932, allocations: 7.594 kB / 225.9 MB, free: 1.332 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.833e-05/0.2933, allocations: 18.94 kB / 225.9 MB, free: 1.324 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.2933, allocations: 11.52 kB / 225.9 MB, free: 1.32 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.35e-05/0.2934, allocations: 110.8 kB / 226 MB, free: 1.23 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2934, allocations: 0 / 226 MB, free: 1.23 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004279/0.2939, allocations: 38.12 kB / 226.1 MB, free: 1.23 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.0006785/0.2945, allocations: 0.8202 MB / 226.9 MB, free: 0.5391 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004639/0.295, allocations: 180.9 kB / 227.1 MB, free: 0.5078 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.2951, allocations: 4.062 kB / 227.1 MB, free: 0.5039 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001864/0.2952, allocations: 79.97 kB / 227.2 MB, free: 0.4922 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.2955, allocations: 22.39 kB / 227.2 MB, free: 496 kB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.2982, allocations: 2.361 MB / 229.5 MB, free: 14.48 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.2987, allocations: 0.7425 MB / 230.3 MB, free: 13.75 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.2988, allocations: 60.02 kB / 230.3 MB, free: 13.73 MB / 186.7 MB Notification: Performance of SimCode: time 1.402e-06/0.2988, allocations: 0 / 230.3 MB, free: 13.73 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.341/2.64, allocations: 3.031 MB / 233.4 MB, free: 12.21 MB / 186.7 MB