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.FrameForces2.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.FrameForces2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.471/2.471, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.769e-05/4.777e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4424/0.4425, allocations: 54.84 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.19/0.6325, allocations: 99.36 MB / 464 MB, free: 13.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.6329, allocations: 85 kB / 464.1 MB, free: 13.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.005/1.638, allocations: 162.7 MB / 0.6121 GB, free: 80.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.306e-06/1.638, allocations: 11.94 kB / 0.6121 GB, free: 80.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007666/1.639, allocations: 160 kB / 0.6122 GB, free: 80.31 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2806 * Number of variables: 2806 Notification: Performance of Generate backend data structure: time 0.04028/1.68, allocations: 8.014 MB / 0.6201 GB, free: 72.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/1.68, allocations: 8.031 kB / 0.6201 GB, free: 72.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00683/1.686, allocations: 1.401 MB / 0.6214 GB, free: 70.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08707/1.774, allocations: 12.03 MB / 0.6332 GB, free: 58.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03808/1.812, allocations: 10.8 MB / 0.6437 GB, free: 47.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007669/1.813, allocations: 0.6135 MB / 0.6443 GB, free: 47.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004723/1.817, allocations: 0.812 MB / 0.6451 GB, free: 46.42 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06077/1.878, allocations: 19.11 MB / 0.6638 GB, free: 25.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006662/1.879, allocations: 103.1 kB / 0.6639 GB, free: 25.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003889/1.883, allocations: 383.8 kB / 0.6642 GB, free: 25.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004003/1.887, allocations: 1.728 MB / 0.6659 GB, free: 23.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05089/1.938, allocations: 15.48 MB / 0.681 GB, free: 8.074 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5151/2.453, allocations: 79.63 MB / 0.7588 GB, free: 37.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03551/2.488, allocations: 8.176 MB / 0.7668 GB, free: 36.61 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008576/2.497, allocations: 4.085 MB / 0.7708 GB, free: 36.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001108/2.498, allocations: 0.6646 MB / 0.7714 GB, free: 36 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.274e-05/2.498, allocations: 69.67 kB / 0.7715 GB, free: 35.96 MB / 474.7 MB Notification: Performance of pre-optimization done (n=307): time 9.057e-06/2.498, allocations: 0 / 0.7715 GB, free: 35.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=331): time 0.1182/2.617, allocations: 25.9 MB / 0.7968 GB, free: 29.71 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/2.617, allocations: 294.1 kB / 0.7971 GB, free: 29.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01654/2.633, allocations: 6.645 MB / 0.8036 GB, free: 28.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008711/2.634, allocations: 79.17 kB / 0.8036 GB, free: 28.55 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004966/2.639, allocations: 5.301 MB / 0.8088 GB, free: 24.36 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001983/2.641, allocations: 1.244 MB / 0.81 GB, free: 23.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/2.642, allocations: 188.4 kB / 0.8102 GB, free: 23.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000561/2.643, allocations: 0.7104 MB / 0.8109 GB, free: 22.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008293/2.651, allocations: 3.372 MB / 0.8142 GB, free: 21.67 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01239/2.664, allocations: 8.857 MB / 0.8229 GB, free: 13.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/2.677, allocations: 5.41 MB / 0.8281 GB, free: 11.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002314/2.677, allocations: 55.53 kB / 0.8282 GB, free: 11.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.03505/2.712, allocations: 12.54 MB / 0.8404 GB, free: 4.77 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002067/2.712, allocations: 91.95 kB / 0.8405 GB, free: 4.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003218/2.713, allocations: 200.1 kB / 0.8407 GB, free: 4.484 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004217/2.717, allocations: 1.005 MB / 0.8417 GB, free: 3.648 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01415/2.731, allocations: 2.156 MB / 0.8438 GB, free: 1.773 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02011/2.751, allocations: 11 MB / 0.8545 GB, free: 7.285 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01222/2.764, allocations: 0.5178 MB / 0.855 GB, free: 6.828 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002645/2.766, allocations: 0.5464 MB / 0.8556 GB, free: 6.293 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 882 * Number of states: 0 () * Number of discrete variables: 63 (frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.color[3],frameForce3.color[2],frameForce3.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],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1149): * Single equations (assignments): 1142 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004124/2.77, allocations: 0.8362 MB / 0.8564 GB, free: 5.461 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00219/2.773, allocations: 0.6633 MB / 0.857 GB, free: 4.789 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02023/2.793, allocations: 5.868 MB / 0.8628 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-05/2.793, allocations: 37.41 kB / 0.8628 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.876e-05/2.793, allocations: 8 kB / 0.8628 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-05/2.793, allocations: 15.89 kB / 0.8628 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05136/2.845, allocations: 14.64 MB / 0.8771 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.893e-05/2.845, allocations: 4 kB / 0.8771 GB, free: 4.035 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005801/2.85, allocations: 0.5176 MB / 0.8776 GB, free: 3.609 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003608/2.854, allocations: 0.6709 MB / 0.8783 GB, free: 3.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008037/2.855, allocations: 61.72 kB / 0.8784 GB, free: 3.035 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01799/2.873, allocations: 9.862 MB / 0.888 GB, free: 9.492 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/2.873, allocations: 0 / 0.888 GB, free: 9.492 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02639/2.899, allocations: 9.917 MB / 0.8977 GB, free: 0.5781 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3846/3.284, allocations: 1.17 MB / 0.8988 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002473/3.287, allocations: 55.56 kB / 0.8989 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006652/3.293, allocations: 192.2 kB / 0.899 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001226/3.295, allocations: 190.7 kB / 0.8992 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000404/3.295, allocations: 86.64 kB / 0.8993 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01487/3.31, allocations: 4.742 MB / 0.9039 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.42e-07/3.31, allocations: 0 / 0.9039 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01364/3.324, allocations: 1.81 MB / 0.9057 GB, free: 125.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02921/3.353, allocations: 10.88 MB / 0.9163 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02081/3.374, allocations: 8.641 MB / 0.9248 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/3.374, allocations: 0 / 0.9248 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007246/3.381, allocations: 3.138 MB / 0.9278 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008306/3.389, allocations: 0.912 MB / 0.9287 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05906/3.449, allocations: 18.05 MB / 0.9464 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01491/3.464, allocations: 5.901 MB / 0.9521 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0101/3.474, allocations: 3.982 MB / 0.956 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.182e-06/3.474, allocations: 0 / 0.956 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.773/10.25, allocations: 285.1 MB / 1.234 GB, free: 31.54 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForces2_res.mat does not exist to compare? outputFormat=mat