Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006108/0.0006107, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1388, allocations: 44.52 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4778/0.6167, allocations: 101.8 MB / 410.3 MB, free: 11.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.6171, allocations: 91.17 kB / 410.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.218/1.835, allocations: 233.8 MB / 0.6291 GB, free: 50.49 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.835, allocations: 4 kB / 0.6291 GB, free: 50.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007369/1.835, allocations: 230.7 kB / 0.6293 GB, free: 50.27 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: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.06001/1.895, allocations: 13.02 MB / 0.6421 GB, free: 37.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/1.896, allocations: 8.031 kB / 0.6421 GB, free: 37.19 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01091/1.906, allocations: 1.996 MB / 0.644 GB, free: 35.24 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03407/1.941, allocations: 3.989 MB / 0.6479 GB, free: 31.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04495/1.986, allocations: 12.23 MB / 0.6599 GB, free: 19.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001287/1.987, allocations: 0.8827 MB / 0.6607 GB, free: 18.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008323/1.995, allocations: 1.191 MB / 0.6619 GB, free: 17.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.805/2.8, allocations: 33.79 MB / 0.6949 GB, free: 38.49 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009602/2.801, allocations: 99.75 kB / 0.695 GB, free: 38.49 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006784/2.808, allocations: 0.536 MB / 0.6955 GB, free: 38.49 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005971/2.814, allocations: 2.583 MB / 0.698 GB, free: 38.47 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1103/2.924, allocations: 31.05 MB / 0.7283 GB, free: 38.39 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2382/3.163, allocations: 120.4 MB / 0.8459 GB, free: 2.41 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.518/3.681, allocations: 19.21 MB / 0.8646 GB, free: 90.27 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06875/3.75, allocations: 31.1 MB / 0.895 GB, free: 82.62 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.691e-05/3.75, allocations: 83.02 kB / 0.8951 GB, free: 82.57 MB / 458.8 MB Notification: Performance of pre-optimization done (n=489): time 9.357e-06/3.75, allocations: 0 / 0.8951 GB, free: 82.57 MB / 458.8 MB Notification: Performance of matching and sorting (n=726): time 1.642/5.392, allocations: 170.4 MB / 1.061 GB, free: 74.7 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/5.392, allocations: 197.3 kB / 1.062 GB, free: 74.54 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01946/5.412, allocations: 7.024 MB / 1.069 GB, free: 73.91 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002671/5.414, allocations: 139.7 kB / 1.069 GB, free: 73.88 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006593/5.421, allocations: 6.833 MB / 1.075 GB, free: 69.33 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.006092/5.427, allocations: 2.574 MB / 1.078 GB, free: 67.39 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003998/5.431, allocations: 286.8 kB / 1.078 GB, free: 67.17 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.00166/5.433, allocations: 0.9152 MB / 1.079 GB, free: 66.6 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0273/5.46, allocations: 10.3 MB / 1.089 GB, free: 62.32 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03186/5.492, allocations: 16.91 MB / 1.106 GB, free: 49.41 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03187/5.524, allocations: 13.01 MB / 1.118 GB, free: 43.83 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002722/5.524, allocations: 66.91 kB / 1.118 GB, free: 43.83 MB / 458.8 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07836/5.603, allocations: 27.42 MB / 1.145 GB, free: 32.06 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000172/5.603, allocations: 100 kB / 1.145 GB, free: 31.96 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004139/5.603, allocations: 228 kB / 1.145 GB, free: 31.74 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004079/5.604, allocations: 351.8 kB / 1.146 GB, free: 31.4 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03599/5.64, allocations: 4.257 MB / 1.15 GB, free: 28.04 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005677/5.64, allocations: 463.6 kB / 1.15 GB, free: 27.63 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02196/5.662, allocations: 1.229 MB / 1.152 GB, free: 26.75 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004364/5.667, allocations: 0.7453 MB / 1.152 GB, free: 26.03 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1031 * Number of states: 0 () * Number of discrete variables: 99 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1845): * Single equations (assignments): 1839 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01869/5.686, allocations: 5.45 MB / 1.158 GB, free: 21.2 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004229/5.69, allocations: 0.7945 MB / 1.158 GB, free: 20.4 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05715/5.747, allocations: 19.6 MB / 1.178 GB, free: 3.293 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001272/5.747, allocations: 79.72 kB / 1.178 GB, free: 3.219 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.794e-05/5.747, allocations: 9.156 kB / 1.178 GB, free: 3.219 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002505/5.748, allocations: 32.53 kB / 1.178 GB, free: 3.219 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5205/6.268, allocations: 43.24 MB / 1.22 GB, free: 72.67 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.523e-05/6.268, allocations: 3.969 kB / 1.22 GB, free: 72.67 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02493/6.293, allocations: 2.155 MB / 1.222 GB, free: 72.67 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/6.293, allocations: 30.38 kB / 1.222 GB, free: 72.67 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002429/6.296, allocations: 126.8 kB / 1.222 GB, free: 72.67 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.376e-05/6.296, allocations: 30.53 kB / 1.222 GB, free: 72.67 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/6.296, allocations: 11.02 kB / 1.222 GB, free: 72.67 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07725/6.373, allocations: 33.93 MB / 1.255 GB, free: 57.89 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01022/6.383, allocations: 2.711 MB / 1.258 GB, free: 56.84 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004593/6.388, allocations: 122.5 kB / 1.258 GB, free: 56.75 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01459/6.403, allocations: 0.7609 MB / 1.259 GB, free: 56.66 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003374/6.406, allocations: 389.7 kB / 1.259 GB, free: 56.61 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002377/6.409, allocations: 183.7 kB / 1.259 GB, free: 56.56 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01424/6.423, allocations: 4.889 MB / 1.264 GB, free: 54.91 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.32e-07/6.423, allocations: 0 / 1.264 GB, free: 54.91 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.02086/6.444, allocations: 3.17 MB / 1.267 GB, free: 54.59 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (rev.phi,rev.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 (710): * Single equations (assignments): 707 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.08168/6.525, allocations: 35.67 MB / 1.302 GB, free: 32.2 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.05341/6.579, allocations: 23.24 MB / 1.325 GB, free: 12.12 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/6.579, allocations: 0 / 1.325 GB, free: 12.12 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02301/6.602, allocations: 9.835 MB / 1.334 GB, free: 3.281 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00907/6.611, allocations: 0.8601 MB / 1.335 GB, free: 2.547 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.046/7.657, allocations: 213.2 MB / 1.543 GB, free: 147.3 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02562/7.683, allocations: 8.268 MB / 1.552 GB, free: 146.3 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02302/7.706, allocations: 5.689 MB / 1.557 GB, free: 146.3 MB / 0.5418 GB Notification: Performance of SimCode: time 1.633e-06/7.706, allocations: 0 / 1.557 GB, free: 146.3 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.267/14.97, allocations: 250.8 MB / 1.802 GB, free: 118.2 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat