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/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.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.168/1.168, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.762e-05/2.778e-05, allocations: 4 kB / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1726, allocations: 25.16 MB / 179.5 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05948/0.2321, allocations: 33.57 MB / 213.1 MB, free: 15.53 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.2324, allocations: 67.95 kB / 213.2 MB, free: 15.46 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01405/0.2465, allocations: 3.34 MB / 216.5 MB, free: 12.11 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2465, allocations: 0 / 216.5 MB, free: 12.11 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.2466, allocations: 4 kB / 216.5 MB, free: 12.1 MB / 186.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.0008075/0.2474, allocations: 458.5 kB / 217 MB, free: 11.61 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.2475, allocations: 15.97 kB / 217 MB, free: 11.59 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.49e-05/0.2475, allocations: 58.53 kB / 217 MB, free: 11.53 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.2476, allocations: 31.67 kB / 217.1 MB, free: 11.5 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.2478, allocations: 191.6 kB / 217.2 MB, free: 11.27 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.2479, allocations: 16.56 kB / 217.3 MB, free: 11.25 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/0.248, allocations: 24 kB / 217.3 MB, free: 11.23 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.2485, allocations: 220.4 kB / 217.5 MB, free: 11 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.2485, allocations: 3.906 kB / 217.5 MB, free: 10.99 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.2486, allocations: 19.94 kB / 217.5 MB, free: 10.97 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.2486, allocations: 7.953 kB / 217.5 MB, free: 10.96 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/0.249, allocations: 124.9 kB / 217.6 MB, free: 10.84 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.2507, allocations: 0.8711 MB / 218.5 MB, free: 9.91 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.251, allocations: 147.8 kB / 218.7 MB, free: 9.738 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.2512, allocations: 66.5 kB / 218.7 MB, free: 9.664 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.2512, allocations: 4 kB / 218.7 MB, free: 9.66 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.2513, allocations: 34.56 kB / 218.8 MB, free: 9.617 MB / 186.7 MB Notification: Performance of pre-optimization done (n=17): time 2.735e-06/0.2513, allocations: 0 / 218.8 MB, free: 9.617 MB / 186.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004414/0.2517, allocations: 137.7 kB / 218.9 MB, free: 9.477 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.2518, allocations: 106.8 kB / 219 MB, free: 9.348 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.2521, allocations: 171.4 kB / 219.2 MB, free: 9.172 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.2521, allocations: 29.7 kB / 219.2 MB, free: 9.137 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.2523, allocations: 218.2 kB / 219.4 MB, free: 8.922 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.499e-05/0.2523, allocations: 71.09 kB / 219.5 MB, free: 8.852 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.547e-05/0.2524, allocations: 4 kB / 219.5 MB, free: 8.848 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.2525, allocations: 326.8 kB / 219.8 MB, free: 8.52 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.2527, allocations: 48.5 kB / 219.9 MB, free: 8.469 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.2529, allocations: 150.8 kB / 220 MB, free: 8.273 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.2531, allocations: 71.91 kB / 220.1 MB, free: 8.203 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2531, allocations: 0 / 220.1 MB, free: 8.203 MB / 186.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000548/0.2537, allocations: 221.2 kB / 220.3 MB, free: 7.98 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.2537, allocations: 8 kB / 220.3 MB, free: 7.973 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.2538, allocations: 11.94 kB / 220.3 MB, free: 7.961 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.2538, allocations: 7.984 kB / 220.3 MB, free: 7.953 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004264/0.2542, allocations: 59.92 kB / 220.4 MB, free: 7.895 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.2543, allocations: 7.938 kB / 220.4 MB, free: 7.887 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.2545, allocations: 32.19 kB / 220.4 MB, free: 7.855 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.2545, allocations: 8 kB / 220.4 MB, free: 7.848 MB / 186.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 0.0001095/0.2547, allocations: 131.5 kB / 220.6 MB, free: 7.715 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.654e-05/0.2548, allocations: 23.72 kB / 220.6 MB, free: 7.691 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.812e-05/0.2548, allocations: 21.53 kB / 220.6 MB, free: 7.664 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2549, allocations: 0 / 220.6 MB, free: 7.664 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.2549, allocations: 7.938 kB / 220.6 MB, free: 7.656 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.2549, allocations: 3.984 kB / 220.6 MB, free: 7.652 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007669/0.2557, allocations: 428.8 kB / 221 MB, free: 7.164 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2557, allocations: 0 / 221 MB, free: 7.164 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003902/0.2561, allocations: 39.92 kB / 221.1 MB, free: 7.125 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.138e-06/0.2561, allocations: 4 kB / 221.1 MB, free: 7.121 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.2561, allocations: 0 / 221.1 MB, free: 7.121 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.2562, allocations: 4 kB / 221.1 MB, free: 7.117 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.2562, allocations: 3.984 kB / 221.1 MB, free: 7.113 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005725/0.2568, allocations: 426.6 kB / 221.5 MB, free: 6.645 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.737e-05/0.2569, allocations: 92.92 kB / 221.6 MB, free: 6.535 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.2569, allocations: 12.03 kB / 221.6 MB, free: 6.523 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.2571, allocations: 0 / 221.6 MB, free: 6.523 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.2572, allocations: 15.98 kB / 221.6 MB, free: 6.508 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.2572, allocations: 4 kB / 221.6 MB, free: 6.504 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001681/0.2574, allocations: 143.3 kB / 221.8 MB, free: 6.363 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2574, allocations: 0 / 221.8 MB, free: 6.363 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004802/0.2579, allocations: 51.84 kB / 221.8 MB, free: 6.312 MB / 186.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.0009383/0.2588, allocations: 1.234 MB / 223 MB, free: 5.027 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004135/0.2593, allocations: 135.8 kB / 223.2 MB, free: 4.895 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2593, allocations: 0.875 kB / 223.2 MB, free: 4.895 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.2594, allocations: 47.94 kB / 223.2 MB, free: 4.848 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.2599, allocations: 31.02 kB / 223.2 MB, free: 4.82 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.2615, allocations: 0.5805 MB / 223.8 MB, free: 4.188 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.2618, allocations: 0.7441 MB / 224.6 MB, free: 3.418 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.262, allocations: 59.42 kB / 224.6 MB, free: 3.363 MB / 186.7 MB Notification: Performance of SimCode: time 1.453e-06/0.262, allocations: 0 / 224.6 MB, free: 3.363 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.677/2.939, allocations: 3.101 MB / 227.7 MB, free: 264 kB / 186.7 MB