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.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003535, allocations: 8 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/0.09078, allocations: 44.52 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.068/0.1588, allocations: 43.88 MB / 353 MB, free: 4.352 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02851/0.1874, allocations: 10.77 MB / 363.7 MB, free: 9.543 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007911/0.1953, allocations: 219.4 kB / 363.9 MB, free: 9.328 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00758/0.203, allocations: 2.232 MB / 366.2 MB, free: 7.086 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02351/0.2265, allocations: 6.464 MB / 372.6 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.2601/0.4866, allocations: 0.8468 MB / 373.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.05038/0.5371, allocations: 18.62 MB / 392.1 MB, free: 8.316 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008989/0.5461, allocations: 4.987 MB / 397.1 MB, free: 7.918 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003249/0.5494, allocations: 1.569 MB / 398.7 MB, free: 7.832 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0042/0.5536, allocations: 2.277 MB / 400.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001238/0.5549, allocations: 237 kB / 401.2 MB, free: 7.305 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003307/0.5582, allocations: 1.15 MB / 402.3 MB, free: 7.055 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003052/0.5613, allocations: 2.401 MB / 404.7 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001642/0.563, allocations: 1.199 MB / 405.9 MB, free: 5.402 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01071/0.5737, allocations: 8.108 MB / 414 MB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.5738, allocations: 4 kB / 414 MB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.5738, allocations: 0 / 414 MB, free: 14.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002905/0.5741, allocations: 0 / 414 MB, free: 14.34 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02241/0.5965, allocations: 6.471 MB / 420.5 MB, free: 8.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.5966, allocations: 8.031 kB / 420.5 MB, free: 8.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09516/0.6918, allocations: 9.758 MB / 430.3 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01499/0.7068, allocations: 4.63 MB / 434.9 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003324/0.7072, allocations: 314 kB / 435.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001987/0.7092, allocations: 434.2 kB / 435.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03921/0.7484, allocations: 15.75 MB / 451.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000198/0.7486, allocations: 57.39 kB / 451.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009827/0.7496, allocations: 203.4 kB / 451.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007962/0.7576, allocations: 3.158 MB / 454.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04202/0.7997, allocations: 14.03 MB / 468.8 MB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1075/0.9072, allocations: 57.43 MB / 0.5139 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02373/0.931, allocations: 6.564 MB / 0.5203 GB, free: 3.852 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2843/1.215, allocations: 14.45 MB / 0.5344 GB, free: 152.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.319e-05/1.215, allocations: 68.41 kB / 0.5345 GB, free: 152.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.865e-06/1.215, allocations: 0 / 0.5345 GB, free: 152.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.2543/1.47, allocations: 42.79 MB / 0.5763 GB, free: 124.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.291e-05/1.47, allocations: 214 kB / 0.5765 GB, free: 124.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00906/1.479, allocations: 5.695 MB / 0.5821 GB, free: 118.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009/1.48, allocations: 75.19 kB / 0.5821 GB, free: 118.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003016/1.483, allocations: 4.401 MB / 0.5864 GB, free: 114 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001806/1.485, allocations: 1.244 MB / 0.5876 GB, free: 112.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008404/1.486, allocations: 173.7 kB / 0.5878 GB, free: 112.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004573/1.486, allocations: 0.6779 MB / 0.5885 GB, free: 111.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01134/1.497, allocations: 4.585 MB / 0.5929 GB, free: 107.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0183/1.516, allocations: 9.498 MB / 0.6022 GB, free: 95.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01865/1.534, allocations: 6.464 MB / 0.6085 GB, free: 88.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000134/1.535, allocations: 48 kB / 0.6086 GB, free: 88.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.07893/1.614, allocations: 18.87 MB / 0.627 GB, free: 69.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/1.614, allocations: 76 kB / 0.6271 GB, free: 69.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/1.614, allocations: 176 kB / 0.6272 GB, free: 69.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03946/1.653, allocations: 5.83 MB / 0.6329 GB, free: 63.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01225/1.666, allocations: 2.043 MB / 0.6349 GB, free: 61.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04923/1.715, allocations: 24.93 MB / 0.6593 GB, free: 36.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/1.725, allocations: 0.5461 MB / 0.6598 GB, free: 36.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001422/1.727, allocations: 0.496 MB / 0.6603 GB, free: 35.53 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 788 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1054): * Single equations (assignments): 1046 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006543/1.733, allocations: 3.084 MB / 0.6633 GB, free: 32.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.734, allocations: 0.4975 MB / 0.6638 GB, free: 31.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3333/2.068, allocations: 12.6 MB / 0.6761 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.89e-05/2.068, allocations: 16.34 kB / 0.6761 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/2.068, allocations: 4 kB / 0.6761 GB, free: 138 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004891/2.073, allocations: 1.297 MB / 0.6774 GB, free: 137.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001825/2.075, allocations: 52.05 kB / 0.6774 GB, free: 137.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00526/2.08, allocations: 255.1 kB / 0.6777 GB, free: 137.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/2.081, allocations: 201.9 kB / 0.6779 GB, free: 137.9 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03588/2.117, allocations: 10.21 MB / 0.6878 GB, free: 135.9 MB / 426.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02474/2.142, allocations: 12.56 MB / 0.7001 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006849/2.149, allocations: 3.537 MB / 0.7035 GB, free: 129.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00704/2.156, allocations: 3.59 MB / 0.7071 GB, free: 128.2 MB / 426.7 MB Notification: Performance of Backend: time 2.344e-06/2.156, allocations: 0 / 0.7071 GB, free: 128.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01865/2.174, allocations: 7.545 MB / 0.7144 GB, free: 125.3 MB / 426.7 MB Notification: Performance of SimCode: time 0.02987/2.204, allocations: 15.93 MB / 0.73 GB, free: 110.6 MB / 426.7 MB Notification: Performance of Templates: time 0.2009/2.405, allocations: 85.67 MB / 0.8136 GB, free: 24.86 MB / 426.7 MB