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/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,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.269/1.269, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.291e-05/2.295e-05, allocations: 4 kB / 148.2 MB, free: 6.133 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05315/0.0532, allocations: 25.18 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2083/0.2616, allocations: 32.54 MB / 205.9 MB, free: 4.957 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001864/0.2618, allocations: 58.83 kB / 206 MB, free: 4.957 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01089/0.2727, allocations: 2.722 MB / 208.7 MB, free: 4.469 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2728, allocations: 0.875 kB / 208.7 MB, free: 4.469 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.2728, allocations: 4.125 kB / 208.7 MB, free: 4.469 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.0006605/0.2735, allocations: 438.5 kB / 209.1 MB, free: 4.086 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.2735, allocations: 8.75 kB / 209.1 MB, free: 4.086 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.239e-05/0.2736, allocations: 26.7 kB / 209.2 MB, free: 4.07 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.2739, allocations: 220.4 kB / 209.4 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.274, allocations: 8.438 kB / 209.4 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.274, allocations: 13.34 kB / 209.4 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004337/0.2745, allocations: 147.6 kB / 209.6 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.275, allocations: 195.3 kB / 209.7 MB, free: 3.809 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.275, allocations: 0 / 209.7 MB, free: 3.809 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.2751, allocations: 7.484 kB / 209.8 MB, free: 3.805 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.2751, allocations: 4.938 kB / 209.8 MB, free: 3.805 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.2763, allocations: 0.6217 MB / 210.4 MB, free: 3.449 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003629/0.2767, allocations: 155.5 kB / 210.5 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.2768, allocations: 76.38 kB / 210.6 MB, free: 3.406 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.246e-05/0.2769, allocations: 2.5 kB / 210.6 MB, free: 3.406 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.2771, allocations: 115.5 kB / 210.7 MB, free: 3.348 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 2.685e-06/0.2771, allocations: 0 / 210.7 MB, free: 3.348 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004392/0.2776, allocations: 149.3 kB / 210.9 MB, free: 3.305 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.2776, allocations: 59.61 kB / 210.9 MB, free: 3.238 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.2778, allocations: 134.3 kB / 211.1 MB, free: 3.137 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.2778, allocations: 34.69 kB / 211.1 MB, free: 3.105 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.017e-05/0.2779, allocations: 192.4 kB / 211.3 MB, free: 2.938 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/0.278, allocations: 58.36 kB / 211.3 MB, free: 2.906 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.366e-05/0.278, allocations: 0 / 211.3 MB, free: 2.906 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.2781, allocations: 324.2 kB / 211.6 MB, free: 2.594 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.2782, allocations: 61.23 kB / 211.7 MB, free: 2.582 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.2784, allocations: 113.7 kB / 211.8 MB, free: 2.512 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.2786, allocations: 56.67 kB / 211.9 MB, free: 2.508 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2787, allocations: 3.047 kB / 211.9 MB, free: 2.508 MB / 170.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004989/0.2792, allocations: 209 kB / 212.1 MB, free: 2.449 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.2792, allocations: 5.219 kB / 212.1 MB, free: 2.449 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.2792, allocations: 1.594 kB / 212.1 MB, free: 2.449 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.2793, allocations: 3.688 kB / 212.1 MB, free: 2.449 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.2795, allocations: 31.02 kB / 212.1 MB, free: 2.445 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.2795, allocations: 10.78 kB / 212.1 MB, free: 2.438 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.2797, allocations: 14.44 kB / 212.1 MB, free: 2.434 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.2798, allocations: 9.953 kB / 212.2 MB, free: 2.434 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.0001711/0.2799, allocations: 127.4 kB / 212.3 MB, free: 2.316 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003633/0.2803, allocations: 154 kB / 212.4 MB, free: 2.27 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.2804, allocations: 11.69 kB / 212.4 MB, free: 2.266 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004677/0.2808, allocations: 174.4 kB / 212.6 MB, free: 2.215 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.2809, allocations: 3.375 kB / 212.6 MB, free: 2.215 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2809, allocations: 0 / 212.6 MB, free: 2.215 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.587e-06/0.2809, allocations: 1.875 kB / 212.6 MB, free: 2.215 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009687/0.2819, allocations: 0.5051 MB / 213.1 MB, free: 1.922 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.2819, allocations: 4 kB / 213.1 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.2821, allocations: 19.8 kB / 213.1 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.2821, allocations: 1.281 kB / 213.1 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2821, allocations: 1.219 kB / 213.1 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.2821, allocations: 1.156 kB / 213.2 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.2822, allocations: 3.375 kB / 213.2 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/0.2826, allocations: 265.7 kB / 213.4 MB, free: 1.766 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.966e-05/0.2827, allocations: 93.55 kB / 213.5 MB, free: 1.66 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.2827, allocations: 12.47 kB / 213.5 MB, free: 1.652 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.2829, allocations: 3.75 kB / 213.5 MB, free: 1.652 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.283, allocations: 24.88 kB / 213.5 MB, free: 1.652 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.283, allocations: 8.5 kB / 213.6 MB, free: 1.652 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.219e-05/0.2831, allocations: 92.72 kB / 213.6 MB, free: 1.578 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2831, allocations: 0 / 213.6 MB, free: 1.578 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004583/0.2836, allocations: 30.16 kB / 213.7 MB, free: 1.578 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.0006907/0.2843, allocations: 0.8039 MB / 214.5 MB, free: 0.9023 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004486/0.2848, allocations: 160.8 kB / 214.6 MB, free: 0.8906 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2848, allocations: 0 / 214.6 MB, free: 0.8906 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.285, allocations: 71.59 kB / 214.7 MB, free: 0.8867 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.2853, allocations: 14.81 kB / 214.7 MB, free: 0.8867 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009187/0.2862, allocations: 294.5 kB / 215 MB, free: 0.7031 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.2866, allocations: 0.7316 MB / 215.7 MB, free: 16.01 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.2868, allocations: 62.98 kB / 215.8 MB, free: 16 MB / 186.7 MB Notification: Performance of SimCode: time 1.213e-06/0.2868, allocations: 1.281 kB / 215.8 MB, free: 16 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.484/2.771, allocations: 2.949 MB / 218.7 MB, free: 15.53 MB / 186.7 MB