Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces.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.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.307/2.307, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005948/0.0005948, allocations: 12 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.338, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2068/0.5448, allocations: 102.6 MB / 472 MB, free: 3.949 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/0.5452, allocations: 83.95 kB / 472.1 MB, free: 3.867 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9126/1.458, allocations: 151.8 MB / 0.6092 GB, free: 8.777 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.975e-06/1.458, allocations: 0 / 0.6092 GB, free: 8.777 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005751/1.458, allocations: 160 kB / 0.6094 GB, free: 8.621 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.03551/1.494, allocations: 8.02 MB / 0.6172 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/1.494, allocations: 8.031 kB / 0.6172 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006624/1.501, allocations: 1.347 MB / 0.6185 GB, free: 15.15 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07347/1.574, allocations: 9.623 MB / 0.6279 GB, free: 5.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7158/2.29, allocations: 9.156 MB / 0.6369 GB, free: 58.67 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008694/2.291, allocations: 0.5746 MB / 0.6374 GB, free: 58.65 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004373/2.295, allocations: 0.7695 MB / 0.6382 GB, free: 58.65 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05361/2.349, allocations: 18.17 MB / 0.6559 GB, free: 54.25 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005904/2.35, allocations: 108.8 kB / 0.656 GB, free: 54.25 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003653/2.353, allocations: 372.2 kB / 0.6564 GB, free: 54.25 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003678/2.357, allocations: 1.696 MB / 0.6581 GB, free: 54.23 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05069/2.408, allocations: 14.62 MB / 0.6723 GB, free: 54.16 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/2.547, allocations: 80.81 MB / 0.7512 GB, free: 15.27 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02925/2.576, allocations: 7.229 MB / 0.7583 GB, free: 12.74 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000459/2.576, allocations: 57.78 kB / 0.7584 GB, free: 12.73 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.607e-05/2.576, allocations: 75.66 kB / 0.7584 GB, free: 12.67 MB / 474.8 MB Notification: Performance of pre-optimization done (n=307): time 7.013e-06/2.576, allocations: 0 / 0.7584 GB, free: 12.67 MB / 474.8 MB Notification: Performance of matching and sorting (n=340): time 0.1366/2.713, allocations: 31.76 MB / 0.7894 GB, free: 4.191 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002126/2.713, allocations: 291.5 kB / 0.7897 GB, free: 3.848 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02205/2.735, allocations: 6.749 MB / 0.7963 GB, free: 14.68 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.00111/2.737, allocations: 80.11 kB / 0.7964 GB, free: 14.6 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.00664/2.743, allocations: 5.083 MB / 0.8014 GB, free: 9.996 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002656/2.746, allocations: 1.28 MB / 0.8026 GB, free: 8.867 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001541/2.748, allocations: 188 kB / 0.8028 GB, free: 8.684 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0009643/2.748, allocations: 0.7136 MB / 0.8035 GB, free: 8.074 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0124/2.761, allocations: 3.689 MB / 0.8071 GB, free: 4.965 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03548/2.796, allocations: 9.284 MB / 0.8162 GB, free: 9.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03967/2.836, allocations: 5.727 MB / 0.8217 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003311/2.837, allocations: 56 kB / 0.8218 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.4224/3.259, allocations: 13.65 MB / 0.8351 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001599/3.259, allocations: 94.31 kB / 0.8352 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003606/3.26, allocations: 198.1 kB / 0.8354 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005942/3.266, allocations: 1.377 MB / 0.8368 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01443/3.28, allocations: 2.233 MB / 0.8389 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02097/3.301, allocations: 11.5 MB / 0.8502 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/3.313, allocations: 0.5311 MB / 0.8507 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002562/3.316, allocations: 0.5693 MB / 0.8512 GB, free: 102.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1172): * Single equations (assignments): 1166 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01164/3.328, allocations: 3.586 MB / 0.8547 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001941/3.33, allocations: 0.6404 MB / 0.8554 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02223/3.352, allocations: 6.674 MB / 0.8619 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001566/3.352, allocations: 38.88 kB / 0.8619 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.413e-05/3.352, allocations: 14.05 kB / 0.8619 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001236/3.352, allocations: 17.92 kB / 0.8619 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04981/3.402, allocations: 15.46 MB / 0.877 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.882e-05/3.402, allocations: 3.938 kB / 0.8771 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006037/3.408, allocations: 0.5847 MB / 0.8776 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005054/3.413, allocations: 1.049 MB / 0.8786 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001031/3.414, allocations: 68.53 kB / 0.8787 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01954/3.434, allocations: 10.52 MB / 0.889 GB, free: 96.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/3.434, allocations: 3.594 kB / 0.889 GB, free: 96.15 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0283/3.462, allocations: 11.26 MB / 0.9 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004433/3.467, allocations: 1.211 MB / 0.9012 GB, free: 91.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002378/3.469, allocations: 59.09 kB / 0.9012 GB, free: 91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006374/3.476, allocations: 205.8 kB / 0.9014 GB, free: 90.95 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001325/3.477, allocations: 200.5 kB / 0.9016 GB, free: 90.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003716/3.477, allocations: 83.36 kB / 0.9017 GB, free: 90.91 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01275/3.49, allocations: 4.689 MB / 0.9063 GB, free: 89.37 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.31e-07/3.49, allocations: 0 / 0.9063 GB, free: 89.37 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01285/3.503, allocations: 1.795 MB / 0.908 GB, free: 89.17 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02964/3.533, allocations: 12.17 MB / 0.9199 GB, free: 83.66 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02162/3.555, allocations: 9.255 MB / 0.9289 GB, free: 77.86 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/3.555, allocations: 0 / 0.9289 GB, free: 77.86 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009328/3.564, allocations: 3.537 MB / 0.9324 GB, free: 74.73 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008058/3.572, allocations: 0.8154 MB / 0.9332 GB, free: 74.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5775/4.15, allocations: 208.5 MB / 1.137 GB, free: 23.68 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01342/4.163, allocations: 5.605 MB / 1.142 GB, free: 22.8 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009793/4.173, allocations: 3.73 MB / 1.146 GB, free: 22.8 MB / 0.5262 GB Notification: Performance of SimCode: time 1.813e-06/4.173, allocations: 0 / 1.146 GB, free: 22.8 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.2/10.37, allocations: 243.1 MB / 1.383 GB, free: 14.32 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat