Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 0.9965/0.9965, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.541e-05, allocations: 0 / 148.1 MB, free: 6.238 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04512/0.04516, allocations: 25.18 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.245/0.2902, allocations: 32.55 MB / 205.8 MB, free: 7.043 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/0.2904, allocations: 60.7 kB / 205.9 MB, free: 7.043 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008824/0.2993, allocations: 2.711 MB / 208.6 MB, free: 6.566 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.171e-06/0.2993, allocations: 5.312 kB / 208.6 MB, free: 6.562 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.2994, allocations: 8.125 kB / 208.6 MB, free: 6.559 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.0004978/0.2999, allocations: 424.6 kB / 209 MB, free: 6.18 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.2999, allocations: 11.45 kB / 209 MB, free: 6.18 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.39e-05/0.3, allocations: 27.55 kB / 209.1 MB, free: 6.164 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002391/0.3002, allocations: 216.9 kB / 209.3 MB, free: 5.961 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.3003, allocations: 12.8 kB / 209.3 MB, free: 5.961 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.465e-05/0.3003, allocations: 15.06 kB / 209.3 MB, free: 5.961 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003743/0.3007, allocations: 151.7 kB / 209.5 MB, free: 5.953 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004093/0.3011, allocations: 198.9 kB / 209.7 MB, free: 5.898 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3012, allocations: 0 / 209.7 MB, free: 5.898 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.3012, allocations: 6.344 kB / 209.7 MB, free: 5.895 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.763e-06/0.3012, allocations: 5.031 kB / 209.7 MB, free: 5.895 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009203/0.3022, allocations: 0.621 MB / 210.3 MB, free: 5.539 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.3025, allocations: 157.2 kB / 210.4 MB, free: 5.504 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.3027, allocations: 72.89 kB / 210.5 MB, free: 5.496 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.868e-05/0.3027, allocations: 3.25 kB / 210.5 MB, free: 5.496 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.3029, allocations: 106.9 kB / 210.6 MB, free: 5.445 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 2.542e-06/0.3029, allocations: 0 / 210.6 MB, free: 5.445 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003555/0.3033, allocations: 147.3 kB / 210.8 MB, free: 5.406 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.511e-05/0.3033, allocations: 58.73 kB / 210.8 MB, free: 5.34 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.3034, allocations: 137.6 kB / 211 MB, free: 5.234 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.3035, allocations: 32.2 kB / 211 MB, free: 5.203 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.3036, allocations: 195.9 kB / 211.2 MB, free: 5.035 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.04e-05/0.3036, allocations: 53.58 kB / 211.2 MB, free: 5.004 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.172e-05/0.3036, allocations: 1.562 kB / 211.2 MB, free: 5.004 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.839e-05/0.3037, allocations: 324.6 kB / 211.5 MB, free: 4.691 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.3038, allocations: 52.45 kB / 211.6 MB, free: 4.684 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.304, allocations: 119.4 kB / 211.7 MB, free: 4.613 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.3042, allocations: 55.88 kB / 211.8 MB, free: 4.609 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.343e-06/0.3042, allocations: 5.219 kB / 211.8 MB, free: 4.605 MB / 170.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004239/0.3046, allocations: 215.1 kB / 212 MB, free: 4.543 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3047, allocations: 6.391 kB / 212 MB, free: 4.543 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.862e-06/0.3047, allocations: 3.188 kB / 212 MB, free: 4.543 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.3047, allocations: 2.438 kB / 212 MB, free: 4.543 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.3049, allocations: 27.45 kB / 212 MB, free: 4.539 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.3049, allocations: 5.312 kB / 212 MB, free: 4.539 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.305, allocations: 17.22 kB / 212 MB, free: 4.531 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.3051, allocations: 16.16 kB / 212.1 MB, free: 4.527 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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: 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 () * 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.0001376/0.3052, allocations: 127.6 kB / 212.2 MB, free: 4.41 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.145e-05/0.3053, allocations: 13.14 kB / 212.2 MB, free: 4.402 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004082/0.3057, allocations: 180.7 kB / 212.4 MB, free: 4.352 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.2e-06/0.3057, allocations: 2.625 kB / 212.4 MB, free: 4.352 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.441e-06/0.3057, allocations: 0 / 212.4 MB, free: 4.352 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.405e-06/0.3057, allocations: 4 kB / 212.4 MB, free: 4.348 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007931/0.3066, allocations: 0.4954 MB / 212.9 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.779e-06/0.3066, allocations: 0 / 212.9 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.76e-05/0.3067, allocations: 19.23 kB / 212.9 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.655e-06/0.3067, allocations: 1.312 kB / 212.9 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.3067, allocations: 1.406 kB / 212.9 MB, free: 4.066 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.882e-06/0.3067, allocations: 13.59 kB / 212.9 MB, free: 4.055 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.572e-06/0.3068, allocations: 0 / 212.9 MB, free: 4.055 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003502/0.3071, allocations: 266.7 kB / 213.2 MB, free: 3.906 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.3072, allocations: 93.66 kB / 213.3 MB, free: 3.801 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.3072, allocations: 1.094 kB / 213.3 MB, free: 3.801 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.3073, allocations: 7.297 kB / 213.3 MB, free: 3.801 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.3074, allocations: 21.19 kB / 213.3 MB, free: 3.801 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.3075, allocations: 13.31 kB / 213.3 MB, free: 3.797 MB / 170.7 MB Notification: Performance of sorting global known variables: time 4.567e-05/0.3075, allocations: 92.47 kB / 213.4 MB, free: 3.723 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.57e-07/0.3075, allocations: 0 / 213.4 MB, free: 3.723 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004018/0.308, allocations: 30.34 kB / 213.4 MB, free: 3.723 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) * 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.0001437/0.3081, allocations: 118.9 kB / 213.5 MB, free: 3.621 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.3085, allocations: 155.4 kB / 213.7 MB, free: 3.613 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.246e-06/0.3085, allocations: 1.906 kB / 213.7 MB, free: 3.613 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.3086, allocations: 82.31 kB / 213.8 MB, free: 3.602 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.3089, allocations: 13.08 kB / 213.8 MB, free: 3.598 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004967/0.3094, allocations: 239.7 kB / 214 MB, free: 3.465 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.3096, allocations: 0.7367 MB / 214.8 MB, free: 2.766 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.234e-05/0.3097, allocations: 23.36 kB / 214.8 MB, free: 2.758 MB / 170.7 MB Notification: Performance of SimCode: time 1.444e-06/0.3097, allocations: 0 / 214.8 MB, free: 2.758 MB / 170.7 MB Notification: Performance of Templates: time 0.004594/0.3143, allocations: 2.255 MB / 217 MB, free: 2.555 MB / 170.7 MB