Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.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.Joints.JointUPS2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004855/0.0004856, allocations: 12 kB / 314.5 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.35, allocations: 54.87 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.185/0.535, allocations: 102.1 MB / 471.5 MB, free: 4.352 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.5353, allocations: 83.89 kB / 471.5 MB, free: 4.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7056/1.241, allocations: 98.84 MB / 0.557 GB, free: 14.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.241, allocations: 0 / 0.557 GB, free: 14.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002821/1.241, allocations: 88 kB / 0.5571 GB, free: 14.41 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: 1692 * Number of variables: 1692 Notification: Performance of Generate backend data structure: time 0.02291/1.264, allocations: 5.466 MB / 0.5624 GB, free: 8.871 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.847e-05/1.264, allocations: 8.031 kB / 0.5624 GB, free: 8.863 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004105/1.268, allocations: 0.849 MB / 0.5633 GB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03422/1.303, allocations: 4.607 MB / 0.5678 GB, free: 3.383 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02225/1.325, allocations: 6.08 MB / 0.5737 GB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005776/1.326, allocations: 349 kB / 0.574 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003027/1.329, allocations: 463.8 kB / 0.5745 GB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0447/1.373, allocations: 12.71 MB / 0.5869 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003695/1.374, allocations: 67.31 kB / 0.587 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002687/1.377, allocations: 231.8 kB / 0.5872 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003412/1.38, allocations: 1.261 MB / 0.5884 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03903/1.419, allocations: 10.96 MB / 0.5991 GB, free: 2.094 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5411/1.96, allocations: 55.74 MB / 0.6535 GB, free: 73.37 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0254/1.986, allocations: 5.952 MB / 0.6594 GB, free: 72.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02915/2.015, allocations: 13.08 MB / 0.6721 GB, free: 70.03 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.563e-05/2.015, allocations: 62.16 kB / 0.6722 GB, free: 69.99 MB / 474.7 MB Notification: Performance of pre-optimization done (n=193): time 5.73e-06/2.015, allocations: 0 / 0.6722 GB, free: 69.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=254): time 0.1793/2.194, allocations: 36.14 MB / 0.7075 GB, free: 64.63 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.698e-05/2.194, allocations: 206.5 kB / 0.7077 GB, free: 64.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01018/2.205, allocations: 3.891 MB / 0.7115 GB, free: 63.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007855/2.206, allocations: 61.56 kB / 0.7115 GB, free: 63.02 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003111/2.209, allocations: 3.33 MB / 0.7148 GB, free: 60.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001735/2.21, allocations: 0.9498 MB / 0.7157 GB, free: 59.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/2.212, allocations: 135.4 kB / 0.7159 GB, free: 59.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005816/2.212, allocations: 0.5923 MB / 0.7164 GB, free: 59.36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008476/2.221, allocations: 3.077 MB / 0.7194 GB, free: 58.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01139/2.232, allocations: 6.967 MB / 0.7262 GB, free: 52.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/2.243, allocations: 4.523 MB / 0.7307 GB, free: 48.86 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001716/2.243, allocations: 43.95 kB / 0.7307 GB, free: 48.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.04015/2.284, allocations: 12.4 MB / 0.7428 GB, free: 39.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001238/2.284, allocations: 66.5 kB / 0.7429 GB, free: 39.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002457/2.284, allocations: 136 kB / 0.743 GB, free: 39.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01595/2.3, allocations: 3.216 MB / 0.7461 GB, free: 36.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00974/2.31, allocations: 1.55 MB / 0.7477 GB, free: 35.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04132/2.351, allocations: 15.54 MB / 0.7628 GB, free: 22.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0094/2.361, allocations: 475 kB / 0.7633 GB, free: 22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001858/2.362, allocations: 411.7 kB / 0.7637 GB, free: 21.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 33 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (806): * Single equations (assignments): 802 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,54.7%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007154/2.37, allocations: 2.335 MB / 0.766 GB, free: 19.56 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/2.371, allocations: 409.2 kB / 0.7664 GB, free: 19.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02652/2.397, allocations: 7.411 MB / 0.7736 GB, free: 12.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.215e-05/2.398, allocations: 31.27 kB / 0.7736 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.4e-05/2.398, allocations: 19.66 kB / 0.7736 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.02e-05/2.398, allocations: 7.969 kB / 0.7736 GB, free: 12.37 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04806/2.446, allocations: 15.02 MB / 0.7883 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.546e-05/2.446, allocations: 0 / 0.7883 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003884/2.45, allocations: 379.5 kB / 0.7887 GB, free: 12.99 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01667/2.466, allocations: 2.883 MB / 0.7915 GB, free: 10.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007646/2.467, allocations: 40 kB / 0.7915 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03912/2.506, allocations: 13.85 MB / 0.8051 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/2.507, allocations: 0 / 0.8051 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04407/2.551, allocations: 11.4 MB / 0.8162 GB, free: 0.5898 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004734/2.555, allocations: 0.9212 MB / 0.8171 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001897/2.557, allocations: 40 kB / 0.8171 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006138/2.564, allocations: 206.8 kB / 0.8173 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001498/2.565, allocations: 145.8 kB / 0.8175 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004878/2.566, allocations: 64 kB / 0.8175 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0109/2.576, allocations: 2.739 MB / 0.8202 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.01e-07/2.577, allocations: 0 / 0.8202 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01256/2.589, allocations: 1.307 MB / 0.8215 GB, free: 11.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (189): * Single equations (assignments): 185 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,61.1%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04295/2.632, allocations: 12.23 MB / 0.8334 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02324/2.655, allocations: 7.768 MB / 0.841 GB, free: 7.086 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/2.655, allocations: 0 / 0.841 GB, free: 7.086 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009406/2.665, allocations: 3.076 MB / 0.844 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004404/2.669, allocations: 462.2 kB / 0.8444 GB, free: 3.562 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.54/3.209, allocations: 139.9 MB / 0.981 GB, free: 54.69 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009024/3.218, allocations: 3.779 MB / 0.9847 GB, free: 53.86 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006085/3.225, allocations: 2.259 MB / 0.9869 GB, free: 53.85 MB / 0.5261 GB Notification: Performance of SimCode: time 1.923e-06/3.225, allocations: 0 / 0.9869 GB, free: 53.85 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.976/8.201, allocations: 116.9 MB / 1.101 GB, free: 163.2 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat does not exist to compare? outputFormat=mat