Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.274/2.274, allocations: 234.9 MB / 250.5 MB, free: 10.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004413/0.0004415, allocations: 12 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3584, allocations: 54.86 MB / 369.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2338/0.5922, allocations: 102.6 MB / 472 MB, free: 3.977 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003287/0.5926, allocations: 91.95 kB / 472.1 MB, free: 3.887 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9571/1.55, allocations: 147.5 MB / 0.605 GB, free: 12.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.196e-06/1.55, allocations: 0 / 0.605 GB, free: 12.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007048/1.551, allocations: 148 kB / 0.6052 GB, free: 12.37 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2273 * Number of variables: 2273 Notification: Performance of Generate backend data structure: time 0.06221/1.613, allocations: 9.473 MB / 0.6144 GB, free: 2.805 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/1.613, allocations: 8.031 kB / 0.6144 GB, free: 2.797 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005992/1.619, allocations: 1.157 MB / 0.6156 GB, free: 1.629 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1211/1.74, allocations: 16.68 MB / 0.6318 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05055/1.791, allocations: 13.35 MB / 0.6449 GB, free: 3.488 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007928/1.791, allocations: 497.1 kB / 0.6454 GB, free: 3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00407/1.796, allocations: 0.6713 MB / 0.646 GB, free: 2.328 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8216/2.617, allocations: 16.89 MB / 0.6625 GB, free: 72.02 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006705/2.618, allocations: 107.9 kB / 0.6626 GB, free: 72.02 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003575/2.622, allocations: 319.1 kB / 0.6629 GB, free: 72.02 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003833/2.625, allocations: 1.466 MB / 0.6643 GB, free: 72 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04731/2.673, allocations: 13.67 MB / 0.6777 GB, free: 71.94 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1233/2.796, allocations: 76.75 MB / 0.7526 GB, free: 22.53 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04582/2.842, allocations: 8.579 MB / 0.761 GB, free: 20.11 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002702/2.845, allocations: 1.349 MB / 0.7623 GB, free: 18.93 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.3e-05/2.845, allocations: 60 kB / 0.7624 GB, free: 18.88 MB / 474.8 MB Notification: Performance of pre-optimization done (n=268): time 7.254e-06/2.845, allocations: 3.5 kB / 0.7624 GB, free: 18.88 MB / 474.8 MB Notification: Performance of matching and sorting (n=352): time 0.2975/3.143, allocations: 52.05 MB / 0.8132 GB, free: 3.195 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003854/3.146, allocations: 3.261 MB / 0.8164 GB, free: 15.71 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01964/3.166, allocations: 6.554 MB / 0.8228 GB, free: 10.36 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001335/3.168, allocations: 80.78 kB / 0.8229 GB, free: 10.28 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006696/3.174, allocations: 4.874 MB / 0.8276 GB, free: 6.059 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003138/3.177, allocations: 1.345 MB / 0.829 GB, free: 4.875 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002052/3.18, allocations: 187.3 kB / 0.8291 GB, free: 4.695 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001033/3.181, allocations: 0.7073 MB / 0.8298 GB, free: 4.09 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3929/3.574, allocations: 4.548 MB / 0.8343 GB, free: 101 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01759/3.591, allocations: 9.829 MB / 0.8439 GB, free: 94.23 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01515/3.606, allocations: 6.534 MB / 0.8503 GB, free: 94.19 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002073/3.607, allocations: 53.53 kB / 0.8503 GB, free: 94.19 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.123/3.73, allocations: 31.23 MB / 0.8808 GB, free: 93.63 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/3.73, allocations: 84.09 kB / 0.8809 GB, free: 93.63 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.087/3.817, allocations: 20.64 MB / 0.901 GB, free: 93.35 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08511/3.902, allocations: 16.61 MB / 0.9173 GB, free: 93.29 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01334/3.916, allocations: 2.113 MB / 0.9193 GB, free: 93.11 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07941/3.995, allocations: 35.36 MB / 0.9539 GB, free: 62.64 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01382/4.009, allocations: 0.7722 MB / 0.9546 GB, free: 61.89 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002531/4.011, allocations: 0.5595 MB / 0.9552 GB, free: 61.34 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 842 * Number of states: 0 () * Number of discrete variables: 60 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],bodyCylinder4.color[3],bodyCylinder4.color[2],bodyCylinder4.color[1],bodyCylinder4.body.sphereColor[3],bodyCylinder4.body.sphereColor[2],bodyCylinder4.body.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],spherical2.sphereColor[3],spherical2.sphereColor[2],spherical2.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1076 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 38,(4,100.0%) 41} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.01066/4.022, allocations: 3.431 MB / 0.9585 GB, free: 58.02 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002068/4.024, allocations: 0.6726 MB / 0.9592 GB, free: 57.7 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03555/4.06, allocations: 10.14 MB / 0.9691 GB, free: 47.51 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03112/4.091, allocations: 8.82 MB / 0.9777 GB, free: 38.63 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.022e-05/4.091, allocations: 20 kB / 0.9777 GB, free: 38.61 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001141/4.091, allocations: 15.94 kB / 0.9777 GB, free: 38.59 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07327/4.165, allocations: 23.44 MB / 1.001 GB, free: 15.19 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.893e-05/4.165, allocations: 0 / 1.001 GB, free: 15.19 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005913/4.171, allocations: 0.573 MB / 1.001 GB, free: 14.62 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02164/4.192, allocations: 3.629 MB / 1.005 GB, free: 11.03 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001215/4.194, allocations: 91.94 kB / 1.005 GB, free: 10.94 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5368/4.73, allocations: 22.73 MB / 1.027 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002447/4.733, allocations: 3.026 MB / 1.03 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04397/4.777, allocations: 15.57 MB / 1.045 GB, free: 98.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005104/4.782, allocations: 1.383 MB / 1.047 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002649/4.785, allocations: 80.08 kB / 1.047 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008184/4.793, allocations: 359.6 kB / 1.047 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001907/4.795, allocations: 244.3 kB / 1.047 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001017/4.796, allocations: 103.7 kB / 1.047 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01317/4.809, allocations: 4.697 MB / 1.052 GB, free: 98.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.11e-07/4.809, allocations: 3.812 kB / 1.052 GB, free: 98.58 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01402/4.823, allocations: 2.122 MB / 1.054 GB, free: 98.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyCylinder1.body.w_a[1],bodyCylinder1.body.w_a[2],bodyCylinder1.body.w_a[3],revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * 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 (246): * Single equations (assignments): 236 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 34,(3,100.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04467/4.868, allocations: 16.64 MB / 1.07 GB, free: 96.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02957/4.898, allocations: 11.97 MB / 1.082 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/4.898, allocations: 0 / 1.082 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01303/4.911, allocations: 5.097 MB / 1.087 GB, free: 89.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008649/4.919, allocations: 0.9414 MB / 1.088 GB, free: 89.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7232/5.643, allocations: 220 MB / 1.303 GB, free: 80.8 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01305/5.656, allocations: 5.51 MB / 1.308 GB, free: 79.92 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009615/5.666, allocations: 3.744 MB / 1.312 GB, free: 79.91 MB / 0.5418 GB Notification: Performance of SimCode: time 1.773e-06/5.666, allocations: 0 / 1.312 GB, free: 79.91 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.784/13.45, allocations: 346.2 MB / 1.65 GB, free: 150.2 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat