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/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_Variant2,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9784/0.9784, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.135e-05/2.132e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0536/0.05366, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.212/0.2657, allocations: 33.1 MB / 206.5 MB, free: 4.703 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.266, allocations: 61.97 kB / 206.5 MB, free: 4.703 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0113/0.2773, allocations: 2.875 MB / 209.4 MB, free: 4.215 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2773, allocations: 0 / 209.4 MB, free: 4.215 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.222e-05/0.2774, allocations: 4.25 kB / 209.4 MB, free: 4.215 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.0006247/0.278, allocations: 448.9 kB / 209.9 MB, free: 3.828 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.2781, allocations: 8.719 kB / 209.9 MB, free: 3.828 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.875e-05/0.2782, allocations: 23.36 kB / 209.9 MB, free: 3.816 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.2785, allocations: 221.6 kB / 210.1 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/0.2785, allocations: 12.55 kB / 210.1 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.063e-05/0.2786, allocations: 15.91 kB / 210.1 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004234/0.279, allocations: 148.9 kB / 210.3 MB, free: 3.605 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.2795, allocations: 222.7 kB / 210.5 MB, free: 3.523 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.2795, allocations: 0 / 210.5 MB, free: 3.523 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.2796, allocations: 5.266 kB / 210.5 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.2796, allocations: 9.531 kB / 210.5 MB, free: 3.516 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.2809, allocations: 0.8928 MB / 211.4 MB, free: 2.898 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000325/0.2812, allocations: 140 kB / 211.5 MB, free: 2.867 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.2814, allocations: 78.5 kB / 211.6 MB, free: 2.852 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.2815, allocations: 2.531 kB / 211.6 MB, free: 2.852 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.2817, allocations: 107.5 kB / 211.7 MB, free: 2.801 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 2.905e-06/0.2817, allocations: 0 / 211.7 MB, free: 2.801 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004236/0.2822, allocations: 146.8 kB / 211.9 MB, free: 2.758 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.2822, allocations: 58.8 kB / 211.9 MB, free: 2.691 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.2823, allocations: 134.3 kB / 212.1 MB, free: 2.594 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.2824, allocations: 40.66 kB / 212.1 MB, free: 2.559 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.038e-05/0.2825, allocations: 208.2 kB / 212.3 MB, free: 2.383 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.349e-05/0.2826, allocations: 53.64 kB / 212.4 MB, free: 2.355 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.354e-05/0.2826, allocations: 0 / 212.4 MB, free: 2.355 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.339e-05/0.2827, allocations: 330.6 kB / 212.7 MB, free: 2.035 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.2828, allocations: 52.41 kB / 212.7 MB, free: 2.031 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.283, allocations: 130 kB / 212.9 MB, free: 1.945 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.2832, allocations: 60.53 kB / 212.9 MB, free: 1.938 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2832, allocations: 0 / 212.9 MB, free: 1.938 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00049/0.2837, allocations: 212.7 kB / 213.1 MB, free: 1.879 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.2837, allocations: 5.188 kB / 213.1 MB, free: 1.879 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2838, allocations: 2.875 kB / 213.1 MB, free: 1.879 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.2838, allocations: 7.438 kB / 213.1 MB, free: 1.879 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.284, allocations: 31.77 kB / 213.2 MB, free: 1.875 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.2841, allocations: 8.188 kB / 213.2 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.2842, allocations: 13.42 kB / 213.2 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.2843, allocations: 14.34 kB / 213.2 MB, free: 1.867 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,greaterEqual.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.0001699/0.2845, allocations: 126.8 kB / 213.3 MB, free: 1.746 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003341/0.2848, allocations: 148.4 kB / 213.5 MB, free: 1.703 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.2849, allocations: 13.44 kB / 213.5 MB, free: 1.695 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004393/0.2853, allocations: 170 kB / 213.7 MB, free: 1.652 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.2853, allocations: 2.344 kB / 213.7 MB, free: 1.652 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2854, allocations: 3.984 kB / 213.7 MB, free: 1.648 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2854, allocations: 5.062 kB / 213.7 MB, free: 1.645 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/0.2863, allocations: 0.53 MB / 214.2 MB, free: 1.324 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2863, allocations: 1.312 kB / 214.2 MB, free: 1.324 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.2865, allocations: 17.83 kB / 214.2 MB, free: 1.32 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.2865, allocations: 5.344 kB / 214.2 MB, free: 1.316 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.2865, allocations: 1.344 kB / 214.2 MB, free: 1.316 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.2865, allocations: 1.312 kB / 214.2 MB, free: 1.316 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.2866, allocations: 3.953 kB / 214.2 MB, free: 1.312 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003929/0.287, allocations: 252.8 kB / 214.5 MB, free: 1.172 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/0.287, allocations: 88.8 kB / 214.6 MB, free: 1.07 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.2871, allocations: 9.188 kB / 214.6 MB, free: 1.066 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.2872, allocations: 10.23 kB / 214.6 MB, free: 1.062 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.095e-05/0.2873, allocations: 19.77 kB / 214.6 MB, free: 1.062 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.2873, allocations: 12.55 kB / 214.6 MB, free: 1.059 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.517e-05/0.2874, allocations: 98.36 kB / 214.7 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.2874, allocations: 0 / 214.7 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004665/0.2879, allocations: 34.16 kB / 214.7 MB, free: 0.9805 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) * 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.0007177/0.2886, allocations: 0.7988 MB / 215.5 MB, free: 16.3 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004407/0.2891, allocations: 163 kB / 215.7 MB, free: 16.29 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2891, allocations: 0 / 215.7 MB, free: 16.29 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.2893, allocations: 73.52 kB / 215.8 MB, free: 16.28 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.2896, allocations: 14.22 kB / 215.8 MB, free: 16.28 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009521/0.2906, allocations: 287.9 kB / 216.1 MB, free: 16.1 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.291, allocations: 0.7452 MB / 216.8 MB, free: 15.39 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.2912, allocations: 62.67 kB / 216.9 MB, free: 15.39 MB / 186.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2912, allocations: 1.219 kB / 216.9 MB, free: 15.39 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.662/2.953, allocations: 3.045 MB / 219.9 MB, free: 14.68 MB / 186.7 MB