Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.584/1.584, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003529, allocations: 8 kB / 233.2 MB, free: 3.039 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07066/0.07104, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2425/0.3136, allocations: 45.45 MB / 317.4 MB, free: 7.293 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02695/0.3406, allocations: 11.39 MB / 328.8 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01127/0.352, allocations: 231.2 kB / 329 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007156/0.3592, allocations: 2.287 MB / 331.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02402/0.3832, allocations: 6.543 MB / 337.8 MB, free: 11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004368/0.3876, allocations: 0.9142 MB / 338.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.03916/0.4268, allocations: 18.08 MB / 356.8 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01243/0.4393, allocations: 6.533 MB / 363.4 MB, free: 1.859 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003217/0.4426, allocations: 1.351 MB / 364.7 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003572/0.4462, allocations: 1.776 MB / 366.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009794/0.4472, allocations: 188 kB / 366.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003392/0.4506, allocations: 1.202 MB / 367.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003213/0.4539, allocations: 2.03 MB / 369.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001748/0.4557, allocations: 1.038 MB / 370.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01158/0.4673, allocations: 7.567 MB / 378.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.4673, allocations: 0 / 378.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.4674, allocations: 0 / 378.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001905/0.4676, allocations: 0 / 378.5 MB, free: 2.668 MB / 298.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.01434/0.4819, allocations: 5.246 MB / 383.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.482, allocations: 8.031 kB / 383.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0532/0.5352, allocations: 7.947 MB / 391.7 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0114/0.5466, allocations: 4.231 MB / 395.9 MB, free: 1.086 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004235/0.5471, allocations: 299.9 kB / 396.2 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001695/0.5488, allocations: 439.6 kB / 396.7 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03181/0.5806, allocations: 12.49 MB / 409.2 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002092/0.5809, allocations: 51.58 kB / 409.2 MB, free: 3.074 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001104/0.582, allocations: 183.9 kB / 409.4 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004004/0.586, allocations: 1.976 MB / 411.4 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02961/0.6157, allocations: 10.51 MB / 421.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2704/0.8861, allocations: 44.19 MB / 466.1 MB, free: 99.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02216/0.9083, allocations: 4.833 MB / 470.9 MB, free: 98.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.922, allocations: 7.114 MB / 478 MB, free: 94.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.949e-05/0.922, allocations: 47.44 kB / 478.1 MB, free: 94.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 6.385e-06/0.9221, allocations: 0 / 478.1 MB, free: 94.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=223): time 0.09637/1.018, allocations: 19.57 MB / 497.6 MB, free: 82.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/1.019, allocations: 209.9 kB / 497.8 MB, free: 81.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007009/1.026, allocations: 4.694 MB / 0.4907 GB, free: 77.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003599/1.026, allocations: 58.64 kB / 0.4908 GB, free: 77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/1.028, allocations: 3.428 MB / 0.4941 GB, free: 73.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008634/1.029, allocations: 0.8342 MB / 0.495 GB, free: 72.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004105/1.029, allocations: 133.2 kB / 0.4951 GB, free: 72.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003359/1.03, allocations: 0.5788 MB / 0.4957 GB, free: 72.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004228/1.034, allocations: 2.195 MB / 0.4978 GB, free: 69.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00946/1.043, allocations: 5.928 MB / 0.5036 GB, free: 62.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/1.055, allocations: 3.55 MB / 0.507 GB, free: 58.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001771/1.055, allocations: 36 kB / 0.5071 GB, free: 58.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.0353/1.09, allocations: 8.796 MB / 0.5157 GB, free: 49.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001748/1.09, allocations: 64 kB / 0.5157 GB, free: 49.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000239/1.091, allocations: 128 kB / 0.5159 GB, free: 49.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00892/1.1, allocations: 1.222 MB / 0.517 GB, free: 48.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005422/1.105, allocations: 1.411 MB / 0.5184 GB, free: 46.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/1.118, allocations: 7.739 MB / 0.526 GB, free: 39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005539/1.124, allocations: 339.5 kB / 0.5263 GB, free: 38.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008892/1.125, allocations: 373.2 kB / 0.5267 GB, free: 38.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * 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 (763): * Single equations (assignments): 759 * 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.004643/1.129, allocations: 2.483 MB / 0.5291 GB, free: 35.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008263/1.13, allocations: 406.8 kB / 0.5295 GB, free: 35.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009033/1.139, allocations: 3.869 MB / 0.5333 GB, free: 31.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.945e-05/1.139, allocations: 24 kB / 0.5333 GB, free: 31.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/1.139, allocations: 17.95 kB / 0.5333 GB, free: 31.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.854e-05/1.139, allocations: 7.969 kB / 0.5333 GB, free: 31.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02647/1.166, allocations: 10.2 MB / 0.5433 GB, free: 21.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.912e-05/1.166, allocations: 8.125 kB / 0.5433 GB, free: 21.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003975/1.17, allocations: 339.5 kB / 0.5436 GB, free: 20.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007944/1.178, allocations: 0.9917 MB / 0.5446 GB, free: 19.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005643/1.179, allocations: 40 kB / 0.5446 GB, free: 19.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02242/1.201, allocations: 6.425 MB / 0.5509 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/1.201, allocations: 4.062 kB / 0.5509 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02548/1.227, allocations: 6.603 MB / 0.5573 GB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003741/1.231, allocations: 0.7378 MB / 0.558 GB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/1.232, allocations: 36 kB / 0.5581 GB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004487/1.236, allocations: 111.9 kB / 0.5582 GB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007077/1.237, allocations: 149.6 kB / 0.5583 GB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004059/1.238, allocations: 60 kB / 0.5584 GB, free: 5.441 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.009996/1.248, allocations: 2.995 MB / 0.5613 GB, free: 2.445 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.027e-06/1.248, allocations: 0 / 0.5613 GB, free: 2.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006404/1.254, allocations: 1.189 MB / 0.5625 GB, free: 1.266 MB / 362.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 (173): * Single equations (assignments): 169 * 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.0007137/1.255, allocations: 235.3 kB / 0.5627 GB, free: 1.035 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01145/1.266, allocations: 5.456 MB / 0.568 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.7e-06/1.266, allocations: 1.938 kB / 0.568 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004055/1.27, allocations: 1.831 MB / 0.5698 GB, free: 9.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/1.274, allocations: 0.5041 MB / 0.5703 GB, free: 9.242 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2225/1.496, allocations: 13.55 MB / 0.5835 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008214/1.505, allocations: 3.977 MB / 0.5874 GB, free: 128.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/1.506, allocations: 317.2 kB / 0.5877 GB, free: 128.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.569e-06/1.506, allocations: 0 / 0.5877 GB, free: 128.5 MB / 378.7 MB Notification: Performance of Templates: time 0.124/1.63, allocations: 87.13 MB / 0.6728 GB, free: 55.29 MB / 378.7 MB