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.695/1.695, allocations: 171.2 MB / 186.8 MB, free: 1.105 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003545, allocations: 8 kB / 233.2 MB, free: 0.9141 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07081/0.07119, allocations: 38.77 MB / 272 MB, free: 10.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3111/0.3824, allocations: 92.06 MB / 364.1 MB, free: 6.938 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.3827, allocations: 87.95 kB / 364.2 MB, free: 6.852 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5891/0.9718, allocations: 110.4 MB / 474.5 MB, free: 75.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.9719, allocations: 0 / 474.5 MB, free: 75.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003223/0.9722, allocations: 104.8 kB / 474.6 MB, free: 75.4 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.01653/0.9887, allocations: 5.366 MB / 480 MB, free: 71.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.9888, allocations: 7.156 kB / 480 MB, free: 71.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03338/1.022, allocations: 6.899 MB / 486.9 MB, free: 65.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01857/1.041, allocations: 6.772 MB / 493.7 MB, free: 58.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004242/1.041, allocations: 395.5 kB / 494 MB, free: 57.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002064/1.043, allocations: 0.5157 MB / 494.6 MB, free: 57.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03116/1.075, allocations: 12.63 MB / 0.4953 GB, free: 43.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000337/1.075, allocations: 71.36 kB / 0.4954 GB, free: 43.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002075/1.077, allocations: 236.8 kB / 0.4956 GB, free: 43.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001816/1.079, allocations: 1.051 MB / 0.4966 GB, free: 42.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02608/1.105, allocations: 10.51 MB / 0.5069 GB, free: 32.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2893/1.394, allocations: 50.08 MB / 0.5558 GB, free: 37.28 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01728/1.412, allocations: 4.809 MB / 0.5605 GB, free: 36.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/1.426, allocations: 7.059 MB / 0.5674 GB, free: 34.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/1.426, allocations: 54.78 kB / 0.5674 GB, free: 34.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=179): time 6.676e-06/1.426, allocations: 2.281 kB / 0.5675 GB, free: 34.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=224): time 0.09167/1.518, allocations: 20.3 MB / 0.5873 GB, free: 31.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/1.518, allocations: 204.9 kB / 0.5875 GB, free: 31.08 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008313/1.527, allocations: 3.916 MB / 0.5913 GB, free: 30.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004159/1.527, allocations: 58.58 kB / 0.5913 GB, free: 30.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002536/1.53, allocations: 3.441 MB / 0.5947 GB, free: 28.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.531, allocations: 0.8403 MB / 0.5955 GB, free: 28.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005747/1.531, allocations: 126.7 kB / 0.5957 GB, free: 28.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003949/1.532, allocations: 0.5727 MB / 0.5962 GB, free: 27.81 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004765/1.536, allocations: 2.161 MB / 0.5983 GB, free: 27.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006556/1.543, allocations: 5.89 MB / 0.6041 GB, free: 21.49 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006732/1.55, allocations: 3.519 MB / 0.6075 GB, free: 20.22 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/1.55, allocations: 38.81 kB / 0.6075 GB, free: 20.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02209/1.572, allocations: 8.597 MB / 0.6159 GB, free: 17.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/1.572, allocations: 63.03 kB / 0.616 GB, free: 17.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001683/1.572, allocations: 133 kB / 0.6161 GB, free: 17.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005234/1.578, allocations: 1.054 MB / 0.6172 GB, free: 17.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005876/1.584, allocations: 1.414 MB / 0.6185 GB, free: 16.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/1.596, allocations: 7.115 MB / 0.6255 GB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006225/1.602, allocations: 334.8 kB / 0.6258 GB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00127/1.604, allocations: 376.5 kB / 0.6262 GB, free: 9.398 MB / 346.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.005779/1.61, allocations: 2.488 MB / 0.6286 GB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008903/1.61, allocations: 402.1 kB / 0.629 GB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0092/1.62, allocations: 3.65 MB / 0.6325 GB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.304e-05/1.62, allocations: 29.5 kB / 0.6326 GB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.915e-05/1.62, allocations: 11.95 kB / 0.6326 GB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.132e-05/1.62, allocations: 8.859 kB / 0.6326 GB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02684/1.647, allocations: 9.876 MB / 0.6422 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.469e-05/1.647, allocations: 8 kB / 0.6422 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002236/1.649, allocations: 355.9 kB / 0.6426 GB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003919/1.653, allocations: 0.7988 MB / 0.6434 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004095/1.653, allocations: 43.52 kB / 0.6434 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/1.666, allocations: 5.831 MB / 0.6491 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/1.666, allocations: 7.938 kB / 0.6491 GB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01629/1.682, allocations: 7.012 MB / 0.656 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002564/1.685, allocations: 0.7066 MB / 0.6566 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001089/1.686, allocations: 43.62 kB / 0.6567 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002699/1.689, allocations: 99.89 kB / 0.6568 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005917/1.689, allocations: 141.1 kB / 0.6569 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002572/1.69, allocations: 69.11 kB / 0.657 GB, free: 13.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007083/1.697, allocations: 2.761 MB / 0.6597 GB, free: 10.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.77e-07/1.697, allocations: 0 / 0.6597 GB, free: 10.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008091/1.705, allocations: 1.175 MB / 0.6608 GB, free: 9.355 MB / 378.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.000842/1.706, allocations: 230.3 kB / 0.661 GB, free: 9.137 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01214/1.718, allocations: 5.383 MB / 0.6663 GB, free: 3.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.91e-06/1.718, allocations: 0 / 0.6663 GB, free: 3.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004147/1.722, allocations: 1.794 MB / 0.6681 GB, free: 1.965 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003525/1.726, allocations: 0.5099 MB / 0.6686 GB, free: 1.469 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/1.756, allocations: 13.5 MB / 0.6817 GB, free: 3.871 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2336/1.989, allocations: 3.971 MB / 0.6856 GB, free: 107.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002491/1.992, allocations: 316 kB / 0.6859 GB, free: 107.3 MB / 394.7 MB Notification: Performance of SimCode: time 3.613e-06/1.992, allocations: 0 / 0.6859 GB, free: 107.3 MB / 394.7 MB Notification: Performance of Templates: time 0.1924/2.185, allocations: 86.44 MB / 0.7703 GB, free: 65.11 MB / 394.7 MB