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.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.65/1.65, allocations: 171.2 MB / 186.7 MB, free: 1.113 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.0003422, allocations: 8 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07699/0.07735, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2936/0.371, allocations: 61.7 MB / 334.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.03885/0.4099, allocations: 14.42 MB / 348.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01292/0.4229, allocations: 319.2 kB / 349.1 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01112/0.434, allocations: 3.146 MB / 352.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03349/0.4676, allocations: 8.902 MB / 361.1 MB, free: 4.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005753/0.4734, allocations: 1.003 MB / 362.1 MB, free: 3.426 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.07694/0.5503, allocations: 26.4 MB / 388.5 MB, free: 8.992 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01302/0.5634, allocations: 6.559 MB / 395.1 MB, free: 2.375 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003573/0.567, allocations: 1.674 MB / 396.7 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004375/0.5714, allocations: 2.263 MB / 399 MB, free: 14.43 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009896/0.5724, allocations: 216 kB / 399.2 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003174/0.5756, allocations: 1.128 MB / 400.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003279/0.5789, allocations: 2.416 MB / 402.8 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001798/0.5808, allocations: 1.228 MB / 404 MB, free: 9.426 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.5932, allocations: 8.14 MB / 412.1 MB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.5932, allocations: 3.938 kB / 412.1 MB, free: 1.262 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.5933, allocations: 0 / 412.1 MB, free: 1.262 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000289/0.5936, allocations: 3.938 kB / 412.1 MB, free: 1.258 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: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.02927/0.6228, allocations: 7.181 MB / 419.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.6229, allocations: 12.03 kB / 419.3 MB, free: 9.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1208/0.7437, allocations: 11.2 MB / 430.5 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01741/0.7612, allocations: 5.534 MB / 436.1 MB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003657/0.7616, allocations: 336.6 kB / 436.4 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001659/0.7632, allocations: 463.5 kB / 436.8 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2545/1.018, allocations: 14.78 MB / 451.6 MB, free: 123.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002931/1.018, allocations: 69.62 kB / 451.7 MB, free: 123.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001032/1.019, allocations: 215.8 kB / 451.9 MB, free: 123.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005917/1.025, allocations: 2.496 MB / 454.4 MB, free: 123.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03963/1.065, allocations: 13.2 MB / 467.6 MB, free: 118.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09086/1.156, allocations: 58.32 MB / 0.5136 GB, free: 61.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02954/1.185, allocations: 7.994 MB / 0.5214 GB, free: 53.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02804/1.213, allocations: 12.81 MB / 0.5339 GB, free: 40.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.266e-05/1.213, allocations: 68.7 kB / 0.534 GB, free: 40.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=326): time 8.266e-06/1.213, allocations: 0 / 0.534 GB, free: 40.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=572): time 4.224/5.437, allocations: 409.2 MB / 0.9336 GB, free: 35.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/5.437, allocations: 269.6 kB / 0.9339 GB, free: 34.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/5.448, allocations: 5.871 MB / 0.9396 GB, free: 29.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002395/5.451, allocations: 113.7 kB / 0.9397 GB, free: 28.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003308/5.454, allocations: 3.999 MB / 0.9436 GB, free: 25.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003804/5.458, allocations: 1.999 MB / 0.9456 GB, free: 23.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002132/5.46, allocations: 184 kB / 0.9457 GB, free: 23.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005437/5.461, allocations: 0.6984 MB / 0.9464 GB, free: 22.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02248/5.483, allocations: 10.84 MB / 0.957 GB, free: 11.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2544/5.738, allocations: 14.89 MB / 0.9715 GB, free: 97.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02835/5.766, allocations: 12.67 MB / 0.9839 GB, free: 92.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001643/5.766, allocations: 38.59 kB / 0.9839 GB, free: 92.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.8825/6.649, allocations: 140.3 MB / 1.121 GB, free: 91.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/6.649, allocations: 69.14 kB / 1.121 GB, free: 91.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/6.649, allocations: 137.8 kB / 1.121 GB, free: 91.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1502/6.799, allocations: 34.64 MB / 1.155 GB, free: 68.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008351/6.808, allocations: 1.482 MB / 1.156 GB, free: 67.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7013/7.509, allocations: 197.5 MB / 1.349 GB, free: 21.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02179/7.531, allocations: 1.705 MB / 1.351 GB, free: 19.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002674/7.534, allocations: 0.5279 MB / 1.351 GB, free: 19.21 MB / 378.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.009039/7.543, allocations: 3.085 MB / 1.354 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002511/7.545, allocations: 0.5885 MB / 1.355 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.8642/8.409, allocations: 136.4 MB / 1.488 GB, free: 18.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001412/8.41, allocations: 27.89 kB / 1.488 GB, free: 18.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/8.41, allocations: 4.875 kB / 1.488 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0105/8.42, allocations: 3.018 MB / 1.491 GB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003662/8.424, allocations: 95.69 kB / 1.491 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01669/8.441, allocations: 1.478 MB / 1.493 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006302/8.447, allocations: 0.8188 MB / 1.494 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.4025/8.849, allocations: 42.68 MB / 1.535 GB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.06699/8.917, allocations: 31.15 MB / 1.566 GB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.02145/8.938, allocations: 11.2 MB / 1.577 GB, free: 62.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007551/8.946, allocations: 3.807 MB / 1.58 GB, free: 59.4 MB / 378.7 MB Notification: Performance of Backend: time 1.282e-06/8.946, allocations: 0 / 1.58 GB, free: 59.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.08092/9.027, allocations: 23.41 MB / 1.603 GB, free: 38.42 MB / 378.7 MB Notification: Performance of SimCode: time 0.0376/9.064, allocations: 21.39 MB / 1.624 GB, free: 17.01 MB / 378.7 MB Notification: Performance of Templates: time 0.9853/10.05, allocations: 227.1 MB / 1.846 GB, free: 68.47 MB / 394.7 MB