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_1.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_1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.977/1.977, allocations: 209.2 MB / 224.8 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.0004743, allocations: 8 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3636, allocations: 48.71 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1): time 0.1665/0.5302, allocations: 77.52 MB / 408.8 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.08865/0.6189, allocations: 17.82 MB / 426.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02782/0.6468, allocations: 406.9 kB / 427 MB, free: 14.53 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01977/0.6666, allocations: 3.986 MB / 431 MB, free: 10.53 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.06107/0.7278, allocations: 11.29 MB / 442.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00966/0.7375, allocations: 1.295 MB / 443.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.4345/1.172, allocations: 34.78 MB / 478.4 MB, free: 30.08 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01614/1.188, allocations: 7.776 MB / 486.2 MB, free: 29.38 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005454/1.194, allocations: 2.11 MB / 488.3 MB, free: 29.37 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005939/1.2, allocations: 2.706 MB / 491 MB, free: 29.36 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002153/1.202, allocations: 242.4 kB / 491.2 MB, free: 29.36 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004985/1.207, allocations: 1.397 MB / 492.6 MB, free: 29.36 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005411/1.213, allocations: 3.096 MB / 495.7 MB, free: 29.36 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00333/1.216, allocations: 1.464 MB / 497.2 MB, free: 29.32 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01919/1.235, allocations: 9.822 MB / 0.4951 GB, free: 26.23 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/1.235, allocations: 0 / 0.4951 GB, free: 26.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.736e-06/1.235, allocations: 0 / 0.4951 GB, free: 26.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005269/1.236, allocations: 0 / 0.4951 GB, free: 26.23 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: 2272 * Number of variables: 2272 Notification: Performance of Generate backend data structure: time 0.04549/1.281, allocations: 9.015 MB / 0.5039 GB, free: 21.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/1.281, allocations: 8.062 kB / 0.5039 GB, free: 21.16 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004376/1.286, allocations: 1.082 MB / 0.505 GB, free: 20.85 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1936/1.479, allocations: 19.4 MB / 0.5239 GB, free: 2.934 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02683/1.506, allocations: 8.003 MB / 0.5317 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005507/1.507, allocations: 379.1 kB / 0.5321 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0042/1.511, allocations: 0.6829 MB / 0.5328 GB, free: 12.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05671/1.568, allocations: 16.77 MB / 0.5491 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004865/1.568, allocations: 86.42 kB / 0.5492 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002607/1.571, allocations: 240.8 kB / 0.5494 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007232/1.578, allocations: 2.659 MB / 0.552 GB, free: 12.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05188/1.63, allocations: 13.95 MB / 0.5657 GB, free: 2.883 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1581/1.788, allocations: 66.38 MB / 0.6305 GB, free: 11.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04951/1.838, allocations: 8.735 MB / 0.639 GB, free: 4.172 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002633/1.841, allocations: 1.049 MB / 0.64 GB, free: 2.977 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.038e-05/1.841, allocations: 59.75 kB / 0.6401 GB, free: 2.914 MB / 490.7 MB Notification: Performance of pre-optimization done (n=268): time 6.282e-06/1.841, allocations: 4 kB / 0.6401 GB, free: 2.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=345): time 0.6092/2.45, allocations: 49.87 MB / 0.6888 GB, free: 177.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002783/2.453, allocations: 3.256 MB / 0.692 GB, free: 173.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01864/2.471, allocations: 8.211 MB / 0.7 GB, free: 165.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001305/2.473, allocations: 77.7 kB / 0.7001 GB, free: 165.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004704/2.478, allocations: 4.808 MB / 0.7048 GB, free: 160.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002671/2.48, allocations: 1.31 MB / 0.7061 GB, free: 159.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001791/2.482, allocations: 189.9 kB / 0.7062 GB, free: 159.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007197/2.483, allocations: 0.7117 MB / 0.7069 GB, free: 158.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01142/2.494, allocations: 4.645 MB / 0.7115 GB, free: 153.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01454/2.509, allocations: 9.885 MB / 0.7211 GB, free: 141.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01501/2.524, allocations: 6.621 MB / 0.7276 GB, free: 134.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002567/2.524, allocations: 52 kB / 0.7276 GB, free: 134.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1277/2.652, allocations: 31.5 MB / 0.7584 GB, free: 103.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001803/2.652, allocations: 87.94 kB / 0.7585 GB, free: 103.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09185/2.744, allocations: 20.87 MB / 0.7789 GB, free: 82.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0914/2.836, allocations: 16.87 MB / 0.7953 GB, free: 65.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01405/2.85, allocations: 2.179 MB / 0.7975 GB, free: 63.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08479/2.934, allocations: 37.03 MB / 0.8336 GB, free: 25.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.014/2.949, allocations: 0.7721 MB / 0.8344 GB, free: 24.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002348/2.951, allocations: 0.5559 MB / 0.8349 GB, free: 24.24 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 830 * 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 (1070): * Single equations (assignments): 1053 * Array equations: 11 * 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.01064/2.962, allocations: 3.416 MB / 0.8383 GB, free: 20.81 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3744/3.336, allocations: 0.6658 MB / 0.8389 GB, free: 176.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04/3.376, allocations: 10.39 MB / 0.8491 GB, free: 175.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03295/3.409, allocations: 9.096 MB / 0.8579 GB, free: 172 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-05/3.409, allocations: 16.78 kB / 0.858 GB, free: 172 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001039/3.409, allocations: 18.09 kB / 0.858 GB, free: 172 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07499/3.484, allocations: 24.02 MB / 0.8814 GB, free: 163.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-05/3.484, allocations: 0 / 0.8814 GB, free: 163.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007091/3.492, allocations: 0.6673 MB / 0.8821 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02486/3.516, allocations: 4.126 MB / 0.8861 GB, free: 162 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001346/3.518, allocations: 91.41 kB / 0.8862 GB, free: 161.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04836/3.566, allocations: 24.38 MB / 0.91 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002481/3.569, allocations: 3.035 MB / 0.913 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0443/3.613, allocations: 15.54 MB / 0.9282 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005635/3.619, allocations: 1.438 MB / 0.9296 GB, free: 119.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002795/3.622, allocations: 79.98 kB / 0.9296 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008407/3.63, allocations: 355.1 kB / 0.93 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001741/3.632, allocations: 241.8 kB / 0.9302 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000529/3.632, allocations: 100.7 kB / 0.9303 GB, free: 118.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01266/3.645, allocations: 5.345 MB / 0.9355 GB, free: 113.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.894e-06/3.645, allocations: 0 / 0.9355 GB, free: 113.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01353/3.659, allocations: 2.164 MB / 0.9376 GB, free: 110.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (241): * Single equations (assignments): 231 * 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.04656/3.705, allocations: 16.27 MB / 0.9535 GB, free: 94.55 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02851/3.734, allocations: 12.08 MB / 0.9653 GB, free: 82.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/3.734, allocations: 0 / 0.9653 GB, free: 82.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01302/3.747, allocations: 5.148 MB / 0.9703 GB, free: 77.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009061/3.756, allocations: 0.9561 MB / 0.9713 GB, free: 76.27 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07374/3.83, allocations: 41.1 MB / 1.011 GB, free: 30.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01189/3.842, allocations: 5.497 MB / 1.017 GB, free: 24.57 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009443/3.851, allocations: 3.766 MB / 1.02 GB, free: 20.81 MB / 490.7 MB Notification: Performance of SimCode: time 1.263e-06/3.851, allocations: 0 / 1.02 GB, free: 20.81 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.187/11.04, allocations: 343.1 MB / 1.356 GB, free: 51.5 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat