Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.887/1.887, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004793/0.0004795, allocations: 16 kB / 282.7 MB, free: 9.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3582, allocations: 48.7 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1954/0.5537, allocations: 95.2 MB / 426.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003991/0.5541, allocations: 83.95 kB / 426.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6691/1.223, allocations: 83.91 MB / 0.4986 GB, free: 91.97 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.223, allocations: 0 / 0.4986 GB, free: 91.97 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002447/1.224, allocations: 82.09 kB / 0.4987 GB, free: 91.97 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02591/1.249, allocations: 4.741 MB / 0.5033 GB, free: 89.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/1.25, allocations: 14.28 kB / 0.5033 GB, free: 89.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003275/1.253, allocations: 0.7728 MB / 0.5041 GB, free: 88.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01711/1.27, allocations: 2.212 MB / 0.5062 GB, free: 87.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/1.286, allocations: 4.527 MB / 0.5107 GB, free: 84.97 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003718/1.287, allocations: 319.4 kB / 0.511 GB, free: 84.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002438/1.289, allocations: 431.8 kB / 0.5114 GB, free: 84.72 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0312/1.321, allocations: 10.74 MB / 0.5219 GB, free: 73.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002624/1.321, allocations: 63.41 kB / 0.5219 GB, free: 73.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001839/1.323, allocations: 206.9 kB / 0.5221 GB, free: 73.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00238/1.325, allocations: 1.009 MB / 0.5231 GB, free: 72.58 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02748/1.353, allocations: 9.067 MB / 0.532 GB, free: 63.49 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06938/1.422, allocations: 47.4 MB / 0.5783 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01904/1.441, allocations: 3.619 MB / 0.5818 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01115/1.452, allocations: 4.746 MB / 0.5864 GB, free: 6.125 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/1.452, allocations: 51.56 kB / 0.5865 GB, free: 6.066 MB / 394.7 MB Notification: Performance of pre-optimization done (n=142): time 5.46e-06/1.452, allocations: 0 / 0.5865 GB, free: 6.066 MB / 394.7 MB Notification: Performance of matching and sorting (n=148): time 0.05173/1.504, allocations: 12.37 MB / 0.5986 GB, free: 9.539 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/1.504, allocations: 153.4 kB / 0.5987 GB, free: 9.355 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01039/1.515, allocations: 3.629 MB / 0.6022 GB, free: 5.703 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004419/1.515, allocations: 45.7 kB / 0.6023 GB, free: 5.652 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00357/1.519, allocations: 3.061 MB / 0.6053 GB, free: 2.594 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.52, allocations: 0.5931 MB / 0.6059 GB, free: 2.004 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008092/1.521, allocations: 114 kB / 0.606 GB, free: 1.895 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005704/1.522, allocations: 0.5506 MB / 0.6065 GB, free: 1.332 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005912/1.528, allocations: 1.952 MB / 0.6084 GB, free: 15.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009801/1.537, allocations: 5.61 MB / 0.6139 GB, free: 7.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008684/1.546, allocations: 3.234 MB / 0.617 GB, free: 4.668 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/1.546, allocations: 36 kB / 0.6171 GB, free: 4.633 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.3314/1.878, allocations: 7.931 MB / 0.6248 GB, free: 105.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001371/1.878, allocations: 60.31 kB / 0.6249 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002795/1.878, allocations: 135.8 kB / 0.625 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004408/1.883, allocations: 0.911 MB / 0.6259 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008448/1.891, allocations: 1.349 MB / 0.6272 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/1.902, allocations: 4.872 MB / 0.632 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006821/1.909, allocations: 322.4 kB / 0.6323 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001725/1.91, allocations: 369.4 kB / 0.6326 GB, free: 104 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (711): * Single equations (assignments): 707 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00685/1.917, allocations: 2.077 MB / 0.6347 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009859/1.918, allocations: 340.2 kB / 0.635 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009847/1.928, allocations: 2.896 MB / 0.6378 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.175e-05/1.928, allocations: 20.08 kB / 0.6378 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.928, allocations: 3.906 kB / 0.6378 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.457e-05/1.928, allocations: 8.922 kB / 0.6378 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02195/1.95, allocations: 7.146 MB / 0.6448 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.089e-05/1.95, allocations: 3.938 kB / 0.6448 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00251/1.953, allocations: 254.7 kB / 0.6451 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003779/1.957, allocations: 0.698 MB / 0.6458 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003853/1.957, allocations: 31.58 kB / 0.6458 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008544/1.966, allocations: 4.448 MB / 0.6501 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.966, allocations: 1.562 kB / 0.6501 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01386/1.98, allocations: 5.233 MB / 0.6552 GB, free: 98.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002184/1.982, allocations: 0.6172 MB / 0.6558 GB, free: 98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008525/1.983, allocations: 22.84 kB / 0.6559 GB, free: 97.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/1.986, allocations: 91.98 kB / 0.656 GB, free: 97.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006349/1.986, allocations: 90.81 kB / 0.656 GB, free: 97.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/1.986, allocations: 41.34 kB / 0.6561 GB, free: 97.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006873/1.993, allocations: 2.541 MB / 0.6586 GB, free: 97.06 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.993, allocations: 3.062 kB / 0.6586 GB, free: 97.06 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007393/2.001, allocations: 0.9469 MB / 0.6595 GB, free: 96.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * 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 (117): * Single equations (assignments): 113 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01456/2.015, allocations: 6.046 MB / 0.6654 GB, free: 94.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0118/2.027, allocations: 4.709 MB / 0.67 GB, free: 92.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/2.027, allocations: 2.906 kB / 0.67 GB, free: 92.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003659/2.031, allocations: 1.386 MB / 0.6713 GB, free: 92.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003701/2.035, allocations: 396 kB / 0.6717 GB, free: 92.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1268/2.162, allocations: 123.7 MB / 0.7925 GB, free: 1.598 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3378/2.499, allocations: 3.683 MB / 0.7961 GB, free: 140.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005142/2.505, allocations: 1.891 MB / 0.798 GB, free: 140.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.573e-06/2.505, allocations: 0 / 0.798 GB, free: 140.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.493/6.998, allocations: 96.53 MB / 0.8922 GB, free: 79.62 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat