Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForces.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.013/2.013, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004285, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3906, allocations: 48.7 MB / 331.4 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.205/0.5957, allocations: 93.87 MB / 425.2 MB, free: 416 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.596, allocations: 75.97 kB / 425.3 MB, free: 340 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.768/1.364, allocations: 110.6 MB / 0.5234 GB, free: 73.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.364, allocations: 4 kB / 0.5234 GB, free: 73.49 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003817/1.365, allocations: 108 kB / 0.5235 GB, free: 73.39 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1883 * Number of variables: 1883 Notification: Performance of Generate backend data structure: time 0.02506/1.39, allocations: 5.806 MB / 0.5292 GB, free: 67.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/1.39, allocations: 12.02 kB / 0.5292 GB, free: 67.49 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004213/1.394, allocations: 0.9476 MB / 0.5301 GB, free: 66.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04971/1.444, allocations: 6.92 MB / 0.5368 GB, free: 59.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02373/1.467, allocations: 6.82 MB / 0.5435 GB, free: 52.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005243/1.468, allocations: 402.5 kB / 0.5439 GB, free: 52.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003155/1.471, allocations: 0.5193 MB / 0.5444 GB, free: 51.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03894/1.51, allocations: 12.99 MB / 0.5571 GB, free: 37.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003789/1.511, allocations: 79.19 kB / 0.5572 GB, free: 37.49 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002484/1.513, allocations: 263.8 kB / 0.5574 GB, free: 37.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002698/1.516, allocations: 1.207 MB / 0.5586 GB, free: 36.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03401/1.55, allocations: 10.37 MB / 0.5687 GB, free: 25.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.433/1.983, allocations: 58.35 MB / 0.6257 GB, free: 88.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0204/2.003, allocations: 4.679 MB / 0.6303 GB, free: 87.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01978/2.023, allocations: 6.862 MB / 0.637 GB, free: 86.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.625e-05/2.023, allocations: 59.69 kB / 0.637 GB, free: 86.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=181): time 6.051e-06/2.023, allocations: 0 / 0.637 GB, free: 86.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=193): time 0.0709/2.094, allocations: 15.78 MB / 0.6524 GB, free: 83.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.912e-05/2.094, allocations: 201.4 kB / 0.6526 GB, free: 83.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01359/2.108, allocations: 5.143 MB / 0.6576 GB, free: 82.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00049/2.109, allocations: 53.83 kB / 0.6577 GB, free: 82.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003748/2.112, allocations: 3.822 MB / 0.6614 GB, free: 80.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001319/2.114, allocations: 0.7625 MB / 0.6622 GB, free: 79.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009356/2.115, allocations: 138.2 kB / 0.6623 GB, free: 79.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000594/2.115, allocations: 0.6131 MB / 0.6629 GB, free: 79.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006361/2.122, allocations: 2.267 MB / 0.6651 GB, free: 79.24 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009534/2.131, allocations: 6.671 MB / 0.6716 GB, free: 72.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009183/2.141, allocations: 3.804 MB / 0.6753 GB, free: 71.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001833/2.141, allocations: 44.03 kB / 0.6754 GB, free: 71.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=918) (initialization): time 0.02498/2.166, allocations: 8.883 MB / 0.6841 GB, free: 68.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001564/2.166, allocations: 75.8 kB / 0.6841 GB, free: 68.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003429/2.166, allocations: 161.6 kB / 0.6843 GB, free: 68.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/2.169, allocations: 0.5866 MB / 0.6849 GB, free: 68.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01002/2.179, allocations: 1.616 MB / 0.6864 GB, free: 68.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009201/2.188, allocations: 5.699 MB / 0.692 GB, free: 64.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00876/2.197, allocations: 377.7 kB / 0.6924 GB, free: 64.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001869/2.199, allocations: 433.4 kB / 0.6928 GB, free: 64.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 714 * Number of states: 0 () * Number of discrete variables: 42 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (868): * Single equations (assignments): 863 * 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%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007735/2.207, allocations: 2.616 MB / 0.6953 GB, free: 62.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/2.208, allocations: 488.8 kB / 0.6958 GB, free: 62.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008769/2.217, allocations: 3.002 MB / 0.6987 GB, free: 61.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-05/2.217, allocations: 23.72 kB / 0.6988 GB, free: 61.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/2.217, allocations: 8 kB / 0.6988 GB, free: 61.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.496e-05/2.217, allocations: 13.47 kB / 0.6988 GB, free: 61.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02487/2.242, allocations: 8.16 MB / 0.7067 GB, free: 54.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-05/2.242, allocations: 0 / 0.7067 GB, free: 54.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002875/2.245, allocations: 287.5 kB / 0.707 GB, free: 54.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001784/2.247, allocations: 354.9 kB / 0.7074 GB, free: 54.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004492/2.247, allocations: 35.84 kB / 0.7074 GB, free: 54.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007702/2.255, allocations: 5.046 MB / 0.7123 GB, free: 49.33 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/2.255, allocations: 8.062 kB / 0.7123 GB, free: 49.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01211/2.267, allocations: 5.971 MB / 0.7182 GB, free: 43.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002859/2.27, allocations: 0.7945 MB / 0.7189 GB, free: 43.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001463/2.271, allocations: 32.94 kB / 0.719 GB, free: 43.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004084/2.276, allocations: 98.75 kB / 0.7191 GB, free: 42.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000687/2.276, allocations: 114.5 kB / 0.7192 GB, free: 42.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001957/2.276, allocations: 53.25 kB / 0.7192 GB, free: 42.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009369/2.286, allocations: 3.685 MB / 0.7228 GB, free: 39.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.286, allocations: 0 / 0.7228 GB, free: 39.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008484/2.294, allocations: 1.196 MB / 0.724 GB, free: 38.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01204/2.307, allocations: 7.135 MB / 0.7309 GB, free: 32.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01237/2.319, allocations: 5.607 MB / 0.7364 GB, free: 27.12 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/2.319, allocations: 0 / 0.7364 GB, free: 27.12 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003316/2.322, allocations: 1.686 MB / 0.7381 GB, free: 25.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004356/2.327, allocations: 0.5954 MB / 0.7387 GB, free: 25.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4909/2.818, allocations: 154.8 MB / 0.8898 GB, free: 37.78 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007574/2.825, allocations: 4.124 MB / 0.8938 GB, free: 36.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005434/2.831, allocations: 2.571 MB / 0.8963 GB, free: 36.95 MB / 458.7 MB Notification: Performance of SimCode: time 1.262e-06/2.831, allocations: 3.656 kB / 0.8963 GB, free: 36.95 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.14/7.971, allocations: 148.9 MB / 1.042 GB, free: 110.3 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForces_res.mat does not exist to compare? outputFormat=mat