Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.908/1.908, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003478, allocations: 16 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.09016, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.09306/0.1833, allocations: 61.72 MB / 370.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.3019/0.4852, allocations: 14.45 MB / 385.2 MB, free: 7.684 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01358/0.4988, allocations: 317.1 kB / 385.6 MB, free: 7.684 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0107/0.5095, allocations: 3.146 MB / 388.7 MB, free: 7.598 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03264/0.5422, allocations: 8.907 MB / 397.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005701/0.548, allocations: 1.005 MB / 398.6 MB, free: 4.957 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.08012/0.6281, allocations: 26.41 MB / 425 MB, free: 6.543 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01389/0.6421, allocations: 6.563 MB / 431.6 MB, free: 1.777 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004968/0.6471, allocations: 1.679 MB / 433.3 MB, free: 448 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005533/0.6527, allocations: 2.26 MB / 435.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0016/0.6544, allocations: 220 kB / 435.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004325/0.6587, allocations: 1.127 MB / 436.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004367/0.6631, allocations: 2.425 MB / 439.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002678/0.6659, allocations: 1.229 MB / 440.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.6792, allocations: 8.164 MB / 448.7 MB, free: 3.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.6793, allocations: 0 / 448.7 MB, free: 3.645 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6793, allocations: 0 / 448.7 MB, free: 3.645 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003304/0.6796, allocations: 0 / 448.7 MB, free: 3.645 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: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.02955/0.7092, allocations: 7.191 MB / 455.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.7093, allocations: 8.031 kB / 455.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.125/0.8343, allocations: 11.2 MB / 467.1 MB, free: 2.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01787/0.8522, allocations: 5.536 MB / 472.6 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004443/0.8527, allocations: 336.6 kB / 473 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002539/0.8553, allocations: 467.8 kB / 473.4 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04305/0.8984, allocations: 14.8 MB / 488.2 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003041/0.8987, allocations: 72.53 kB / 488.3 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001577/0.9003, allocations: 222.8 kB / 488.5 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006225/0.9066, allocations: 2.495 MB / 491 MB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04826/0.9549, allocations: 13.21 MB / 0.4924 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3759/1.331, allocations: 58.39 MB / 0.5494 GB, free: 124.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03077/1.362, allocations: 7.999 MB / 0.5572 GB, free: 123.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02987/1.392, allocations: 12.8 MB / 0.5697 GB, free: 116.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/1.392, allocations: 75.38 kB / 0.5698 GB, free: 116.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=326): time 7.855e-06/1.392, allocations: 3.375 kB / 0.5698 GB, free: 116.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=572): time 4.016/5.407, allocations: 409.2 MB / 0.9694 GB, free: 43.06 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/5.407, allocations: 261.7 kB / 0.9697 GB, free: 42.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/5.419, allocations: 5.87 MB / 0.9754 GB, free: 36.92 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002349/5.421, allocations: 109.7 kB / 0.9755 GB, free: 36.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003315/5.424, allocations: 3.989 MB / 0.9794 GB, free: 32.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003797/5.428, allocations: 2.005 MB / 0.9814 GB, free: 30.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002/5.43, allocations: 187 kB / 0.9815 GB, free: 30.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000504/5.431, allocations: 0.6984 MB / 0.9822 GB, free: 29.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2864/5.717, allocations: 10.83 MB / 0.9928 GB, free: 141 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02785/5.745, allocations: 14.89 MB / 1.007 GB, free: 132.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02671/5.772, allocations: 12.67 MB / 1.02 GB, free: 126.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/5.772, allocations: 41.09 kB / 1.02 GB, free: 126.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.9528/6.725, allocations: 140.3 MB / 1.157 GB, free: 126.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002076/6.725, allocations: 65.84 kB / 1.157 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003696/6.725, allocations: 135.5 kB / 1.157 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1991/6.925, allocations: 34.64 MB / 1.191 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01127/6.936, allocations: 1.475 MB / 1.192 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7964/7.732, allocations: 197.5 MB / 1.385 GB, free: 67.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02269/7.755, allocations: 1.707 MB / 1.387 GB, free: 65.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003138/7.758, allocations: 0.5193 MB / 1.387 GB, free: 65.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 623 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (780): * Single equations (assignments): 773 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01027/7.769, allocations: 3.088 MB / 1.39 GB, free: 62.26 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003209/7.772, allocations: 0.5872 MB / 1.391 GB, free: 61.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.9136/8.686, allocations: 136.4 MB / 1.524 GB, free: 75.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001461/8.686, allocations: 27.89 kB / 1.524 GB, free: 75.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.937e-05/8.686, allocations: 0 / 1.524 GB, free: 75.24 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0115/8.697, allocations: 3.026 MB / 1.527 GB, free: 73.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004585/8.702, allocations: 89.56 kB / 1.527 GB, free: 73.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01778/8.72, allocations: 1.481 MB / 1.529 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006726/8.727, allocations: 0.8242 MB / 1.529 GB, free: 71.28 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1464/8.873, allocations: 42.67 MB / 1.571 GB, free: 33.27 MB / 426.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.3531/9.226, allocations: 31.15 MB / 1.601 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.02276/9.249, allocations: 11.2 MB / 1.612 GB, free: 116.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008274/9.257, allocations: 3.803 MB / 1.616 GB, free: 114.9 MB / 426.7 MB Notification: Performance of Backend: time 1.112e-06/9.257, allocations: 0 / 1.616 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0815/9.339, allocations: 23.4 MB / 1.639 GB, free: 107.5 MB / 426.7 MB Notification: Performance of SimCode: time 0.03968/9.379, allocations: 21.41 MB / 1.66 GB, free: 92.97 MB / 426.7 MB Notification: Performance of Templates: time 0.7534/10.13, allocations: 227.1 MB / 1.882 GB, free: 11.18 MB / 426.7 MB