Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.018/1.018, allocations: 111.2 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003484, allocations: 11.98 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0543/0.05468, allocations: 25.17 MB / 184 MB, free: 6.012 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.246/0.3008, allocations: 55.91 MB / 240 MB, free: 6.891 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.3011, allocations: 83.7 kB / 240 MB, free: 6.848 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.425/4.726, allocations: 0.4942 GB / 0.7286 GB, free: 28.7 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.675e-06/4.726, allocations: 2.25 kB / 0.7286 GB, free: 28.7 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0005031/4.727, allocations: 132 kB / 0.7287 GB, free: 28.57 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.6412/5.368, allocations: 38.69 MB / 0.7665 GB, free: 30.58 MB / 250.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/5.368, allocations: 10.28 kB / 0.7665 GB, free: 30.58 MB / 250.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.17/14.54, allocations: 0.9156 GB / 1.682 GB, free: 54.33 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06837/14.61, allocations: 18.74 MB / 1.7 GB, free: 52.89 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007582/14.61, allocations: 0.4926 MB / 1.701 GB, free: 52.69 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01778/14.63, allocations: 0.6395 MB / 1.701 GB, free: 52.51 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 2.8/17.43, allocations: 297.5 MB / 1.992 GB, free: 49.05 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005716/17.43, allocations: 45.78 kB / 1.992 GB, free: 49.05 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01684/17.44, allocations: 290.9 kB / 1.992 GB, free: 49.05 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008668/17.45, allocations: 1.8 MB / 1.994 GB, free: 49.04 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.388/22.84, allocations: 0.5643 GB / 2.558 GB, free: 48.57 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.904/29.74, allocations: 0.8596 GB / 3.418 GB, free: 29.63 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.8155/30.56, allocations: 78.89 MB / 3.495 GB, free: 75.17 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3375/30.9, allocations: 60.2 MB / 3.554 GB, free: 73.97 MB / 314.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001066/30.9, allocations: 65.47 kB / 3.554 GB, free: 73.93 MB / 314.8 MB Notification: Performance of pre-optimization done (n=279): time 7.675e-06/30.9, allocations: 3.828 kB / 3.554 GB, free: 73.93 MB / 314.8 MB Notification: Performance of matching and sorting (n=324): time 2.51/33.41, allocations: 227 MB / 3.775 GB, free: 75.44 MB / 314.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/33.41, allocations: 215.3 kB / 3.776 GB, free: 75.22 MB / 314.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06354/33.47, allocations: 10.7 MB / 3.786 GB, free: 74.85 MB / 314.8 MB Notification: Performance of collectPreVariables (initialization): time 0.004768/33.48, allocations: 70.36 kB / 3.786 GB, free: 74.82 MB / 314.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003632/33.48, allocations: 4.215 MB / 3.79 GB, free: 72.76 MB / 314.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.006148/33.49, allocations: 1.188 MB / 3.791 GB, free: 72.06 MB / 314.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006175/33.49, allocations: 171 kB / 3.792 GB, free: 72.06 MB / 314.8 MB Notification: Performance of setup shared object (initialization): time 0.0008291/33.49, allocations: 0.6605 MB / 3.792 GB, free: 71.73 MB / 314.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.8015/34.29, allocations: 75.91 MB / 3.866 GB, free: 74.87 MB / 314.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.6448/34.94, allocations: 80.62 MB / 3.945 GB, free: 42.86 MB / 314.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.7784/35.72, allocations: 62.13 MB / 4.006 GB, free: 68.42 MB / 314.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001807/35.72, allocations: 46.53 kB / 4.006 GB, free: 68.42 MB / 314.8 MB Notification: Performance of matching and sorting (n=1089) (initialization): time 1.409/37.13, allocations: 143 MB / 4.145 GB, free: 40.2 MB / 314.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/37.13, allocations: 79.97 kB / 4.146 GB, free: 40.13 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002464/37.13, allocations: 167.2 kB / 4.146 GB, free: 39.97 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005844/37.13, allocations: 1.101 MB / 4.147 GB, free: 38.87 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.6047/37.74, allocations: 31.99 MB / 4.178 GB, free: 66.5 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005875/37.74, allocations: 2.187 MB / 4.18 GB, free: 65.98 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3879/38.13, allocations: 32.6 MB / 4.212 GB, free: 65.96 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00777/38.14, allocations: 1.397 MB / 4.213 GB, free: 65.54 MB / 314.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 751 * 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.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[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 (1025): * Single equations (assignments): 1021 * 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: 0 * Non-linear torn systems: 1 {1 40} Notification: Performance of prepare postOptimizeDAE: time 0.01742/38.16, allocations: 3.065 MB / 4.216 GB, free: 64.91 MB / 314.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007122/38.16, allocations: 496.5 kB / 4.217 GB, free: 64.91 MB / 314.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3488/38.51, allocations: 33.09 MB / 4.249 GB, free: 38.56 MB / 314.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.522e-05/38.51, allocations: 41.14 kB / 4.249 GB, free: 38.53 MB / 314.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-05/38.51, allocations: 1.625 kB / 4.249 GB, free: 38.53 MB / 314.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001046/38.51, allocations: 15.94 kB / 4.249 GB, free: 38.51 MB / 314.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6528/39.17, allocations: 74.35 MB / 4.322 GB, free: 41.69 MB / 314.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.383e-05/39.17, allocations: 9.312 kB / 4.322 GB, free: 41.69 MB / 314.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2513/39.42, allocations: 28.53 MB / 4.35 GB, free: 34.39 MB / 314.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005307/39.42, allocations: 0.8114 MB / 4.35 GB, free: 33.59 MB / 314.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005528/39.43, allocations: 0.8271 MB / 4.351 GB, free: 32.76 MB / 314.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003607/39.43, allocations: 1.716 MB / 4.353 GB, free: 31.03 MB / 314.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/39.43, allocations: 10.72 kB / 4.353 GB, free: 31.02 MB / 314.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 2.034/41.47, allocations: 206.9 MB / 4.555 GB, free: 38.25 MB / 314.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01677/41.48, allocations: 4.525 MB / 4.559 GB, free: 33.97 MB / 314.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008489/41.49, allocations: 56.77 kB / 4.559 GB, free: 33.91 MB / 314.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.4949/41.99, allocations: 28.5 MB / 4.587 GB, free: 66.58 MB / 314.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009771/41.99, allocations: 187.4 kB / 4.587 GB, free: 66.58 MB / 314.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004839/41.99, allocations: 0.8973 MB / 4.588 GB, free: 66.58 MB / 314.8 MB Notification: Performance of sorting global known variables: time 0.05859/42.05, allocations: 8.405 MB / 4.597 GB, free: 66.4 MB / 314.8 MB Notification: Performance of sort global known variables: time 7.41e-07/42.05, allocations: 0 / 4.597 GB, free: 66.4 MB / 314.8 MB Notification: Performance of remove unused functions: time 0.02594/42.08, allocations: 2.949 MB / 4.599 GB, free: 66.39 MB / 314.8 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 (276): * Single equations (assignments): 272 * 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: 0 * Non-linear torn systems: 1 {1 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.004759/42.08, allocations: 263.5 kB / 4.6 GB, free: 66.29 MB / 314.8 MB Notification: Performance of simCode: created initialization part: time 1.455/43.54, allocations: 148.7 MB / 4.745 GB, free: 56.5 MB / 314.8 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/43.54, allocations: 4 kB / 4.745 GB, free: 56.49 MB / 314.8 MB Notification: Performance of simCode: created simulation system equations: time 0.7581/44.3, allocations: 70.89 MB / 4.814 GB, free: 68.59 MB / 314.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008691/44.3, allocations: 0.5405 MB / 4.815 GB, free: 68.57 MB / 314.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7847/45.09, allocations: 85.14 MB / 4.898 GB, free: 62.39 MB / 314.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/45.1, allocations: 4.755 MB / 4.902 GB, free: 61.54 MB / 314.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04446/45.15, allocations: 3.065 MB / 4.905 GB, free: 61.53 MB / 314.8 MB Notification: Performance of SimCode: time 1.523e-06/45.15, allocations: 0 / 4.905 GB, free: 61.53 MB / 314.8 MB Notification: Performance of Templates: time 1.38/46.53, allocations: 349.2 MB / 5.246 GB, free: 37.84 MB / 330.8 MB