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.Fourbar_analytic.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.Fourbar_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.663/1.663, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004826/0.0004828, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.09553, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3711/0.4667, allocations: 92.05 MB / 364.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003132/0.4671, allocations: 94.75 kB / 364.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6628/1.13, allocations: 110.3 MB / 474.6 MB, free: 72.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.13, allocations: 0 / 474.6 MB, free: 72.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003368/1.13, allocations: 109.3 kB / 474.7 MB, free: 72.6 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.02073/1.151, allocations: 5.377 MB / 480.1 MB, free: 70.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/1.151, allocations: 10.66 kB / 480.1 MB, free: 70.31 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004648/1.156, allocations: 1.035 MB / 481.1 MB, free: 70.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04898/1.205, allocations: 6.89 MB / 488 MB, free: 69.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02333/1.228, allocations: 6.781 MB / 494.8 MB, free: 66.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004775/1.229, allocations: 389.8 kB / 495.2 MB, free: 66.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002748/1.232, allocations: 0.5137 MB / 495.7 MB, free: 65.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03797/1.27, allocations: 12.64 MB / 0.4964 GB, free: 52.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002886/1.27, allocations: 75.3 kB / 0.4965 GB, free: 52.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001675/1.272, allocations: 242.7 kB / 0.4967 GB, free: 51.94 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001937/1.273, allocations: 1.045 MB / 0.4977 GB, free: 50.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0324/1.306, allocations: 10.52 MB / 0.508 GB, free: 40.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0738/1.38, allocations: 50.13 MB / 0.557 GB, free: 4.973 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02276/1.403, allocations: 4.791 MB / 0.5617 GB, free: 28 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.262/1.665, allocations: 7.049 MB / 0.5685 GB, free: 81.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.13e-05/1.665, allocations: 53.66 kB / 0.5686 GB, free: 81.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 5.67e-06/1.665, allocations: 3.75 kB / 0.5686 GB, free: 81.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=224): time 0.1254/1.79, allocations: 20.31 MB / 0.5884 GB, free: 78.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/1.79, allocations: 201 kB / 0.5886 GB, free: 78.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008874/1.799, allocations: 3.925 MB / 0.5924 GB, free: 77.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005172/1.8, allocations: 58.42 kB / 0.5925 GB, free: 77.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003057/1.803, allocations: 3.44 MB / 0.5959 GB, free: 75.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001258/1.804, allocations: 0.8369 MB / 0.5967 GB, free: 75.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007549/1.805, allocations: 126.6 kB / 0.5968 GB, free: 75.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004006/1.805, allocations: 0.5744 MB / 0.5974 GB, free: 74.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005514/1.811, allocations: 2.16 MB / 0.5995 GB, free: 74.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007722/1.819, allocations: 5.894 MB / 0.6052 GB, free: 68.76 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007784/1.826, allocations: 3.517 MB / 0.6087 GB, free: 67.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001155/1.827, allocations: 37.06 kB / 0.6087 GB, free: 67.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02446/1.851, allocations: 8.613 MB / 0.6171 GB, free: 64.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/1.851, allocations: 62 kB / 0.6172 GB, free: 64.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002073/1.851, allocations: 132.9 kB / 0.6173 GB, free: 64.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00558/1.857, allocations: 1.048 MB / 0.6183 GB, free: 64.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008171/1.865, allocations: 1.41 MB / 0.6197 GB, free: 64.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/1.881, allocations: 7.117 MB / 0.6266 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006844/1.888, allocations: 325.2 kB / 0.627 GB, free: 60.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00142/1.889, allocations: 380.2 kB / 0.6273 GB, free: 60.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0061/1.895, allocations: 2.489 MB / 0.6297 GB, free: 57.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00099/1.896, allocations: 402.8 kB / 0.6301 GB, free: 57.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/1.908, allocations: 3.653 MB / 0.6337 GB, free: 54.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.998e-05/1.908, allocations: 25.33 kB / 0.6337 GB, free: 54.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/1.908, allocations: 8 kB / 0.6337 GB, free: 54.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-05/1.908, allocations: 10.12 kB / 0.6337 GB, free: 54.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02737/1.935, allocations: 9.869 MB / 0.6434 GB, free: 46.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.784e-05/1.936, allocations: 7.047 kB / 0.6434 GB, free: 46.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003026/1.939, allocations: 355.9 kB / 0.6437 GB, free: 46.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004859/1.943, allocations: 0.8065 MB / 0.6445 GB, free: 45.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003172/1.944, allocations: 45.58 kB / 0.6446 GB, free: 45.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/1.957, allocations: 5.828 MB / 0.6502 GB, free: 40.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/1.957, allocations: 11.94 kB / 0.6503 GB, free: 40.37 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01598/1.973, allocations: 7.006 MB / 0.6571 GB, free: 33.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002275/1.975, allocations: 0.7124 MB / 0.6578 GB, free: 33.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007902/1.976, allocations: 36 kB / 0.6578 GB, free: 33.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002692/1.978, allocations: 103.8 kB / 0.6579 GB, free: 33.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004955/1.979, allocations: 145.9 kB / 0.6581 GB, free: 33.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002046/1.979, allocations: 63.94 kB / 0.6581 GB, free: 32.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005754/1.985, allocations: 2.758 MB / 0.6608 GB, free: 30.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.332e-06/1.985, allocations: 0 / 0.6608 GB, free: 30.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007395/1.992, allocations: 1.178 MB / 0.662 GB, free: 29.53 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0167/2.009, allocations: 8.965 MB / 0.6707 GB, free: 21.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0118/2.021, allocations: 5.389 MB / 0.676 GB, free: 16.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/2.021, allocations: 0 / 0.676 GB, free: 16.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003723/2.025, allocations: 1.791 MB / 0.6777 GB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003698/2.029, allocations: 0.5167 MB / 0.6782 GB, free: 14.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3191/2.348, allocations: 113.8 MB / 0.7894 GB, free: 32.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009171/2.357, allocations: 3.976 MB / 0.7933 GB, free: 31.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00534/2.362, allocations: 2.366 MB / 0.7956 GB, free: 31.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/2.362, allocations: 0 / 0.7956 GB, free: 31.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.026/7.389, allocations: 116.2 MB / 0.9091 GB, free: 113.9 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat