Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.3/2.3, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.931e-05/2.926e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3373, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.4853, allocations: 81.13 MB / 439.3 MB, free: 13.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.4856, allocations: 67.97 kB / 439.3 MB, free: 13.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03155/0.5172, allocations: 5.728 MB / 445 MB, free: 7.809 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.5172, allocations: 0 / 445 MB, free: 7.809 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.797e-05/0.5173, allocations: 12 kB / 445.1 MB, free: 7.797 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001543/0.5188, allocations: 0.5571 MB / 445.6 MB, free: 7.195 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.5189, allocations: 8.031 kB / 445.6 MB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.5191, allocations: 43.53 kB / 445.7 MB, free: 7.145 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.5196, allocations: 251.4 kB / 445.9 MB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.881e-05/0.5197, allocations: 16 kB / 445.9 MB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.5198, allocations: 31.91 kB / 446 MB, free: 6.809 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007519/0.5206, allocations: 165.5 kB / 446.1 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.5217, allocations: 317.8 kB / 446.4 MB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.191e-05/0.5217, allocations: 15.84 kB / 446.4 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.241e-05/0.5218, allocations: 0 / 446.4 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.599e-05/0.5218, allocations: 12 kB / 446.5 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004147/0.526, allocations: 1.649 MB / 448.1 MB, free: 4.527 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006902/0.5267, allocations: 226.7 kB / 448.3 MB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.527, allocations: 82.14 kB / 448.4 MB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.527, allocations: 8 kB / 448.4 MB, free: 4.133 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/0.5271, allocations: 50.48 kB / 448.5 MB, free: 4.074 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.737e-06/0.5271, allocations: 0 / 448.5 MB, free: 4.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008676/0.528, allocations: 173.2 kB / 448.6 MB, free: 3.898 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001562/0.5282, allocations: 205.6 kB / 448.8 MB, free: 3.648 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004337/0.5286, allocations: 210.2 kB / 449 MB, free: 3.434 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.5287, allocations: 25.7 kB / 449.1 MB, free: 3.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.529, allocations: 309.9 kB / 449.4 MB, free: 3.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.5292, allocations: 118.3 kB / 449.5 MB, free: 2.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.792e-05/0.5292, allocations: 0 / 449.5 MB, free: 2.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.5294, allocations: 330.8 kB / 449.8 MB, free: 2.648 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/0.5297, allocations: 73.56 kB / 449.9 MB, free: 2.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/0.5305, allocations: 404.5 kB / 450.3 MB, free: 2.023 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004821/0.531, allocations: 143.8 kB / 450.4 MB, free: 1.883 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.596e-05/0.531, allocations: 4 kB / 450.4 MB, free: 1.879 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001454/0.5325, allocations: 417 kB / 450.8 MB, free: 1.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.482e-05/0.5325, allocations: 12 kB / 450.8 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.5326, allocations: 12.84 kB / 450.9 MB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.174e-05/0.5326, allocations: 16 kB / 450.9 MB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.5339, allocations: 155.7 kB / 451 MB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.79e-05/0.5339, allocations: 19.94 kB / 451 MB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007607/0.5347, allocations: 51.42 kB / 451.1 MB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.879e-05/0.5348, allocations: 32 kB / 451.1 MB, free: 1.172 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.000202/0.535, allocations: 134.7 kB / 451.3 MB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008113/0.5358, allocations: 181.1 kB / 451.4 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00031/0.5362, allocations: 27.72 kB / 451.5 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.5363, allocations: 33.83 kB / 451.5 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.5363, allocations: 7.984 kB / 451.5 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.5364, allocations: 4 kB / 451.5 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.5364, allocations: 384 / 451.5 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002657/0.539, allocations: 0.5858 MB / 452.1 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.5391, allocations: 7.938 kB / 452.1 MB, free: 140 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.5404, allocations: 84.33 kB / 452.2 MB, free: 56 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.479e-05/0.5404, allocations: 4 kB / 452.2 MB, free: 52 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-05/0.5405, allocations: 11.98 kB / 452.2 MB, free: 40 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.8e-05/0.5405, allocations: 15.92 kB / 452.2 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.5405, allocations: 0 / 452.2 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.5417, allocations: 0.8863 MB / 453.1 MB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.5418, allocations: 100.9 kB / 453.2 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-05/0.542, allocations: 7.984 kB / 453.2 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008972/0.5429, allocations: 8 kB / 453.2 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.543, allocations: 27.92 kB / 453.2 MB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/0.543, allocations: 8 kB / 453.2 MB, free: 14.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002657/0.5433, allocations: 154 kB / 453.4 MB, free: 14.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5433, allocations: 0 / 453.4 MB, free: 14.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001747/0.5451, allocations: 91.75 kB / 453.5 MB, free: 14.66 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.001715/0.5468, allocations: 1.982 MB / 455.5 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008443/0.5477, allocations: 229.7 kB / 455.7 MB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.5477, allocations: 7.938 kB / 455.7 MB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002413/0.548, allocations: 72.8 kB / 455.8 MB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.5495, allocations: 64.56 kB / 455.8 MB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/0.5553, allocations: 1.626 MB / 457.5 MB, free: 10.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006666/0.556, allocations: 0.8069 MB / 458.3 MB, free: 9.711 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003356/0.5563, allocations: 111.4 kB / 458.4 MB, free: 9.602 MB / 394.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5563, allocations: 0 / 458.4 MB, free: 9.602 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.498/3.054, allocations: 5.423 MB / 463.8 MB, free: 4.176 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat