Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.091/1.091, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.602e-05, allocations: 4 kB / 148.2 MB, free: 6.117 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05402/0.05411, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2267/0.2809, allocations: 32.9 MB / 206.3 MB, free: 4.598 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.2812, allocations: 58.28 kB / 206.3 MB, free: 4.598 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01324/0.2944, allocations: 3.311 MB / 209.7 MB, free: 4.055 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2945, allocations: 0 / 209.7 MB, free: 4.055 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.2945, allocations: 4.312 kB / 209.7 MB, free: 4.055 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007509/0.2953, allocations: 461.1 kB / 210.1 MB, free: 3.66 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.2953, allocations: 9.875 kB / 210.1 MB, free: 3.66 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.371e-05/0.2954, allocations: 23.8 kB / 210.1 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.2956, allocations: 194 kB / 210.3 MB, free: 3.434 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.2956, allocations: 6.812 kB / 210.3 MB, free: 3.434 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/0.2957, allocations: 16.53 kB / 210.4 MB, free: 3.434 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004183/0.2961, allocations: 111 kB / 210.5 MB, free: 3.434 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004337/0.2966, allocations: 190.2 kB / 210.7 MB, free: 3.359 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.2966, allocations: 9.766 kB / 210.7 MB, free: 3.352 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.2967, allocations: 0 / 210.7 MB, free: 3.352 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.2967, allocations: 9.953 kB / 210.7 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.2983, allocations: 0.8177 MB / 211.5 MB, free: 2.809 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.2986, allocations: 140.2 kB / 211.6 MB, free: 2.734 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.2987, allocations: 58.52 kB / 211.7 MB, free: 2.711 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.2988, allocations: 5.094 kB / 211.7 MB, free: 2.707 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.2988, allocations: 32.75 kB / 211.7 MB, free: 2.668 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 3.316e-06/0.2988, allocations: 0 / 211.7 MB, free: 2.668 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004222/0.2992, allocations: 120.1 kB / 211.8 MB, free: 2.625 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.2993, allocations: 105.1 kB / 211.9 MB, free: 2.5 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.2995, allocations: 146.1 kB / 212.1 MB, free: 2.402 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.2995, allocations: 27.02 kB / 212.1 MB, free: 2.371 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.799e-05/0.2996, allocations: 235.8 kB / 212.3 MB, free: 2.172 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.417e-05/0.2997, allocations: 60.3 kB / 212.4 MB, free: 2.133 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.17e-05/0.2997, allocations: 7.875 kB / 212.4 MB, free: 2.125 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.216e-05/0.2998, allocations: 323.3 kB / 212.7 MB, free: 1.809 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.2999, allocations: 41.09 kB / 212.8 MB, free: 1.809 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.3001, allocations: 148 kB / 212.9 MB, free: 1.676 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.3003, allocations: 64.52 kB / 213 MB, free: 1.664 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.3003, allocations: 1.781 kB / 213 MB, free: 1.664 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004879/0.3008, allocations: 201.8 kB / 213.2 MB, free: 1.605 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.3009, allocations: 10.36 kB / 213.2 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.3009, allocations: 2.812 kB / 213.2 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.3009, allocations: 5.5 kB / 213.2 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/0.3013, allocations: 59.14 kB / 213.2 MB, free: 1.602 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.3014, allocations: 12.67 kB / 213.3 MB, free: 1.598 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.3016, allocations: 21.91 kB / 213.3 MB, free: 1.582 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.3016, allocations: 15 kB / 213.3 MB, free: 1.582 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 9.481e-05/0.3018, allocations: 119.3 kB / 213.4 MB, free: 1.461 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003396/0.3021, allocations: 118.9 kB / 213.5 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.395e-05/0.3022, allocations: 19.52 kB / 213.5 MB, free: 1.406 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.225e-05/0.3023, allocations: 23.39 kB / 213.6 MB, free: 1.395 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.3023, allocations: 2.688 kB / 213.6 MB, free: 1.395 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.3023, allocations: 5.312 kB / 213.6 MB, free: 1.391 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3023, allocations: 1.312 kB / 213.6 MB, free: 1.391 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006448/0.303, allocations: 378.1 kB / 213.9 MB, free: 1.09 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.303, allocations: 1.25 kB / 213.9 MB, free: 1.09 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003775/0.3034, allocations: 41.12 kB / 214 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.3034, allocations: 1.5 kB / 214 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.3035, allocations: 2.656 kB / 214 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3035, allocations: 4.297 kB / 214 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.3035, allocations: 2.469 kB / 214 MB, free: 1.086 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004722/0.304, allocations: 414.4 kB / 214.4 MB, free: 0.7617 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.3041, allocations: 95.2 kB / 214.5 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.249e-05/0.3041, allocations: 4.656 kB / 214.5 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.3044, allocations: 1.344 kB / 214.5 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.3044, allocations: 13.44 kB / 214.5 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.3044, allocations: 4.125 kB / 214.5 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001087/0.3045, allocations: 114.6 kB / 214.6 MB, free: 0.582 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3046, allocations: 0 / 214.6 MB, free: 0.582 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005437/0.3051, allocations: 51.78 kB / 214.7 MB, free: 0.5703 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.000887/0.306, allocations: 1.214 MB / 215.9 MB, free: 15.46 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003871/0.3064, allocations: 117.7 kB / 216 MB, free: 15.45 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.3065, allocations: 0 / 216 MB, free: 15.45 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.3066, allocations: 53.86 kB / 216.1 MB, free: 15.44 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.3071, allocations: 28.97 kB / 216.1 MB, free: 15.43 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001795/0.3089, allocations: 0.5473 MB / 216.6 MB, free: 15.04 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.3094, allocations: 0.7397 MB / 217.4 MB, free: 14.34 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.3095, allocations: 58.47 kB / 217.4 MB, free: 14.33 MB / 186.7 MB Notification: Performance of SimCode: time 9.82e-07/0.3095, allocations: 0 / 217.4 MB, free: 14.33 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/3.217, allocations: 2.991 MB / 220.4 MB, free: 13.82 MB / 186.7 MB