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.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.217/2.217, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004891/0.0004892, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1008, allocations: 44.52 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4841/0.585, allocations: 88.84 MB / 397.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003459/0.5854, allocations: 91.95 kB / 397.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5454/1.131, allocations: 122.6 MB / 0.5079 GB, free: 15.76 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.131, allocations: 0 / 0.5079 GB, free: 15.76 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00054/1.131, allocations: 120 kB / 0.508 GB, free: 15.64 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: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.03434/1.166, allocations: 7.12 MB / 0.5149 GB, free: 8.441 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/1.166, allocations: 12.03 kB / 0.5149 GB, free: 8.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006149/1.172, allocations: 1.201 MB / 0.5161 GB, free: 7.219 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3865/1.559, allocations: 9.418 MB / 0.5253 GB, free: 70.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03208/1.591, allocations: 8.594 MB / 0.5337 GB, free: 70.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006724/1.592, allocations: 435.6 kB / 0.5341 GB, free: 70.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003593/1.595, allocations: 0.5821 MB / 0.5347 GB, free: 70.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04715/1.642, allocations: 14.81 MB / 0.5492 GB, free: 66.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005205/1.643, allocations: 87.55 kB / 0.5492 GB, free: 66.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003/1.646, allocations: 272.3 kB / 0.5495 GB, free: 66.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/1.649, allocations: 1.44 MB / 0.5509 GB, free: 66.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04006/1.689, allocations: 13 MB / 0.5636 GB, free: 66.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1044/1.794, allocations: 64.66 MB / 0.6267 GB, free: 40.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03186/1.826, allocations: 7.859 MB / 0.6344 GB, free: 38.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03089/1.857, allocations: 12.98 MB / 0.6471 GB, free: 29.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.429e-05/1.857, allocations: 72.64 kB / 0.6472 GB, free: 29.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 9.768e-06/1.857, allocations: 3.938 kB / 0.6472 GB, free: 29.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 3.747/5.604, allocations: 266.1 MB / 0.9071 GB, free: 95.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/5.604, allocations: 270.6 kB / 0.9073 GB, free: 94.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/5.615, allocations: 4.758 MB / 0.912 GB, free: 93.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002198/5.618, allocations: 117.4 kB / 0.9121 GB, free: 93.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003637/5.621, allocations: 3.792 MB / 0.9158 GB, free: 90.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004299/5.626, allocations: 2.109 MB / 0.9179 GB, free: 89.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00257/5.628, allocations: 191.2 kB / 0.918 GB, free: 88.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007504/5.629, allocations: 0.7128 MB / 0.9187 GB, free: 88.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0205/5.65, allocations: 8.675 MB / 0.9272 GB, free: 82.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02299/5.673, allocations: 12.75 MB / 0.9397 GB, free: 69.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02371/5.696, allocations: 10.58 MB / 0.95 GB, free: 59.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/5.697, allocations: 40 kB / 0.95 GB, free: 59.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.4887/6.185, allocations: 40.08 MB / 0.9892 GB, free: 79.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003672/6.192, allocations: 67.52 kB / 0.9892 GB, free: 79.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004271/6.192, allocations: 137.3 kB / 0.9894 GB, free: 79.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1501/6.342, allocations: 21.55 MB / 1.01 GB, free: 79.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008742/6.351, allocations: 1.431 MB / 1.012 GB, free: 79.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6972/7.048, allocations: 151.5 MB / 1.16 GB, free: 74.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01711/7.065, allocations: 0.7283 MB / 1.16 GB, free: 74.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002973/7.069, allocations: 0.5251 MB / 1.161 GB, free: 74.97 MB / 442.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.01074/7.079, allocations: 3.112 MB / 1.164 GB, free: 74.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002514/7.082, allocations: 0.5935 MB / 1.165 GB, free: 74.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1415/7.223, allocations: 36.3 MB / 1.2 GB, free: 74.08 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001003/7.223, allocations: 64.19 kB / 1.2 GB, free: 74.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001745/7.224, allocations: 65.81 kB / 1.2 GB, free: 74.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001473/7.224, allocations: 33.36 kB / 1.2 GB, free: 74.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2145/7.438, allocations: 57.2 MB / 1.256 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.841e-05/7.438, allocations: 0 / 1.256 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003048/7.441, allocations: 269.5 kB / 1.256 GB, free: 48.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1068/7.548, allocations: 20.76 MB / 1.277 GB, free: 30.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002458/7.551, allocations: 99.98 kB / 1.277 GB, free: 30.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.732/8.283, allocations: 138.9 MB / 1.412 GB, free: 42.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/8.283, allocations: 10.62 kB / 1.412 GB, free: 42.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5483/8.831, allocations: 48.81 MB / 1.46 GB, free: 72.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01266/8.844, allocations: 2.413 MB / 1.462 GB, free: 72.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005427/8.85, allocations: 96.41 kB / 1.462 GB, free: 72.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01697/8.867, allocations: 0.4911 MB / 1.463 GB, free: 72.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007876/8.875, allocations: 0.507 MB / 1.463 GB, free: 72.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002719/8.877, allocations: 141.6 kB / 1.463 GB, free: 72.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0138/8.891, allocations: 3.406 MB / 1.467 GB, free: 72.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.61e-07/8.891, allocations: 0 / 1.467 GB, free: 72.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.03101/8.922, allocations: 3.435 MB / 1.47 GB, free: 72.44 MB / 442.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.2302/9.153, allocations: 49.44 MB / 1.518 GB, free: 70.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0673/9.22, allocations: 24.53 MB / 1.542 GB, free: 61.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/9.22, allocations: 0 / 1.542 GB, free: 61.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0423/9.262, allocations: 13.79 MB / 1.556 GB, free: 55.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008037/9.27, allocations: 0.7062 MB / 1.557 GB, free: 55.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6842/9.955, allocations: 201.2 MB / 1.753 GB, free: 30.41 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01206/9.967, allocations: 5.325 MB / 1.758 GB, free: 29.53 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006559/9.973, allocations: 3.098 MB / 1.761 GB, free: 29.52 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/9.973, allocations: 0 / 1.761 GB, free: 29.52 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.442/17.42, allocations: 267.9 MB / 2.023 GB, free: 98.75 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat