Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.626/1.626, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003609, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08304/0.08343, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3684/0.4519, allocations: 87.37 MB / 359.5 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/0.4522, allocations: 87.2 kB / 359.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6239/1.076, allocations: 96.93 MB / 456.5 MB, free: 71.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.076, allocations: 0 / 456.5 MB, free: 71.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002859/1.077, allocations: 100.6 kB / 456.6 MB, free: 71.17 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.0301/1.107, allocations: 5.771 MB / 462.4 MB, free: 68.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/1.107, allocations: 14.62 kB / 462.4 MB, free: 68.99 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003664/1.11, allocations: 0.9239 MB / 463.3 MB, free: 68.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01729/1.128, allocations: 2.317 MB / 465.6 MB, free: 68.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01765/1.145, allocations: 4.938 MB / 470.6 MB, free: 67.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005115/1.146, allocations: 393 kB / 470.9 MB, free: 67.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003093/1.149, allocations: 0.508 MB / 471.4 MB, free: 67.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04265/1.192, allocations: 13.02 MB / 484.5 MB, free: 63.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004116/1.192, allocations: 72.28 kB / 484.5 MB, free: 63.65 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003071/1.195, allocations: 246.6 kB / 484.8 MB, free: 63.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003003/1.198, allocations: 1.199 MB / 486 MB, free: 63.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03672/1.235, allocations: 11.22 MB / 497.2 MB, free: 58.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09234/1.328, allocations: 57.06 MB / 0.5413 GB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0267/1.354, allocations: 5.205 MB / 0.5463 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001982/1.356, allocations: 0.6802 MB / 0.547 GB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.747e-05/1.357, allocations: 59.44 kB / 0.5471 GB, free: 12.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=221): time 5.831e-06/1.357, allocations: 0 / 0.5471 GB, free: 12.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=252): time 0.3971/1.754, allocations: 25.66 MB / 0.5721 GB, free: 77.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/1.754, allocations: 155.6 kB / 0.5723 GB, free: 77.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01079/1.765, allocations: 4.099 MB / 0.5763 GB, free: 76.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008125/1.765, allocations: 59.58 kB / 0.5763 GB, free: 76.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003033/1.768, allocations: 3.467 MB / 0.5797 GB, free: 74.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001727/1.77, allocations: 0.947 MB / 0.5806 GB, free: 74.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009021/1.771, allocations: 143.1 kB / 0.5808 GB, free: 74.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004385/1.772, allocations: 0.6067 MB / 0.5814 GB, free: 73.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007413/1.779, allocations: 3.049 MB / 0.5843 GB, free: 73.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01034/1.789, allocations: 7.082 MB / 0.5913 GB, free: 68.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/1.8, allocations: 4.552 MB / 0.5957 GB, free: 67.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001559/1.8, allocations: 41.09 kB / 0.5957 GB, free: 67.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=909) (initialization): time 0.03045/1.831, allocations: 10.83 MB / 0.6063 GB, free: 63.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/1.831, allocations: 69.25 kB / 0.6064 GB, free: 63.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002237/1.831, allocations: 143.1 kB / 0.6065 GB, free: 63.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004869/1.836, allocations: 1.132 MB / 0.6076 GB, free: 63.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01132/1.847, allocations: 1.738 MB / 0.6093 GB, free: 63.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/1.859, allocations: 6.04 MB / 0.6152 GB, free: 60.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00898/1.868, allocations: 429.8 kB / 0.6156 GB, free: 59.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002055/1.87, allocations: 437.9 kB / 0.616 GB, free: 59.88 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (870): * Single equations (assignments): 866 * 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.007603/1.878, allocations: 2.428 MB / 0.6184 GB, free: 58.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001346/1.879, allocations: 421 kB / 0.6188 GB, free: 58.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01623/1.895, allocations: 5.596 MB / 0.6243 GB, free: 56.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.685e-05/1.895, allocations: 25.34 kB / 0.6243 GB, free: 56.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.709e-05/1.895, allocations: 6.281 kB / 0.6243 GB, free: 56.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.365e-05/1.895, allocations: 10.22 kB / 0.6243 GB, free: 56.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03478/1.93, allocations: 12.21 MB / 0.6362 GB, free: 49.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.387e-05/1.93, allocations: 9.031 kB / 0.6363 GB, free: 49.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005293/1.936, allocations: 0.51 MB / 0.6368 GB, free: 49.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004395/1.94, allocations: 0.9325 MB / 0.6377 GB, free: 48.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007107/1.941, allocations: 50.72 kB / 0.6377 GB, free: 48.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/1.951, allocations: 5.755 MB / 0.6433 GB, free: 43.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/1.952, allocations: 15.55 kB / 0.6433 GB, free: 43.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02283/1.974, allocations: 9.842 MB / 0.653 GB, free: 34.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003394/1.978, allocations: 0.9113 MB / 0.6538 GB, free: 33.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/1.979, allocations: 44.67 kB / 0.6539 GB, free: 33.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004493/1.984, allocations: 182.7 kB / 0.6541 GB, free: 33.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001151/1.985, allocations: 147.9 kB / 0.6542 GB, free: 33.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004462/1.986, allocations: 70.28 kB / 0.6543 GB, free: 33.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007475/1.993, allocations: 2.881 MB / 0.6571 GB, free: 31.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.993, allocations: 0 / 0.6571 GB, free: 31.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00919/2.002, allocations: 1.259 MB / 0.6583 GB, free: 29.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (225): * Single equations (assignments): 221 * 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 Backend phase and start with SimCode phase: time 0.0244/2.027, allocations: 11.19 MB / 0.6692 GB, free: 19.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01744/2.044, allocations: 7.303 MB / 0.6764 GB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/2.044, allocations: 0 / 0.6764 GB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006788/2.051, allocations: 2.745 MB / 0.6791 GB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004162/2.055, allocations: 460.9 kB / 0.6795 GB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4147/2.47, allocations: 143.3 MB / 0.8195 GB, free: 22.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0076/2.478, allocations: 3.907 MB / 0.8233 GB, free: 21.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006521/2.484, allocations: 2.382 MB / 0.8256 GB, free: 21.47 MB / 426.7 MB Notification: Performance of SimCode: time 1.373e-06/2.484, allocations: 0 / 0.8256 GB, free: 21.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.829/7.313, allocations: 121.7 MB / 0.9444 GB, free: 103.3 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat