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.078/1.078, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002957, allocations: 4 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05145/0.05179, allocations: 25.18 MB / 183.5 MB, free: 5.91 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.002767/0.0546, allocations: 1.647 MB / 185.2 MB, free: 4.262 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005623/0.05522, allocations: 195.4 kB / 185.4 MB, free: 4.07 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.05535, allocations: 4 kB / 185.4 MB, free: 4.066 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 8.14e-05/0.05544, allocations: 31.77 kB / 185.4 MB, free: 4.035 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.05565, allocations: 55.86 kB / 185.4 MB, free: 3.98 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.05587, allocations: 39.91 kB / 185.5 MB, free: 3.941 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.05617, allocations: 163.7 kB / 185.6 MB, free: 3.781 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.05641, allocations: 78.27 kB / 185.7 MB, free: 3.707 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.05654, allocations: 75.72 kB / 185.8 MB, free: 3.633 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000178/0.05674, allocations: 91.61 kB / 185.9 MB, free: 3.543 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.05679, allocations: 12 kB / 185.9 MB, free: 3.531 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.119e-05/0.05685, allocations: 12 kB / 185.9 MB, free: 3.52 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-05/0.05691, allocations: 31.84 kB / 185.9 MB, free: 3.488 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 7.311e-05/0.05699, allocations: 65.58 kB / 186 MB, free: 3.418 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.05729, allocations: 187.4 kB / 186.2 MB, free: 3.234 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.0573, allocations: 0 / 186.2 MB, free: 3.234 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.05732, allocations: 0 / 186.2 MB, free: 3.234 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.05733, allocations: 0 / 186.2 MB, free: 3.234 MB / 154.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.0008848/0.05822, allocations: 487.2 kB / 186.7 MB, free: 2.711 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.05828, allocations: 8.031 kB / 186.7 MB, free: 2.703 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.039e-05/0.05838, allocations: 54.55 kB / 186.7 MB, free: 2.641 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.878e-05/0.05846, allocations: 23.72 kB / 186.7 MB, free: 2.617 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.05875, allocations: 218.7 kB / 187 MB, free: 2.363 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.0588, allocations: 24.5 kB / 187 MB, free: 2.34 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.05887, allocations: 20 kB / 187 MB, free: 2.32 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005787/0.05946, allocations: 232.3 kB / 187.2 MB, free: 2.074 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.05949, allocations: 0 / 187.2 MB, free: 2.074 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.05954, allocations: 15.95 kB / 187.2 MB, free: 2.059 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.05956, allocations: 8 kB / 187.3 MB, free: 2.051 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003834/0.05995, allocations: 123.9 kB / 187.4 MB, free: 1.93 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.0616, allocations: 0.8633 MB / 188.2 MB, free: 1.004 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.06199, allocations: 163.7 kB / 188.4 MB, free: 0.8164 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.06203, allocations: 3.938 kB / 188.4 MB, free: 0.8125 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.06207, allocations: 42.56 kB / 188.4 MB, free: 0.7617 MB / 154.7 MB Notification: Performance of pre-optimization done (n=17): time 2.665e-06/0.06209, allocations: 0 / 188.4 MB, free: 0.7617 MB / 154.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005388/0.06263, allocations: 169.6 kB / 188.6 MB, free: 0.5898 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.06272, allocations: 106.8 kB / 188.7 MB, free: 472 kB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.06299, allocations: 203 kB / 188.9 MB, free: 256 kB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.06303, allocations: 25.7 kB / 188.9 MB, free: 224 kB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.06322, allocations: 222.5 kB / 189.2 MB, free: 15.99 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.132e-05/0.06332, allocations: 67.08 kB / 189.2 MB, free: 15.93 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.923e-05/0.06335, allocations: 4 kB / 189.2 MB, free: 15.92 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.06349, allocations: 322.8 kB / 189.5 MB, free: 15.6 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.06364, allocations: 44.55 kB / 189.6 MB, free: 15.55 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.0639, allocations: 158.7 kB / 189.7 MB, free: 15.35 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.06411, allocations: 71.98 kB / 189.8 MB, free: 15.28 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.06413, allocations: 0 / 189.8 MB, free: 15.28 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005671/0.0647, allocations: 237.9 kB / 190 MB, free: 15.04 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.06474, allocations: 7.984 kB / 190 MB, free: 15.03 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.06476, allocations: 4 kB / 190 MB, free: 15.03 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.06479, allocations: 8 kB / 190.1 MB, free: 15.02 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.06521, allocations: 59.92 kB / 190.1 MB, free: 14.96 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.06524, allocations: 4.156 kB / 190.1 MB, free: 14.96 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.06548, allocations: 35.41 kB / 190.2 MB, free: 14.93 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.06552, allocations: 15.98 kB / 190.2 MB, free: 14.91 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 () * Number of clocked 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.0001694/0.0657, allocations: 142 kB / 190.3 MB, free: 14.76 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.335e-05/0.06581, allocations: 19.81 kB / 190.3 MB, free: 14.74 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.888e-05/0.06588, allocations: 21.41 kB / 190.3 MB, free: 14.73 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.0659, allocations: 0 / 190.3 MB, free: 14.73 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.06592, allocations: 7.984 kB / 190.4 MB, free: 14.72 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.06593, allocations: 0 / 190.4 MB, free: 14.72 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007713/0.06671, allocations: 420.9 kB / 190.8 MB, free: 14.24 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.06673, allocations: 0 / 190.8 MB, free: 14.24 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/0.06712, allocations: 39.92 kB / 190.8 MB, free: 14.2 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.06715, allocations: 4 kB / 190.8 MB, free: 14.2 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-05/0.06721, allocations: 7.984 kB / 190.8 MB, free: 14.19 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.244e-05/0.06724, allocations: 11.94 kB / 190.8 MB, free: 14.18 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.06725, allocations: 0 / 190.8 MB, free: 14.18 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005683/0.06782, allocations: 373.4 kB / 191.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.597e-05/0.06793, allocations: 96.92 kB / 191.3 MB, free: 13.67 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/0.06799, allocations: 4 kB / 191.3 MB, free: 13.67 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.06821, allocations: 8.031 kB / 191.3 MB, free: 13.66 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.06826, allocations: 11.95 kB / 191.3 MB, free: 13.65 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.06829, allocations: 15.92 kB / 191.3 MB, free: 13.63 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001785/0.06848, allocations: 148.1 kB / 191.5 MB, free: 13.49 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.06849, allocations: 0 / 191.5 MB, free: 13.49 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004855/0.06899, allocations: 55.84 kB / 191.5 MB, free: 13.43 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 () * Number of clocked 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.0008975/0.0699, allocations: 0.9075 MB / 192.4 MB, free: 12.49 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004143/0.07033, allocations: 135.7 kB / 192.6 MB, free: 12.36 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.07035, allocations: 0.875 kB / 192.6 MB, free: 12.36 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.07049, allocations: 59.92 kB / 192.6 MB, free: 12.3 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.07097, allocations: 28.12 kB / 192.7 MB, free: 12.27 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.07407, allocations: 1.483 MB / 194.1 MB, free: 10.67 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.0745, allocations: 0.7398 MB / 194.9 MB, free: 9.902 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.07467, allocations: 55.42 kB / 194.9 MB, free: 9.848 MB / 170.7 MB Notification: Performance of SimCode: time 1.283e-06/0.07468, allocations: 0 / 194.9 MB, free: 9.848 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.559/2.634, allocations: 3.126 MB / 198.1 MB, free: 6.715 MB / 170.7 MB