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.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.571/1.571, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003345, allocations: 8 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07798/0.07833, allocations: 38.78 MB / 272.6 MB, free: 11.52 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2731/0.3515, allocations: 45.46 MB / 318.1 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02796/0.3795, allocations: 11.37 MB / 329.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009543/0.3891, allocations: 228.8 kB / 329.7 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007692/0.3968, allocations: 2.293 MB / 332 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02473/0.4216, allocations: 6.551 MB / 338.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00476/0.4264, allocations: 0.9083 MB / 339.4 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.05201/0.4784, allocations: 18.07 MB / 357.5 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01282/0.4913, allocations: 6.539 MB / 364.1 MB, free: 1.496 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002801/0.4942, allocations: 1.351 MB / 365.4 MB, free: 144 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003263/0.4975, allocations: 1.776 MB / 367.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007517/0.4982, allocations: 188 kB / 367.4 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/0.5014, allocations: 1.198 MB / 368.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002642/0.504, allocations: 2.022 MB / 370.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.5055, allocations: 1.041 MB / 371.6 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.5166, allocations: 7.564 MB / 379.2 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5167, allocations: 0 / 379.2 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.5167, allocations: 4 kB / 379.2 MB, free: 2.312 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002043/0.517, allocations: 4 kB / 379.2 MB, free: 2.309 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01735/0.5343, allocations: 5.237 MB / 384.4 MB, free: 13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.5344, allocations: 8.031 kB / 384.4 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08274/0.6171, allocations: 7.95 MB / 392.4 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/0.6304, allocations: 4.223 MB / 396.6 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003275/0.6308, allocations: 303.9 kB / 396.9 MB, free: 448 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001433/0.6322, allocations: 435.6 kB / 397.3 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03428/0.6665, allocations: 12.47 MB / 409.8 MB, free: 2.797 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001908/0.6668, allocations: 47.59 kB / 409.9 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007817/0.6676, allocations: 191.9 kB / 410.1 MB, free: 2.562 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004742/0.6723, allocations: 1.968 MB / 412 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03473/0.7071, allocations: 10.51 MB / 422.5 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2973/1.004, allocations: 44.18 MB / 466.7 MB, free: 100.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02111/1.026, allocations: 4.849 MB / 471.6 MB, free: 99.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01568/1.041, allocations: 7.111 MB / 478.7 MB, free: 95.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.204e-05/1.041, allocations: 53.22 kB / 478.7 MB, free: 95.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 5.891e-06/1.041, allocations: 3.469 kB / 478.7 MB, free: 95.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=223): time 0.1073/1.149, allocations: 19.56 MB / 498.3 MB, free: 82.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/1.149, allocations: 205.9 kB / 498.5 MB, free: 82.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007469/1.156, allocations: 4.694 MB / 0.4914 GB, free: 77.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004545/1.157, allocations: 59.27 kB / 0.4914 GB, free: 77.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002365/1.159, allocations: 3.557 MB / 0.4949 GB, free: 73.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009477/1.16, allocations: 0.8343 MB / 0.4957 GB, free: 72.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004079/1.161, allocations: 128 kB / 0.4959 GB, free: 72.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003425/1.161, allocations: 0.5745 MB / 0.4964 GB, free: 72.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004719/1.166, allocations: 2.191 MB / 0.4986 GB, free: 70.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006335/1.172, allocations: 5.912 MB / 0.5043 GB, free: 62.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007097/1.179, allocations: 3.538 MB / 0.5078 GB, free: 58.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.147e-05/1.179, allocations: 40 kB / 0.5078 GB, free: 58.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.02244/1.202, allocations: 8.955 MB / 0.5166 GB, free: 49.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.727e-05/1.202, allocations: 63.95 kB / 0.5166 GB, free: 49.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/1.202, allocations: 132.9 kB / 0.5168 GB, free: 49.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005895/1.208, allocations: 1.222 MB / 0.518 GB, free: 48.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007664/1.216, allocations: 1.408 MB / 0.5193 GB, free: 46.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01614/1.232, allocations: 7.737 MB / 0.5269 GB, free: 39.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006075/1.238, allocations: 346.6 kB / 0.5272 GB, free: 38.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006749/1.239, allocations: 382.4 kB / 0.5276 GB, free: 38.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * 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 (763): * Single equations (assignments): 759 * 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.004483/1.243, allocations: 2.47 MB / 0.53 GB, free: 35.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008765/1.244, allocations: 402.8 kB / 0.5304 GB, free: 35.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/1.256, allocations: 3.877 MB / 0.5342 GB, free: 31.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.613e-05/1.256, allocations: 15.95 kB / 0.5342 GB, free: 31.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/1.256, allocations: 4.438 kB / 0.5342 GB, free: 31.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002139/1.258, allocations: 0.7339 MB / 0.5349 GB, free: 30.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008299/1.259, allocations: 36 kB / 0.5349 GB, free: 30.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002646/1.261, allocations: 111.1 kB / 0.535 GB, free: 30.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004097/1.262, allocations: 147.8 kB / 0.5352 GB, free: 30.57 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0132/1.275, allocations: 4.349 MB / 0.5394 GB, free: 26.26 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01052/1.286, allocations: 5.622 MB / 0.5449 GB, free: 20.61 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002816/1.288, allocations: 1.474 MB / 0.5464 GB, free: 19.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00553/1.294, allocations: 3.003 MB / 0.5493 GB, free: 16.13 MB / 362.7 MB Notification: Performance of Backend: time 5.91e-07/1.294, allocations: 0 / 0.5493 GB, free: 16.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01099/1.305, allocations: 4.386 MB / 0.5536 GB, free: 11.79 MB / 362.7 MB Notification: Performance of SimCode: time 0.02401/1.329, allocations: 12.96 MB / 0.5662 GB, free: 14.78 MB / 378.7 MB Notification: Performance of Templates: time 0.3657/1.695, allocations: 51.73 MB / 0.6167 GB, free: 112.2 MB / 378.7 MB