Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005334/0.0005334, allocations: 15.98 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3252, allocations: 44.51 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1686/0.4939, allocations: 94.24 MB / 402.8 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003273/0.4942, allocations: 87.95 kB / 402.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7349/1.229, allocations: 126.1 MB / 0.5166 GB, free: 11.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.229, allocations: 4 kB / 0.5166 GB, free: 11.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004123/1.23, allocations: 115.9 kB / 0.5167 GB, free: 11.29 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02892/1.259, allocations: 6.771 MB / 0.5233 GB, free: 4.438 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/1.259, allocations: 12.02 kB / 0.5233 GB, free: 4.426 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006248/1.265, allocations: 1.316 MB / 0.5246 GB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06179/1.327, allocations: 8.302 MB / 0.5327 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02897/1.356, allocations: 7.295 MB / 0.5398 GB, free: 3.414 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006916/1.357, allocations: 447.8 kB / 0.5403 GB, free: 2.977 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003875/1.36, allocations: 0.5934 MB / 0.5409 GB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05231/1.413, allocations: 15.71 MB / 0.5562 GB, free: 1.512 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003689/1.413, allocations: 63.41 kB / 0.5563 GB, free: 1.449 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002745/1.416, allocations: 283.8 kB / 0.5565 GB, free: 1.172 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2924/1.708, allocations: 1.612 MB / 0.5581 GB, free: 67.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05083/1.759, allocations: 13.96 MB / 0.5717 GB, free: 67.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.101/1.86, allocations: 63.98 MB / 0.6342 GB, free: 30.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02186/1.882, allocations: 6.439 MB / 0.6405 GB, free: 27.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03266/1.915, allocations: 14.33 MB / 0.6545 GB, free: 19.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/1.915, allocations: 66.25 kB / 0.6546 GB, free: 19.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=286): time 7.754e-06/1.915, allocations: 3.312 kB / 0.6546 GB, free: 19.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=336): time 0.3385/2.254, allocations: 42.13 MB / 0.6957 GB, free: 6.184 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/2.254, allocations: 229.6 kB / 0.6959 GB, free: 5.918 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01402/2.268, allocations: 4.802 MB / 0.7006 GB, free: 1.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009783/2.269, allocations: 71.02 kB / 0.7007 GB, free: 1.086 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005645/2.275, allocations: 4.426 MB / 0.705 GB, free: 12.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002633/2.277, allocations: 1.244 MB / 0.7062 GB, free: 11.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001638/2.279, allocations: 175 kB / 0.7064 GB, free: 11.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001176/2.28, allocations: 0.6819 MB / 0.707 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01292/2.293, allocations: 4.534 MB / 0.7115 GB, free: 6.035 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3666/2.66, allocations: 9.479 MB / 0.7207 GB, free: 89.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01544/2.675, allocations: 6.414 MB / 0.727 GB, free: 89.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004179/2.676, allocations: 49.72 kB / 0.727 GB, free: 89.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07336/2.749, allocations: 18.65 MB / 0.7452 GB, free: 89.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002053/2.749, allocations: 81.16 kB / 0.7453 GB, free: 89.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000326/2.75, allocations: 177.5 kB / 0.7455 GB, free: 89.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03908/2.789, allocations: 5.632 MB / 0.751 GB, free: 89.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01324/2.802, allocations: 2.04 MB / 0.753 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0498/2.852, allocations: 24.28 MB / 0.7767 GB, free: 80 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/2.864, allocations: 0.5351 MB / 0.7772 GB, free: 79.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002407/2.866, allocations: 0.505 MB / 0.7777 GB, free: 79.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009822/2.876, allocations: 3.089 MB / 0.7807 GB, free: 78.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001593/2.878, allocations: 0.4941 MB / 0.7812 GB, free: 78.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05437/2.932, allocations: 12.34 MB / 0.7933 GB, free: 74.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001305/2.932, allocations: 57.86 kB / 0.7933 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/2.932, allocations: 9.844 kB / 0.7933 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.069e-05/2.932, allocations: 13.92 kB / 0.7933 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08333/3.016, allocations: 23.93 MB / 0.8167 GB, free: 56.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.096e-05/3.016, allocations: 13.84 kB / 0.8167 GB, free: 56.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005728/3.021, allocations: 0.5683 MB / 0.8173 GB, free: 56.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0341/3.056, allocations: 4.646 MB / 0.8218 GB, free: 53.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009564/3.057, allocations: 63.06 kB / 0.8219 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04133/3.098, allocations: 19.57 MB / 0.841 GB, free: 33.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/3.098, allocations: 15.94 kB / 0.841 GB, free: 33.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05733/3.155, allocations: 17.36 MB / 0.8579 GB, free: 16.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004616/3.16, allocations: 1.216 MB / 0.8591 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002172/3.162, allocations: 57.16 kB / 0.8592 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00609/3.168, allocations: 248.3 kB / 0.8594 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001423/3.17, allocations: 189.6 kB / 0.8596 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006115/3.171, allocations: 89.47 kB / 0.8597 GB, free: 14.35 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009122/3.18, allocations: 3.341 MB / 0.863 GB, free: 11.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.032e-06/3.18, allocations: 3.938 kB / 0.863 GB, free: 11.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01151/3.191, allocations: 1.71 MB / 0.8646 GB, free: 9.328 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3764/3.568, allocations: 19.08 MB / 0.8833 GB, free: 85.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0249/3.593, allocations: 10.42 MB / 0.8934 GB, free: 85.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/3.593, allocations: 0 / 0.8934 GB, free: 85.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009372/3.602, allocations: 3.936 MB / 0.8973 GB, free: 85.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00545/3.608, allocations: 0.5778 MB / 0.8978 GB, free: 85.47 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4291/4.037, allocations: 149.7 MB / 1.044 GB, free: 117.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01332/4.05, allocations: 4.755 MB / 1.049 GB, free: 116.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01576/4.066, allocations: 2.982 MB / 1.052 GB, free: 116.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009378/4.076, allocations: 2.913 MB / 1.054 GB, free: 116.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.433e-06/4.076, allocations: 0 / 1.054 GB, free: 116.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2918/4.367, allocations: 132.7 MB / 1.184 GB, free: 27.26 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/4.368, allocations: 196.3 kB / 1.184 GB, free: 27.02 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.157/11.53, allocations: 0 / 1.184 GB, free: 27.02 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat