Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004987/0.0004987, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1168, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4317/0.5486, allocations: 71.31 MB / 379.8 MB, free: 14.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.5489, allocations: 67.41 kB / 379.9 MB, free: 14.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01412/0.5631, allocations: 3.332 MB / 383.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5631, allocations: 0 / 383.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.5632, allocations: 5.375 kB / 383.2 MB, free: 14.06 MB / 314.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.0008048/0.564, allocations: 479.6 kB / 383.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.564, allocations: 14.06 kB / 383.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.299e-05/0.5641, allocations: 55.19 kB / 383.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.931e-05/0.5642, allocations: 25.22 kB / 383.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.5644, allocations: 197.3 kB / 384 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.5644, allocations: 19.56 kB / 384 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.063e-05/0.5645, allocations: 21.72 kB / 384 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/0.565, allocations: 225.5 kB / 384.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.5651, allocations: 1.375 kB / 384.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.5651, allocations: 9.75 kB / 384.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.5651, allocations: 5.5 kB / 384.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003768/0.5655, allocations: 129.8 kB / 384.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.5672, allocations: 0.8722 MB / 385.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.5676, allocations: 165.7 kB / 385.4 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.5676, allocations: 1.188 kB / 385.4 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.5676, allocations: 45.05 kB / 385.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 3.165e-06/0.5677, allocations: 0 / 385.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005397/0.5682, allocations: 158.1 kB / 385.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.5683, allocations: 109.7 kB / 385.7 MB, free: 12.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.5685, allocations: 174 kB / 385.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.5686, allocations: 29.27 kB / 385.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.5687, allocations: 224.5 kB / 386.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/0.5687, allocations: 63.88 kB / 386.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.5688, allocations: 4.438 kB / 386.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.497e-05/0.5689, allocations: 322.5 kB / 386.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.569, allocations: 47.39 kB / 386.6 MB, free: 11.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.5692, allocations: 154.5 kB / 386.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.5694, allocations: 70.97 kB / 386.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5694, allocations: 1.375 kB / 386.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005214/0.57, allocations: 245 kB / 387 MB, free: 11.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.57, allocations: 7.5 kB / 387.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.57, allocations: 4.125 kB / 387.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.5701, allocations: 5.938 kB / 387.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.5705, allocations: 69.83 kB / 387.1 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.5705, allocations: 8.062 kB / 387.1 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.5708, allocations: 29.81 kB / 387.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.5708, allocations: 12.72 kB / 387.2 MB, free: 11.5 MB / 314.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.0001699/0.571, allocations: 146.7 kB / 387.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.446e-05/0.5711, allocations: 21.39 kB / 387.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.256e-05/0.5712, allocations: 22.91 kB / 387.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.5712, allocations: 2.75 kB / 387.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.5712, allocations: 5.375 kB / 387.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.5712, allocations: 5.312 kB / 387.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000722/0.572, allocations: 418.6 kB / 387.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.572, allocations: 1.375 kB / 387.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.5724, allocations: 40.27 kB / 387.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.5724, allocations: 2.094 kB / 387.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.5724, allocations: 5.438 kB / 387.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.5724, allocations: 6.5 kB / 387.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5725, allocations: 1.062 kB / 387.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005383/0.573, allocations: 421.5 kB / 388.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.906e-05/0.5731, allocations: 98.8 kB / 388.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.5732, allocations: 4.656 kB / 388.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.5734, allocations: 8.078 kB / 388.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.5734, allocations: 12.3 kB / 388.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.5735, allocations: 3.844 kB / 388.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001688/0.5736, allocations: 144.7 kB / 388.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5737, allocations: 1.312 kB / 388.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005631/0.5742, allocations: 56.81 kB / 388.6 MB, free: 10.5 MB / 314.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.0008674/0.5751, allocations: 1.236 MB / 389.8 MB, free: 9.387 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004384/0.5756, allocations: 140.9 kB / 390 MB, free: 9.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5756, allocations: 0 / 390 MB, free: 9.371 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.5757, allocations: 52.62 kB / 390 MB, free: 9.367 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005416/0.5763, allocations: 24.98 kB / 390 MB, free: 9.363 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.5797, allocations: 3.72 MB / 393.7 MB, free: 6.188 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.58, allocations: 0.7362 MB / 394.5 MB, free: 5.488 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.5802, allocations: 56.88 kB / 394.5 MB, free: 5.484 MB / 314.7 MB Notification: Performance of SimCode: time 1.393e-06/0.5802, allocations: 1.344 kB / 394.5 MB, free: 5.484 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.885/3.465, allocations: 3.128 MB / 397.7 MB, free: 5.23 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat