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.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.346/2.346, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.443e-05/3.459e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.3965, allocations: 54.85 MB / 364.6 MB, free: 5.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.187/0.5836, allocations: 100.8 MB / 465.4 MB, free: 11.69 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.584, allocations: 80.92 kB / 465.5 MB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7966/1.381, allocations: 114.5 MB / 0.5664 GB, free: 104.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.381, allocations: 3.469 kB / 0.5664 GB, free: 104.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003914/1.381, allocations: 110 kB / 0.5665 GB, free: 104.6 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: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.02206/1.403, allocations: 5.466 MB / 0.5719 GB, free: 102.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/1.403, allocations: 7.5 kB / 0.5719 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004558/1.408, allocations: 0.9807 MB / 0.5728 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05084/1.459, allocations: 6.954 MB / 0.5796 GB, free: 101.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.025/1.484, allocations: 6.855 MB / 0.5863 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005694/1.484, allocations: 420.7 kB / 0.5867 GB, free: 98.87 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003185/1.488, allocations: 0.5415 MB / 0.5872 GB, free: 98.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0397/1.527, allocations: 13.26 MB / 0.6002 GB, free: 91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003713/1.528, allocations: 71.34 kB / 0.6003 GB, free: 90.93 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002472/1.53, allocations: 265.2 kB / 0.6005 GB, free: 90.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002689/1.533, allocations: 1.25 MB / 0.6017 GB, free: 89.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03201/1.565, allocations: 10.5 MB / 0.612 GB, free: 78.94 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09932/1.664, allocations: 59.67 MB / 0.6703 GB, free: 17.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01792/1.682, allocations: 4.596 MB / 0.6748 GB, free: 13.06 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004462/1.687, allocations: 2.215 MB / 0.6769 GB, free: 10.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01631/1.703, allocations: 6.506 MB / 0.6833 GB, free: 4.266 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/1.703, allocations: 55.72 kB / 0.6833 GB, free: 4.203 MB / 458.7 MB Notification: Performance of pre-optimization done (n=183): time 6.092e-06/1.703, allocations: 3.938 kB / 0.6833 GB, free: 4.199 MB / 458.7 MB Notification: Performance of matching and sorting (n=195): time 0.06551/1.769, allocations: 14.53 MB / 0.6975 GB, free: 5.492 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/1.769, allocations: 230.9 kB / 0.6977 GB, free: 5.219 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01519/1.784, allocations: 5.159 MB / 0.7028 GB, free: 88 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005208/1.785, allocations: 49.7 kB / 0.7028 GB, free: 32 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3521/2.137, allocations: 3.931 MB / 0.7067 GB, free: 111 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001701/2.139, allocations: 0.7642 MB / 0.7074 GB, free: 110.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001041/2.14, allocations: 143 kB / 0.7076 GB, free: 110.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008358/2.141, allocations: 0.6115 MB / 0.7081 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009623/2.15, allocations: 2.242 MB / 0.7103 GB, free: 110.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01452/2.165, allocations: 6.729 MB / 0.7169 GB, free: 104.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01344/2.178, allocations: 3.87 MB / 0.7207 GB, free: 104.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003362/2.179, allocations: 45.12 kB / 0.7207 GB, free: 104.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.02647/2.205, allocations: 8.933 MB / 0.7295 GB, free: 103.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001763/2.205, allocations: 74.78 kB / 0.7295 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002509/2.206, allocations: 157.2 kB / 0.7297 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002383/2.208, allocations: 0.6124 MB / 0.7303 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01027/2.218, allocations: 1.638 MB / 0.7319 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009102/2.228, allocations: 5.716 MB / 0.7375 GB, free: 98.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008946/2.237, allocations: 384.8 kB / 0.7378 GB, free: 98.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001887/2.238, allocations: 456.2 kB / 0.7383 GB, free: 98.79 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (882): * Single equations (assignments): 877 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00281/2.241, allocations: 0.6594 MB / 0.7389 GB, free: 98.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001317/2.243, allocations: 487.8 kB / 0.7394 GB, free: 97.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008893/2.252, allocations: 3.023 MB / 0.7423 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.777e-05/2.252, allocations: 25.5 kB / 0.7423 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/2.252, allocations: 7.938 kB / 0.7424 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.673e-05/2.252, allocations: 5.953 kB / 0.7424 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02683/2.279, allocations: 8.448 MB / 0.7506 GB, free: 93.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.784e-05/2.279, allocations: 3.875 kB / 0.7506 GB, free: 93.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003192/2.282, allocations: 322.9 kB / 0.7509 GB, free: 93.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001778/2.284, allocations: 362.7 kB / 0.7513 GB, free: 93.52 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000454/2.284, allocations: 45.3 kB / 0.7513 GB, free: 93.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007741/2.292, allocations: 5.062 MB / 0.7563 GB, free: 89.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/2.292, allocations: 7 kB / 0.7563 GB, free: 89.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01264/2.305, allocations: 6.089 MB / 0.7622 GB, free: 86.69 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003193/2.308, allocations: 0.8043 MB / 0.763 GB, free: 86.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001501/2.309, allocations: 33.55 kB / 0.763 GB, free: 86.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00397/2.313, allocations: 100.2 kB / 0.7631 GB, free: 86.15 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006905/2.314, allocations: 117.4 kB / 0.7632 GB, free: 86.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/2.314, allocations: 51.56 kB / 0.7633 GB, free: 86.12 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009844/2.324, allocations: 3.674 MB / 0.7669 GB, free: 84.87 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.71e-07/2.324, allocations: 0 / 0.7669 GB, free: 84.87 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009011/2.333, allocations: 1.222 MB / 0.7681 GB, free: 84.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (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 (154): * Single equations (assignments): 149 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.01361/2.347, allocations: 7.286 MB / 0.7752 GB, free: 80.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01335/2.36, allocations: 5.622 MB / 0.7807 GB, free: 78.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/2.361, allocations: 0 / 0.7807 GB, free: 78.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00365/2.364, allocations: 1.691 MB / 0.7823 GB, free: 76.83 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005528/2.37, allocations: 0.5974 MB / 0.7829 GB, free: 76.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04061/2.41, allocations: 12.04 MB / 0.7947 GB, free: 65.88 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009417/2.42, allocations: 4.238 MB / 0.7988 GB, free: 62.73 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006213/2.426, allocations: 2.626 MB / 0.8014 GB, free: 60.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/2.426, allocations: 0 / 0.8014 GB, free: 60.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.278/7.704, allocations: 152.4 MB / 0.9502 GB, free: 95.31 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat