Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.000364, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08086, allocations: 44.52 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.06127/0.1422, allocations: 45.47 MB / 353.8 MB, free: 3.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02854/0.1708, allocations: 11.39 MB / 365.2 MB, free: 8 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008911/0.1797, allocations: 231.4 kB / 365.4 MB, free: 7.773 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007272/0.187, allocations: 2.306 MB / 367.8 MB, free: 5.457 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2466/0.4337, allocations: 6.538 MB / 374.3 MB, free: 9.531 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004038/0.4378, allocations: 0.8947 MB / 375.2 MB, free: 9.527 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.03446/0.4723, allocations: 18.09 MB / 393.3 MB, free: 7.527 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01016/0.4825, allocations: 6.518 MB / 399.8 MB, free: 6.477 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002801/0.4853, allocations: 1.351 MB / 401.1 MB, free: 6.234 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003053/0.4884, allocations: 1.774 MB / 402.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009845/0.4895, allocations: 186.2 kB / 403.1 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003257/0.4928, allocations: 1.2 MB / 404.3 MB, free: 5.191 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002657/0.4955, allocations: 2.028 MB / 406.3 MB, free: 3.75 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001554/0.4971, allocations: 1.041 MB / 407.4 MB, free: 3.387 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.5087, allocations: 7.564 MB / 414.9 MB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.5088, allocations: 4 kB / 414.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.988e-06/0.5088, allocations: 0 / 414.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002581/0.5091, allocations: 4 kB / 414.9 MB, free: 12.8 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.02618/0.5353, allocations: 5.236 MB / 420.2 MB, free: 7.938 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.87e-05/0.5354, allocations: 12.03 kB / 420.2 MB, free: 7.926 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08223/0.6177, allocations: 7.944 MB / 428.1 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01095/0.6287, allocations: 4.219 MB / 432.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003484/0.6291, allocations: 303.9 kB / 432.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001599/0.6307, allocations: 443.5 kB / 433.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02994/0.6606, allocations: 12.49 MB / 445.6 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001956/0.6609, allocations: 54.38 kB / 445.6 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008067/0.6617, allocations: 187.2 kB / 445.8 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003848/0.6656, allocations: 1.975 MB / 447.8 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02821/0.6938, allocations: 10.51 MB / 458.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07366/0.7675, allocations: 44.18 MB / 0.4907 GB, free: 1.664 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01733/0.7849, allocations: 4.842 MB / 0.4954 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01574/0.8007, allocations: 7.118 MB / 0.5024 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.702e-05/0.8008, allocations: 51.56 kB / 0.5024 GB, free: 5.297 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 5.395e-06/0.8008, allocations: 0 / 0.5024 GB, free: 5.297 MB / 410.7 MB Notification: Performance of matching and sorting (n=223): time 0.08688/0.8877, allocations: 19.56 MB / 0.5215 GB, free: 1.699 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.8879, allocations: 204.9 kB / 0.5217 GB, free: 1.457 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.227/1.115, allocations: 4.691 MB / 0.5263 GB, free: 157.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003883/1.115, allocations: 58.55 kB / 0.5264 GB, free: 157.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002802/1.118, allocations: 3.428 MB / 0.5297 GB, free: 155.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001148/1.119, allocations: 0.8327 MB / 0.5305 GB, free: 155 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005933/1.12, allocations: 124.9 kB / 0.5306 GB, free: 154.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005069/1.121, allocations: 0.5753 MB / 0.5312 GB, free: 154.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005127/1.126, allocations: 2.201 MB / 0.5334 GB, free: 153.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007018/1.133, allocations: 5.928 MB / 0.5391 GB, free: 148 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006951/1.14, allocations: 3.549 MB / 0.5426 GB, free: 146.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001728/1.14, allocations: 35.44 kB / 0.5426 GB, free: 146.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.02201/1.162, allocations: 8.81 MB / 0.5512 GB, free: 143.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/1.162, allocations: 63.36 kB / 0.5513 GB, free: 143.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001764/1.162, allocations: 131.6 kB / 0.5514 GB, free: 143.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004815/1.167, allocations: 1.218 MB / 0.5526 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006031/1.173, allocations: 1.414 MB / 0.554 GB, free: 142.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/1.188, allocations: 7.729 MB / 0.5616 GB, free: 136.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006039/1.194, allocations: 335.5 kB / 0.5619 GB, free: 136.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/1.195, allocations: 384.9 kB / 0.5622 GB, free: 136.1 MB / 426.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.005079/1.2, allocations: 2.479 MB / 0.5647 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009153/1.201, allocations: 402.8 kB / 0.565 GB, free: 133.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009197/1.21, allocations: 3.869 MB / 0.5688 GB, free: 129.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.841e-05/1.21, allocations: 28.62 kB / 0.5689 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.093e-05/1.21, allocations: 10.88 kB / 0.5689 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.885e-05/1.21, allocations: 7.969 kB / 0.5689 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02318/1.234, allocations: 10.2 MB / 0.5788 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.058e-05/1.234, allocations: 4 kB / 0.5788 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001959/1.236, allocations: 347.4 kB / 0.5792 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004024/1.24, allocations: 0.985 MB / 0.5801 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003566/1.24, allocations: 44 kB / 0.5802 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/1.251, allocations: 6.421 MB / 0.5864 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.027e-06/1.251, allocations: 12 kB / 0.5864 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01336/1.265, allocations: 6.596 MB / 0.5929 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003671/1.268, allocations: 0.7349 MB / 0.5936 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/1.27, allocations: 40 kB / 0.5936 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00463/1.275, allocations: 113.4 kB / 0.5938 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007756/1.275, allocations: 144.9 kB / 0.5939 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003533/1.276, allocations: 63.98 kB / 0.594 GB, free: 103.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005994/1.282, allocations: 2.991 MB / 0.5969 GB, free: 100.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.16e-06/1.282, allocations: 0 / 0.5969 GB, free: 100.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006653/1.288, allocations: 1.192 MB / 0.598 GB, free: 99.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 169 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007033/1.289, allocations: 224.2 kB / 0.5983 GB, free: 98.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009648/1.299, allocations: 5.461 MB / 0.6036 GB, free: 93.47 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.283e-06/1.299, allocations: 0 / 0.6036 GB, free: 93.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00323/1.302, allocations: 1.83 MB / 0.6054 GB, free: 91.63 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00302/1.305, allocations: 0.5069 MB / 0.6059 GB, free: 91.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02271/1.328, allocations: 13.55 MB / 0.6191 GB, free: 77.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005658/1.334, allocations: 3.968 MB / 0.623 GB, free: 73.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/1.335, allocations: 331.3 kB / 0.6233 GB, free: 73.15 MB / 426.7 MB Notification: Performance of SimCode: time 1.709e-06/1.335, allocations: 0 / 0.6233 GB, free: 73.15 MB / 426.7 MB Notification: Performance of Templates: time 0.3501/1.685, allocations: 87.13 MB / 0.7084 GB, free: 124.1 MB / 426.7 MB