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.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.668/1.668, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005316/0.0005317, allocations: 19.98 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1106, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3769/0.4876, allocations: 83.11 MB / 355.2 MB, free: 6.582 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/0.488, allocations: 89.45 kB / 355.3 MB, free: 6.535 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8007/1.289, allocations: 122.3 MB / 477.6 MB, free: 69.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.717e-06/1.289, allocations: 0 / 477.6 MB, free: 69.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006034/1.289, allocations: 129.5 kB / 477.7 MB, free: 69.97 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: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.04324/1.333, allocations: 7.113 MB / 484.8 MB, free: 67.28 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.318e-05/1.333, allocations: 10.78 kB / 484.9 MB, free: 67.27 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007874/1.341, allocations: 1.201 MB / 486.1 MB, free: 67.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08465/1.425, allocations: 9.414 MB / 495.5 MB, free: 64.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02865/1.454, allocations: 8.595 MB / 0.4923 GB, free: 56.97 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005203/1.455, allocations: 435.5 kB / 0.4927 GB, free: 56.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003512/1.458, allocations: 0.5752 MB / 0.4932 GB, free: 56.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04455/1.503, allocations: 14.79 MB / 0.5077 GB, free: 40.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004218/1.503, allocations: 86.7 kB / 0.5078 GB, free: 40.1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002637/1.506, allocations: 278.4 kB / 0.508 GB, free: 39.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003028/1.509, allocations: 1.438 MB / 0.5094 GB, free: 38.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03963/1.549, allocations: 12.99 MB / 0.5221 GB, free: 25.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3851/1.934, allocations: 64.58 MB / 0.5852 GB, free: 39.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03294/1.967, allocations: 7.855 MB / 0.5929 GB, free: 38.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03023/1.997, allocations: 12.98 MB / 0.6055 GB, free: 36.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.903e-05/1.997, allocations: 69.69 kB / 0.6056 GB, free: 36.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 7.594e-06/1.997, allocations: 0 / 0.6056 GB, free: 36.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 3.303/5.3, allocations: 266.2 MB / 0.8655 GB, free: 31.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/5.3, allocations: 273.9 kB / 0.8658 GB, free: 31.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3032/5.603, allocations: 4.752 MB / 0.8704 GB, free: 113.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00224/5.605, allocations: 119.3 kB / 0.8705 GB, free: 113.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003971/5.609, allocations: 3.784 MB / 0.8742 GB, free: 111.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004537/5.614, allocations: 2.111 MB / 0.8763 GB, free: 110.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002342/5.616, allocations: 189.5 kB / 0.8765 GB, free: 110.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0008334/5.617, allocations: 0.7126 MB / 0.8772 GB, free: 110 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02164/5.639, allocations: 8.676 MB / 0.8856 GB, free: 110 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02334/5.662, allocations: 12.75 MB / 0.8981 GB, free: 102.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02413/5.687, allocations: 10.58 MB / 0.9084 GB, free: 98.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/5.687, allocations: 39.16 kB / 0.9085 GB, free: 98.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1651/5.852, allocations: 40.08 MB / 0.9476 GB, free: 86.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/5.852, allocations: 67.38 kB / 0.9477 GB, free: 86.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002078/5.852, allocations: 138.8 kB / 0.9478 GB, free: 86.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1162/5.968, allocations: 21.55 MB / 0.9688 GB, free: 72.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00832/5.977, allocations: 1.432 MB / 0.9702 GB, free: 71.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6378/6.615, allocations: 151.1 MB / 1.118 GB, free: 58.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01806/6.633, allocations: 0.7256 MB / 1.119 GB, free: 57.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003269/6.636, allocations: 0.5286 MB / 1.119 GB, free: 57.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (772): * Single equations (assignments): 765 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.01127/6.647, allocations: 3.12 MB / 1.122 GB, free: 54.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003029/6.65, allocations: 0.5917 MB / 1.123 GB, free: 54.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4153/7.066, allocations: 36.29 MB / 1.158 GB, free: 90.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/7.066, allocations: 61.62 kB / 1.158 GB, free: 90.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000193/7.066, allocations: 63.31 kB / 1.158 GB, free: 90.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001723/7.066, allocations: 29.94 kB / 1.158 GB, free: 90.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1904/7.257, allocations: 57.2 MB / 1.214 GB, free: 82.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.981e-05/7.257, allocations: 0 / 1.214 GB, free: 82.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002591/7.259, allocations: 269 kB / 1.214 GB, free: 82.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.107/7.366, allocations: 20.76 MB / 1.235 GB, free: 77.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002101/7.369, allocations: 103.7 kB / 1.235 GB, free: 77.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6121/7.981, allocations: 138.9 MB / 1.37 GB, free: 75.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/7.981, allocations: 1.125 kB / 1.37 GB, free: 75.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1748/8.156, allocations: 48.8 MB / 1.418 GB, free: 42.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008216/8.164, allocations: 2.408 MB / 1.42 GB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00334/8.167, allocations: 92.55 kB / 1.42 GB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01258/8.18, allocations: 0.5002 MB / 1.421 GB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005192/8.185, allocations: 0.498 MB / 1.421 GB, free: 39.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00167/8.187, allocations: 151.5 kB / 1.422 GB, free: 39.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.008147/8.195, allocations: 3.41 MB / 1.425 GB, free: 36.37 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.533e-06/8.195, allocations: 2.438 kB / 1.425 GB, free: 36.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01853/8.214, allocations: 3.432 MB / 1.428 GB, free: 32.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.449/8.663, allocations: 49.7 MB / 1.477 GB, free: 86.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.06398/8.727, allocations: 24.52 MB / 1.501 GB, free: 80.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/8.727, allocations: 0 / 1.501 GB, free: 80.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0422/8.769, allocations: 13.8 MB / 1.514 GB, free: 74.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007778/8.777, allocations: 0.7061 MB / 1.515 GB, free: 74.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.674/9.451, allocations: 201.2 MB / 1.711 GB, free: 22.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01334/9.464, allocations: 5.315 MB / 1.717 GB, free: 20.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007283/9.472, allocations: 3.093 MB / 1.72 GB, free: 18.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.934e-06/9.472, allocations: 0 / 1.72 GB, free: 18.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.212/16.68, allocations: 267.5 MB / 1.981 GB, free: 68.77 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat