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.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_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003759, allocations: 11.98 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4934/0.6009, allocations: 94.23 MB / 402.8 MB, free: 14.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.6012, allocations: 97.12 kB / 402.9 MB, free: 14.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5472/1.148, allocations: 126.1 MB / 0.5166 GB, free: 6.602 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.906e-06/1.149, allocations: 0 / 0.5166 GB, free: 6.602 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004293/1.149, allocations: 120 kB / 0.5167 GB, free: 6.484 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.3359/1.485, allocations: 6.767 MB / 0.5233 GB, free: 71.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/1.485, allocations: 15.27 kB / 0.5233 GB, free: 71.58 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006469/1.491, allocations: 1.304 MB / 0.5246 GB, free: 71.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06306/1.555, allocations: 8.306 MB / 0.5327 GB, free: 71.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02725/1.582, allocations: 7.288 MB / 0.5398 GB, free: 70.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006362/1.583, allocations: 449 kB / 0.5402 GB, free: 70.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003782/1.586, allocations: 0.5883 MB / 0.5408 GB, free: 70.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04671/1.633, allocations: 15.7 MB / 0.5561 GB, free: 67.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004871/1.634, allocations: 73.42 kB / 0.5562 GB, free: 67.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003604/1.637, allocations: 284.1 kB / 0.5565 GB, free: 67.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003707/1.641, allocations: 1.614 MB / 0.5581 GB, free: 67.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04145/1.683, allocations: 13.97 MB / 0.5717 GB, free: 67.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1258/1.808, allocations: 64 MB / 0.6342 GB, free: 39.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02581/1.834, allocations: 6.432 MB / 0.6405 GB, free: 35.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03527/1.87, allocations: 14.32 MB / 0.6545 GB, free: 22.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.369e-05/1.87, allocations: 60.5 kB / 0.6545 GB, free: 22.76 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.943e-06/1.87, allocations: 0 / 0.6545 GB, free: 22.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.7351/2.605, allocations: 42.14 MB / 0.6957 GB, free: 82.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/2.605, allocations: 211 kB / 0.6959 GB, free: 82.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0143/2.619, allocations: 4.814 MB / 0.7006 GB, free: 81.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009208/2.62, allocations: 71.97 kB / 0.7006 GB, free: 81.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004117/2.624, allocations: 4.295 MB / 0.7048 GB, free: 79.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002323/2.627, allocations: 1.24 MB / 0.706 GB, free: 79.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001415/2.628, allocations: 173.8 kB / 0.7062 GB, free: 79.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006878/2.629, allocations: 0.6827 MB / 0.7069 GB, free: 78.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01069/2.64, allocations: 4.53 MB / 0.7113 GB, free: 78.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01449/2.654, allocations: 9.489 MB / 0.7206 GB, free: 72.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0144/2.669, allocations: 6.414 MB / 0.7268 GB, free: 72.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002048/2.669, allocations: 49.69 kB / 0.7269 GB, free: 72.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07707/2.746, allocations: 18.48 MB / 0.7449 GB, free: 68.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002035/2.746, allocations: 85.75 kB / 0.745 GB, free: 68.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003545/2.747, allocations: 174.5 kB / 0.7452 GB, free: 68.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05484/2.802, allocations: 5.632 MB / 0.7507 GB, free: 67.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01476/2.816, allocations: 2.041 MB / 0.7527 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04992/2.866, allocations: 24.27 MB / 0.7764 GB, free: 55.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01211/2.879, allocations: 0.5409 MB / 0.7769 GB, free: 55.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002354/2.881, allocations: 0.5015 MB / 0.7774 GB, free: 55.71 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.00996/2.891, allocations: 3.094 MB / 0.7804 GB, free: 54.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001691/2.893, allocations: 0.4975 MB / 0.7809 GB, free: 53.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05521/2.948, allocations: 12.34 MB / 0.7929 GB, free: 44.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/2.948, allocations: 54.56 kB / 0.793 GB, free: 44.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.288e-05/2.948, allocations: 8 kB / 0.793 GB, free: 44.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.86e-05/2.948, allocations: 15.23 kB / 0.793 GB, free: 44.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08355/3.032, allocations: 23.94 MB / 0.8164 GB, free: 24.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.368e-05/3.032, allocations: 4 kB / 0.8164 GB, free: 24.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005599/3.037, allocations: 0.5655 MB / 0.817 GB, free: 24.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03496/3.072, allocations: 4.645 MB / 0.8215 GB, free: 19.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000869/3.073, allocations: 55.98 kB / 0.8215 GB, free: 19.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.372/3.445, allocations: 19.57 MB / 0.8407 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/3.446, allocations: 6.469 kB / 0.8407 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06369/3.509, allocations: 17.36 MB / 0.8576 GB, free: 71.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004488/3.514, allocations: 1.211 MB / 0.8588 GB, free: 71.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002322/3.516, allocations: 57.28 kB / 0.8589 GB, free: 71.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006487/3.523, allocations: 251.5 kB / 0.8591 GB, free: 71.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001515/3.524, allocations: 191.2 kB / 0.8593 GB, free: 71.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005435/3.525, allocations: 82.84 kB / 0.8594 GB, free: 71.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009297/3.534, allocations: 3.348 MB / 0.8626 GB, free: 71.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/3.534, allocations: 3.781 kB / 0.8626 GB, free: 71.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01209/3.546, allocations: 1.705 MB / 0.8643 GB, free: 71.43 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.06087/3.607, allocations: 19.08 MB / 0.8829 GB, free: 66.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02397/3.631, allocations: 10.43 MB / 0.8931 GB, free: 63.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/3.631, allocations: 3.375 kB / 0.8931 GB, free: 63.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009132/3.64, allocations: 3.944 MB / 0.897 GB, free: 61.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005451/3.646, allocations: 0.5709 MB / 0.8975 GB, free: 61.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4062/4.052, allocations: 150.4 MB / 1.044 GB, free: 70.71 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01327/4.065, allocations: 4.751 MB / 1.049 GB, free: 69.86 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008495/4.074, allocations: 2.957 MB / 1.052 GB, free: 69.86 MB / 474.7 MB Notification: Performance of SimCode: time 1.883e-06/4.074, allocations: 0 / 1.052 GB, free: 69.86 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.669/9.743, allocations: 178.4 MB / 1.226 GB, free: 109.9 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.Fourbar2_res.mat does not exist to compare? outputFormat=mat