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.Worldtorque.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.35/2.35, allocations: 235.1 MB / 243 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.234e-05, allocations: 0 / 303.3 MB, free: 3.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3622, allocations: 54.87 MB / 358.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1829/0.5451, allocations: 99.01 MB / 457.1 MB, free: 12.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.5455, allocations: 75.95 kB / 457.2 MB, free: 12.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8462/1.392, allocations: 139.9 MB / 0.5831 GB, free: 15.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.392, allocations: 0 / 0.5831 GB, free: 15.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004902/1.392, allocations: 148 kB / 0.5832 GB, free: 14.95 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.02683/1.419, allocations: 6.833 MB / 0.5899 GB, free: 8.043 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/1.419, allocations: 12.03 kB / 0.5899 GB, free: 8.031 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06813/1.487, allocations: 9.538 MB / 0.5992 GB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03346/1.521, allocations: 8.825 MB / 0.6078 GB, free: 5.562 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005535/1.521, allocations: 236 kB / 0.6081 GB, free: 5.332 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003849/1.525, allocations: 431.8 kB / 0.6085 GB, free: 4.906 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02803/1.553, allocations: 9.416 MB / 0.6177 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04435/1.598, allocations: 14.59 MB / 0.6319 GB, free: 11.43 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00051/1.598, allocations: 99.11 kB / 0.632 GB, free: 11.33 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002735/1.601, allocations: 51.98 kB / 0.6321 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00381/1.605, allocations: 1.519 MB / 0.6335 GB, free: 9.754 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4769/2.082, allocations: 69.41 MB / 0.7013 GB, free: 37.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/2.096, allocations: 4.641 MB / 0.7059 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008699/2.104, allocations: 3.001 MB / 0.7088 GB, free: 36.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004479/2.105, allocations: 44.7 kB / 0.7088 GB, free: 36.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.212e-05/2.105, allocations: 64.58 kB / 0.7089 GB, free: 36.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=249): time 1.011e-05/2.105, allocations: 2.25 kB / 0.7089 GB, free: 36.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=268): time 0.09162/2.197, allocations: 24.44 MB / 0.7328 GB, free: 28.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/2.197, allocations: 257.5 kB / 0.733 GB, free: 28.22 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01225/2.209, allocations: 4.908 MB / 0.7378 GB, free: 26.44 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006769/2.21, allocations: 28.52 kB / 0.7378 GB, free: 26.41 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004363/2.214, allocations: 4.981 MB / 0.7427 GB, free: 22.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001726/2.216, allocations: 1.009 MB / 0.7437 GB, free: 22.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001179/2.217, allocations: 0 / 0.7437 GB, free: 22.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008066/2.218, allocations: 0.6871 MB / 0.7443 GB, free: 21.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007011/2.225, allocations: 2.782 MB / 0.7471 GB, free: 20.56 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/2.236, allocations: 8.232 MB / 0.7551 GB, free: 12.18 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/2.246, allocations: 4.729 MB / 0.7597 GB, free: 10.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002428/2.247, allocations: 56.06 kB / 0.7598 GB, free: 10.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.02853/2.275, allocations: 10.23 MB / 0.7698 GB, free: 3.266 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000155/2.275, allocations: 92.25 kB / 0.7698 GB, free: 3.176 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003058/2.276, allocations: 196 kB / 0.77 GB, free: 2.984 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00324/2.279, allocations: 0.8443 MB / 0.7709 GB, free: 2.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01267/2.292, allocations: 2.067 MB / 0.7729 GB, free: 476 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/2.307, allocations: 8.201 MB / 0.7809 GB, free: 8.695 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009889/2.317, allocations: 309 kB / 0.7812 GB, free: 8.438 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002778/2.32, allocations: 0.5407 MB / 0.7817 GB, free: 7.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 891 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[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],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.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],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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1093 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004196/2.324, allocations: 0.5882 MB / 0.7823 GB, free: 7.324 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01411/2.338, allocations: 4.384 MB / 0.7866 GB, free: 3.512 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002209/2.34, allocations: 0.5129 MB / 0.7871 GB, free: 2.992 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01609/2.357, allocations: 4.341 MB / 0.7913 GB, free: 15.85 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.554e-05/2.357, allocations: 28 kB / 0.7913 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-05/2.357, allocations: 12 kB / 0.7913 GB, free: 15.81 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.918e-05/2.357, allocations: 17.55 kB / 0.7914 GB, free: 15.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03572/2.393, allocations: 10.28 MB / 0.8014 GB, free: 7.449 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.995e-05/2.393, allocations: 8 kB / 0.8014 GB, free: 7.441 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007464/2.4, allocations: 447.2 kB / 0.8018 GB, free: 7.086 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004225/2.405, allocations: 0.5149 MB / 0.8023 GB, free: 6.688 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008392/2.405, allocations: 14.75 kB / 0.8023 GB, free: 6.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01928/2.425, allocations: 7.297 MB / 0.8095 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.313e-06/2.425, allocations: 3.656 kB / 0.8095 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01958/2.444, allocations: 7.609 MB / 0.8169 GB, free: 8.902 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003784/2.448, allocations: 0.9053 MB / 0.8178 GB, free: 8.043 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/2.45, allocations: 6.906 kB / 0.8178 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004762/2.455, allocations: 106.2 kB / 0.8179 GB, free: 7.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00107/2.456, allocations: 163.4 kB / 0.8181 GB, free: 7.875 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003998/2.456, allocations: 67.28 kB / 0.8181 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009826/2.466, allocations: 3.322 MB / 0.8214 GB, free: 4.918 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.32e-07/2.466, allocations: 0 / 0.8214 GB, free: 4.918 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01187/2.478, allocations: 1.349 MB / 0.8227 GB, free: 3.578 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 214 * 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%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3805/2.859, allocations: 8.738 MB / 0.8312 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01566/2.874, allocations: 7.016 MB / 0.8381 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/2.874, allocations: 0 / 0.8381 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005192/2.879, allocations: 2.402 MB / 0.8404 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005675/2.885, allocations: 0.5999 MB / 0.841 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0503/2.936, allocations: 15.06 MB / 0.8557 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01311/2.949, allocations: 5.213 MB / 0.8608 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008331/2.957, allocations: 3.406 MB / 0.8641 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.633e-06/2.957, allocations: 0 / 0.8641 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.677/8.634, allocations: 215.2 MB / 1.074 GB, free: 125 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat