Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.66/1.66, allocations: 171.2 MB / 186.1 MB, free: 1.109 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005506/0.0005506, allocations: 8 kB / 233.4 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1276, allocations: 38.77 MB / 272.1 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3953/0.5229, allocations: 83.1 MB / 355.2 MB, free: 6.051 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/0.5232, allocations: 86.77 kB / 355.3 MB, free: 6.004 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7542/1.277, allocations: 122.3 MB / 477.6 MB, free: 70.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.826e-06/1.277, allocations: 0 / 477.6 MB, free: 70.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005005/1.278, allocations: 126.2 kB / 477.8 MB, free: 70.27 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.03267/1.311, allocations: 7.108 MB / 484.9 MB, free: 67.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/1.311, allocations: 10.62 kB / 484.9 MB, free: 67.58 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006164/1.317, allocations: 1.198 MB / 486.1 MB, free: 67.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06635/1.383, allocations: 9.414 MB / 495.5 MB, free: 64.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03019/1.414, allocations: 8.606 MB / 0.4923 GB, free: 56.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00055/1.414, allocations: 432.8 kB / 0.4927 GB, free: 55.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003658/1.418, allocations: 0.5761 MB / 0.4933 GB, free: 55.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04601/1.464, allocations: 14.79 MB / 0.5077 GB, free: 39.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000527/1.464, allocations: 87.14 kB / 0.5078 GB, free: 39.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003333/1.468, allocations: 277.7 kB / 0.508 GB, free: 39.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003222/1.471, allocations: 1.435 MB / 0.5094 GB, free: 37.81 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04067/1.512, allocations: 12.99 MB / 0.5221 GB, free: 24.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.395/1.907, allocations: 64.58 MB / 0.5852 GB, free: 39.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03358/1.941, allocations: 7.862 MB / 0.5929 GB, free: 38.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03339/1.974, allocations: 12.98 MB / 0.6055 GB, free: 37.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.809e-05/1.974, allocations: 72.08 kB / 0.6056 GB, free: 37.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 7.865e-06/1.974, allocations: 3.031 kB / 0.6056 GB, free: 37.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 3.488/5.462, allocations: 266.1 MB / 0.8655 GB, free: 31.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/5.462, allocations: 273.9 kB / 0.8658 GB, free: 31.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2852/5.747, allocations: 4.756 MB / 0.8704 GB, free: 113.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002422/5.75, allocations: 119.4 kB / 0.8705 GB, free: 113.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004546/5.754, allocations: 3.995 MB / 0.8744 GB, free: 112.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004491/5.759, allocations: 2.113 MB / 0.8765 GB, free: 110.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002545/5.761, allocations: 186.8 kB / 0.8767 GB, free: 110.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009651/5.762, allocations: 0.7097 MB / 0.8774 GB, free: 110.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02275/5.785, allocations: 8.673 MB / 0.8859 GB, free: 110.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02359/5.809, allocations: 12.75 MB / 0.8983 GB, free: 103.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02353/5.832, allocations: 10.58 MB / 0.9086 GB, free: 99.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001591/5.833, allocations: 39.16 kB / 0.9087 GB, free: 99.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1608/5.993, allocations: 40.3 MB / 0.948 GB, free: 86.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/5.994, allocations: 67.66 kB / 0.9481 GB, free: 86.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002246/5.994, allocations: 139.9 kB / 0.9482 GB, free: 86.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1167/6.111, allocations: 21.55 MB / 0.9693 GB, free: 72.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00861/6.119, allocations: 1.437 MB / 0.9707 GB, free: 70.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6575/6.777, allocations: 151.1 MB / 1.118 GB, free: 58.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01783/6.795, allocations: 0.7297 MB / 1.119 GB, free: 57.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003299/6.798, allocations: 0.5295 MB / 1.12 GB, free: 57.31 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.01094/6.809, allocations: 3.115 MB / 1.123 GB, free: 54.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003032/6.812, allocations: 0.5952 MB / 1.123 GB, free: 54.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4315/7.244, allocations: 36.29 MB / 1.159 GB, free: 91.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001412/7.244, allocations: 60 kB / 1.159 GB, free: 91.31 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002158/7.244, allocations: 64.12 kB / 1.159 GB, free: 91.31 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001683/7.244, allocations: 29.77 kB / 1.159 GB, free: 91.31 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1934/7.438, allocations: 57.2 MB / 1.215 GB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001145/7.438, allocations: 3.953 kB / 1.215 GB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002652/7.441, allocations: 276.6 kB / 1.215 GB, free: 82.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1068/7.547, allocations: 20.76 MB / 1.235 GB, free: 78.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00227/7.55, allocations: 100.4 kB / 1.235 GB, free: 78.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6655/8.215, allocations: 138.9 MB / 1.371 GB, free: 75.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/8.215, allocations: 5.688 kB / 1.371 GB, free: 75.53 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1652/8.381, allocations: 48.8 MB / 1.418 GB, free: 41.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009306/8.39, allocations: 2.406 MB / 1.421 GB, free: 39.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003549/8.394, allocations: 92 kB / 1.421 GB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01267/8.406, allocations: 0.4938 MB / 1.421 GB, free: 39.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004959/8.411, allocations: 0.5002 MB / 1.422 GB, free: 39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001815/8.413, allocations: 147.7 kB / 1.422 GB, free: 38.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00862/8.422, allocations: 3.407 MB / 1.425 GB, free: 36.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.12e-07/8.422, allocations: 0 / 1.425 GB, free: 36.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01905/8.441, allocations: 3.438 MB / 1.429 GB, free: 32.65 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.4617/8.903, allocations: 49.73 MB / 1.477 GB, free: 86.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.06378/8.967, allocations: 24.52 MB / 1.501 GB, free: 80.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/8.967, allocations: 3.938 kB / 1.501 GB, free: 80.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03951/9.006, allocations: 13.79 MB / 1.515 GB, free: 74.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007684/9.014, allocations: 0.717 MB / 1.515 GB, free: 74.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6094/9.623, allocations: 200.4 MB / 1.711 GB, free: 23.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01267/9.636, allocations: 5.314 MB / 1.716 GB, free: 22.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.009895/9.646, allocations: 2.086 MB / 1.718 GB, free: 22.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006849/9.653, allocations: 3.043 MB / 1.721 GB, free: 19.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/9.653, allocations: 0 / 1.721 GB, free: 19.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.179/10.83, allocations: 291 MB / 2.006 GB, free: 39.48 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/10.83, allocations: 211.6 kB / 2.006 GB, free: 39.24 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/21.8, allocations: 0 / 2.006 GB, free: 39.24 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat