Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.725/1.725, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003705, allocations: 8 kB / 233.3 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08331/0.08372, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3857/0.4695, allocations: 96.03 MB / 368.1 MB, free: 9.719 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003498/0.4699, allocations: 90.33 kB / 368.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.371/1.841, allocations: 233.9 MB / 0.588 GB, free: 21.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.841, allocations: 0 / 0.588 GB, free: 21.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006952/1.842, allocations: 230.3 kB / 0.5882 GB, free: 21.41 MB / 346.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.06175/1.904, allocations: 13.02 MB / 0.6009 GB, free: 17.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.904, allocations: 9.75 kB / 0.6009 GB, free: 17.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01086/1.915, allocations: 2.007 MB / 0.6029 GB, free: 16.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03418/1.949, allocations: 3.982 MB / 0.6068 GB, free: 16.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04695/1.996, allocations: 12.22 MB / 0.6187 GB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001292/1.998, allocations: 0.8868 MB / 0.6196 GB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007774/2.005, allocations: 1.184 MB / 0.6207 GB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1228/2.128, allocations: 33.93 MB / 0.6539 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008944/2.129, allocations: 95.09 kB / 0.654 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006931/2.136, allocations: 0.5386 MB / 0.6545 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00707/2.143, allocations: 2.583 MB / 0.657 GB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1555/2.299, allocations: 31.9 MB / 0.6882 GB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5215/2.82, allocations: 120.3 MB / 0.8057 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08758/2.908, allocations: 17.34 MB / 0.8226 GB, free: 7.648 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07488/2.983, allocations: 31.09 MB / 0.853 GB, free: 2.762 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000103/2.983, allocations: 85.8 kB / 0.8531 GB, free: 2.672 MB / 426.7 MB Notification: Performance of pre-optimization done (n=489): time 1.087e-05/2.983, allocations: 4 kB / 0.8531 GB, free: 2.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=726): time 1.948/4.931, allocations: 172 MB / 1.021 GB, free: 90.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/4.931, allocations: 205.4 kB / 1.021 GB, free: 90.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02162/4.953, allocations: 7.026 MB / 1.028 GB, free: 89.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00269/4.955, allocations: 136.2 kB / 1.028 GB, free: 89.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006757/4.962, allocations: 6.833 MB / 1.035 GB, free: 85.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005376/4.968, allocations: 2.58 MB / 1.037 GB, free: 84.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003982/4.972, allocations: 289.3 kB / 1.038 GB, free: 84.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001724/4.973, allocations: 0.9099 MB / 1.039 GB, free: 84.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02665/5, allocations: 10.3 MB / 1.049 GB, free: 84.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03201/5.032, allocations: 16.92 MB / 1.065 GB, free: 73.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.032/5.064, allocations: 13.01 MB / 1.078 GB, free: 68.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002825/5.065, allocations: 66.69 kB / 1.078 GB, free: 68.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07545/5.14, allocations: 27.41 MB / 1.105 GB, free: 56.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001898/5.14, allocations: 102.2 kB / 1.105 GB, free: 56.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003921/5.141, allocations: 226.2 kB / 1.105 GB, free: 56.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004422/5.141, allocations: 346.4 kB / 1.105 GB, free: 56.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03638/5.178, allocations: 4.26 MB / 1.109 GB, free: 55.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006012/5.178, allocations: 465.8 kB / 1.11 GB, free: 55.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02228/5.2, allocations: 1.225 MB / 1.111 GB, free: 54.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00442/5.205, allocations: 0.7451 MB / 1.112 GB, free: 53.68 MB / 426.7 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.0186/5.224, allocations: 5.456 MB / 1.117 GB, free: 48.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004224/5.228, allocations: 0.798 MB / 1.118 GB, free: 48.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05549/5.283, allocations: 19.61 MB / 1.137 GB, free: 30.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.874e-05/5.284, allocations: 72 kB / 1.137 GB, free: 30.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-05/5.284, allocations: 0 / 1.137 GB, free: 30.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002126/5.284, allocations: 35.91 kB / 1.137 GB, free: 30.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4451/5.729, allocations: 42.56 MB / 1.179 GB, free: 80.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-05/5.729, allocations: 9.766 kB / 1.179 GB, free: 80.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0249/5.754, allocations: 2.15 MB / 1.181 GB, free: 80.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/5.754, allocations: 32.06 kB / 1.181 GB, free: 80.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002489/5.757, allocations: 125.6 kB / 1.181 GB, free: 80.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001039/5.757, allocations: 32.83 kB / 1.181 GB, free: 80.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/5.757, allocations: 8 kB / 1.181 GB, free: 80.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08831/5.845, allocations: 33.94 MB / 1.214 GB, free: 69.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01051/5.856, allocations: 2.708 MB / 1.217 GB, free: 68.44 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004926/5.861, allocations: 127.8 kB / 1.217 GB, free: 68.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01498/5.876, allocations: 0.7589 MB / 1.218 GB, free: 68.26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003394/5.879, allocations: 391.2 kB / 1.218 GB, free: 68.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002431/5.882, allocations: 179.9 kB / 1.218 GB, free: 68.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0143/5.896, allocations: 4.899 MB / 1.223 GB, free: 66.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.81e-07/5.896, allocations: 0 / 1.223 GB, free: 66.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.02077/5.917, allocations: 3.169 MB / 1.226 GB, free: 66.2 MB / 426.7 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.09328/6.01, allocations: 35.67 MB / 1.261 GB, free: 39.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.06146/6.072, allocations: 23.24 MB / 1.284 GB, free: 19.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.554e-05/6.072, allocations: 0 / 1.284 GB, free: 19.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02321/6.095, allocations: 9.828 MB / 1.293 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008903/6.104, allocations: 0.853 MB / 1.294 GB, free: 9.875 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7819/6.886, allocations: 213.1 MB / 1.502 GB, free: 77.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02304/6.909, allocations: 8.276 MB / 1.51 GB, free: 76.46 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02235/6.931, allocations: 5.679 MB / 1.516 GB, free: 76.46 MB / 474.7 MB Notification: Performance of SimCode: time 2.545e-06/6.932, allocations: 3.969 kB / 1.516 GB, free: 76.46 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.954/13.89, allocations: 250.8 MB / 1.761 GB, free: 21.59 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat