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_Variant3.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_Variant3,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.093/1.093, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002866/0.0002866, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05741/0.05773, allocations: 25.17 MB / 183.6 MB, free: 5.871 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2139/0.2716, allocations: 33.85 MB / 217.4 MB, free: 6.328 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.2719, allocations: 57.39 kB / 217.5 MB, free: 6.324 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01003/0.282, allocations: 2.915 MB / 220.4 MB, free: 4.992 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.282, allocations: 0 / 220.4 MB, free: 4.992 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.282, allocations: 3.844 kB / 220.4 MB, free: 4.992 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.0005862/0.2826, allocations: 444.9 kB / 220.8 MB, free: 4.578 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.2827, allocations: 7.531 kB / 220.9 MB, free: 4.578 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.807e-05/0.2828, allocations: 66.58 kB / 220.9 MB, free: 4.527 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.953e-05/0.2828, allocations: 26.91 kB / 220.9 MB, free: 4.512 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.2831, allocations: 219.3 kB / 221.2 MB, free: 4.293 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.449e-05/0.2831, allocations: 22.88 kB / 221.2 MB, free: 4.293 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.184e-05/0.2832, allocations: 26.22 kB / 221.2 MB, free: 4.293 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000517/0.2837, allocations: 263.4 kB / 221.5 MB, free: 4.168 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2838, allocations: 0 / 221.5 MB, free: 4.168 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.2838, allocations: 10.75 kB / 221.5 MB, free: 4.164 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.2838, allocations: 15.58 kB / 221.5 MB, free: 4.156 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004282/0.2843, allocations: 169.3 kB / 221.7 MB, free: 4.125 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.2854, allocations: 0.9432 MB / 222.6 MB, free: 3.367 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/0.2858, allocations: 153.3 kB / 222.7 MB, free: 3.324 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.2858, allocations: 192 / 222.7 MB, free: 3.324 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.286, allocations: 115.3 kB / 222.9 MB, free: 3.254 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 2.104e-06/0.286, allocations: 0 / 222.9 MB, free: 3.254 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.000512/0.2866, allocations: 212.7 kB / 223.1 MB, free: 3.191 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.2866, allocations: 61.81 kB / 223.1 MB, free: 3.129 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.2867, allocations: 142.5 kB / 223.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.2868, allocations: 36.45 kB / 223.3 MB, free: 2.984 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.2869, allocations: 204.5 kB / 223.5 MB, free: 2.809 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.449e-05/0.2869, allocations: 57.33 kB / 223.6 MB, free: 2.773 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/0.287, allocations: 3.125 kB / 223.6 MB, free: 2.773 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.53e-05/0.287, allocations: 333.5 kB / 223.9 MB, free: 2.449 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.2872, allocations: 57.25 kB / 223.9 MB, free: 2.438 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.2874, allocations: 141 kB / 224.1 MB, free: 2.34 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.2876, allocations: 67.77 kB / 224.1 MB, free: 2.332 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2876, allocations: 0 / 224.1 MB, free: 2.332 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004777/0.2881, allocations: 244 kB / 224.4 MB, free: 2.258 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.2881, allocations: 7.844 kB / 224.4 MB, free: 2.258 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2881, allocations: 0 / 224.4 MB, free: 2.258 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.345e-05/0.2882, allocations: 7.828 kB / 224.4 MB, free: 2.254 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.2884, allocations: 34.8 kB / 224.4 MB, free: 2.246 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.2884, allocations: 7.812 kB / 224.4 MB, free: 2.242 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.2886, allocations: 26.34 kB / 224.5 MB, free: 2.23 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.2886, allocations: 11.56 kB / 224.5 MB, free: 2.23 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,SetBoolean1.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.0001992/0.2888, allocations: 160.8 kB / 224.6 MB, free: 2.098 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.2889, allocations: 15.66 kB / 224.7 MB, free: 2.09 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004199/0.2893, allocations: 196.2 kB / 224.8 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2893, allocations: 0 / 224.8 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2893, allocations: 3.875 kB / 224.8 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.2894, allocations: 0 / 224.8 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008346/0.2902, allocations: 0.5874 MB / 225.4 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2902, allocations: 0 / 225.4 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.2903, allocations: 14.84 kB / 225.4 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.2903, allocations: 3.656 kB / 225.5 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2904, allocations: 11.36 kB / 225.5 MB, free: 1.598 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2904, allocations: 3.984 kB / 225.5 MB, free: 1.594 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2904, allocations: 1.5 kB / 225.5 MB, free: 1.594 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.2908, allocations: 275.9 kB / 225.7 MB, free: 1.434 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.057e-05/0.2908, allocations: 88.77 kB / 225.8 MB, free: 1.332 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.2909, allocations: 7.25 kB / 225.8 MB, free: 1.328 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.291, allocations: 5.281 kB / 225.8 MB, free: 1.328 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.433e-05/0.2911, allocations: 30.86 kB / 225.9 MB, free: 1.312 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.2911, allocations: 7.5 kB / 225.9 MB, free: 1.312 MB / 170.7 MB Notification: Performance of sorting global known variables: time 5.61e-05/0.2912, allocations: 101.8 kB / 226 MB, free: 1.227 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2912, allocations: 0 / 226 MB, free: 1.227 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003942/0.2916, allocations: 43.84 kB / 226 MB, free: 1.227 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,SetBoolean1.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.0006113/0.2922, allocations: 0.8094 MB / 226.8 MB, free: 0.5352 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004139/0.2927, allocations: 188.5 kB / 227 MB, free: 0.4961 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2927, allocations: 0 / 227 MB, free: 0.4961 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.2929, allocations: 75.69 kB / 227.1 MB, free: 500 kB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.2931, allocations: 20.45 kB / 227.1 MB, free: 496 kB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.2956, allocations: 2.367 MB / 229.5 MB, free: 14.46 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.296, allocations: 0.7392 MB / 230.2 MB, free: 13.73 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.2962, allocations: 63.11 kB / 230.3 MB, free: 13.72 MB / 186.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2962, allocations: 0 / 230.3 MB, free: 13.72 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.332/2.628, allocations: 2.991 MB / 233.3 MB, free: 12.23 MB / 186.7 MB