Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.65/1.65, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003305, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07759/0.07794, allocations: 38.78 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2801/0.3581, allocations: 43.88 MB / 316.5 MB, free: 7.996 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02691/0.3851, allocations: 10.74 MB / 327.3 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009796/0.3949, allocations: 218.6 kB / 327.5 MB, free: 2.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007664/0.4026, allocations: 2.236 MB / 329.7 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02412/0.4268, allocations: 6.463 MB / 336.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004272/0.4311, allocations: 0.8601 MB / 337 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.05326/0.4844, allocations: 18.62 MB / 355.6 MB, free: 9.945 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00984/0.4943, allocations: 5.01 MB / 360.7 MB, free: 4.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003315/0.4977, allocations: 1.565 MB / 362.2 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004295/0.502, allocations: 2.278 MB / 364.5 MB, free: 1.035 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001073/0.5031, allocations: 236 kB / 364.7 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00342/0.5065, allocations: 1.163 MB / 365.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003437/0.51, allocations: 2.385 MB / 368.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001777/0.5118, allocations: 1.201 MB / 369.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.5243, allocations: 8.11 MB / 377.6 MB, free: 3.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.5243, allocations: 0 / 377.6 MB, free: 3.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5244, allocations: 0 / 377.6 MB, free: 3.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002512/0.5246, allocations: 0 / 377.6 MB, free: 3.91 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02233/0.547, allocations: 6.484 MB / 384.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.547, allocations: 8.031 kB / 384.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09573/0.6428, allocations: 9.758 MB / 393.8 MB, free: 3.551 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01506/0.6579, allocations: 4.627 MB / 398.5 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003408/0.6583, allocations: 315.9 kB / 398.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001769/0.66, allocations: 435.6 kB / 399.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03924/0.6993, allocations: 15.75 MB / 414.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002055/0.6996, allocations: 63.42 kB / 415 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001006/0.7006, allocations: 207.8 kB / 415.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008059/0.7086, allocations: 3.153 MB / 418.4 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0426/0.7513, allocations: 14.03 MB / 432.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3547/1.106, allocations: 57.43 MB / 489.8 MB, free: 85.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02165/1.128, allocations: 6.573 MB / 496.4 MB, free: 81.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03281/1.161, allocations: 14.45 MB / 0.4989 GB, free: 71.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/1.161, allocations: 63.19 kB / 0.4989 GB, free: 70.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.675e-06/1.161, allocations: 0 / 0.4989 GB, free: 70.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.2618/1.422, allocations: 42.81 MB / 0.5407 GB, free: 28.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.702e-05/1.423, allocations: 214 kB / 0.5409 GB, free: 27.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009162/1.432, allocations: 5.689 MB / 0.5465 GB, free: 22.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009685/1.433, allocations: 78.41 kB / 0.5466 GB, free: 22.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003124/1.436, allocations: 4.405 MB / 0.5509 GB, free: 17.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001794/1.438, allocations: 1.241 MB / 0.5521 GB, free: 16.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008267/1.439, allocations: 176 kB / 0.5522 GB, free: 16.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004568/1.439, allocations: 0.674 MB / 0.5529 GB, free: 15.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009741/1.449, allocations: 4.581 MB / 0.5574 GB, free: 10.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2428/1.692, allocations: 9.497 MB / 0.5667 GB, free: 111.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01552/1.707, allocations: 6.456 MB / 0.573 GB, free: 110 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001773/1.708, allocations: 49.34 kB / 0.573 GB, free: 110 MB / 362.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.07061/1.778, allocations: 18.88 MB / 0.5914 GB, free: 104 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/1.778, allocations: 78.5 kB / 0.5915 GB, free: 104 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000228/1.779, allocations: 173.2 kB / 0.5917 GB, free: 104 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04022/1.819, allocations: 5.831 MB / 0.5974 GB, free: 101.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01223/1.831, allocations: 2.043 MB / 0.5994 GB, free: 99.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04838/1.879, allocations: 24.93 MB / 0.6237 GB, free: 74.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01017/1.89, allocations: 0.547 MB / 0.6243 GB, free: 73.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001337/1.891, allocations: 0.5 MB / 0.6247 GB, free: 73.16 MB / 362.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.006465/1.898, allocations: 3.086 MB / 0.6278 GB, free: 70.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/1.899, allocations: 0.4964 MB / 0.6282 GB, free: 69.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05167/1.951, allocations: 12.6 MB / 0.6405 GB, free: 57.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.833e-05/1.951, allocations: 19.94 kB / 0.6406 GB, free: 57.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/1.951, allocations: 11.31 kB / 0.6406 GB, free: 57.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004386/1.955, allocations: 1.297 MB / 0.6418 GB, free: 55.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/1.957, allocations: 48.94 kB / 0.6419 GB, free: 55.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00516/1.962, allocations: 258.2 kB / 0.6421 GB, free: 55.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000977/1.963, allocations: 201.7 kB / 0.6423 GB, free: 55.48 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03365/1.996, allocations: 10.21 MB / 0.6523 GB, free: 45.27 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02333/2.02, allocations: 12.56 MB / 0.6646 GB, free: 32.63 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006503/2.026, allocations: 3.546 MB / 0.668 GB, free: 29.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006601/2.033, allocations: 3.584 MB / 0.6715 GB, free: 25.51 MB / 362.7 MB Notification: Performance of Backend: time 9.52e-07/2.033, allocations: 4 kB / 0.6715 GB, free: 25.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01822/2.051, allocations: 7.528 MB / 0.6789 GB, free: 18.02 MB / 362.7 MB Notification: Performance of SimCode: time 0.02938/2.081, allocations: 15.95 MB / 0.6944 GB, free: 2.039 MB / 362.7 MB Notification: Performance of Templates: time 0.4527/2.533, allocations: 85.65 MB / 0.7781 GB, free: 63.79 MB / 378.7 MB