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.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.892/1.892, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003648, allocations: 12 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08076/0.08115, allocations: 44.5 MB / 308.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.08824/0.1694, allocations: 61.73 MB / 370.1 MB, free: 3.145 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.2614/0.4309, allocations: 14.45 MB / 384.5 MB, free: 7.035 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01474/0.4457, allocations: 322.7 kB / 384.9 MB, free: 7.031 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01001/0.4557, allocations: 3.151 MB / 388 MB, free: 7.027 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02979/0.4855, allocations: 8.903 MB / 396.9 MB, free: 4.855 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004816/0.4904, allocations: 0.9951 MB / 397.9 MB, free: 4.605 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.05185/0.5423, allocations: 26.43 MB / 424.3 MB, free: 6.465 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0132/0.5555, allocations: 6.56 MB / 430.9 MB, free: 1.707 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004099/0.5597, allocations: 1.685 MB / 432.6 MB, free: 372 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004587/0.5643, allocations: 2.271 MB / 434.8 MB, free: 14.49 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001294/0.5657, allocations: 216 kB / 435.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003651/0.5693, allocations: 1.12 MB / 436.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003935/0.5733, allocations: 2.43 MB / 438.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002253/0.5756, allocations: 1.227 MB / 439.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01297/0.5886, allocations: 8.169 MB / 448 MB, free: 3.562 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.211e-06/0.5887, allocations: 0 / 448 MB, free: 3.562 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.827e-06/0.5887, allocations: 0 / 448 MB, free: 3.562 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002365/0.589, allocations: 0 / 448 MB, free: 3.562 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.02212/0.6111, allocations: 7.187 MB / 455.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.6111, allocations: 8.031 kB / 455.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07492/0.6861, allocations: 11.2 MB / 466.4 MB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01447/0.7006, allocations: 5.532 MB / 471.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004097/0.701, allocations: 342 kB / 472.3 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001931/0.703, allocations: 471.5 kB / 472.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03648/0.7395, allocations: 14.84 MB / 487.6 MB, free: 1.164 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002858/0.7398, allocations: 72.75 kB / 487.6 MB, free: 1.094 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001187/0.741, allocations: 218.8 kB / 487.9 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004964/0.746, allocations: 2.496 MB / 490.3 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03672/0.7828, allocations: 13.21 MB / 0.4918 GB, free: 1.199 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3958/1.179, allocations: 58.38 MB / 0.5488 GB, free: 124.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02642/1.205, allocations: 8 MB / 0.5566 GB, free: 122.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02538/1.231, allocations: 12.8 MB / 0.5691 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/1.231, allocations: 67.05 kB / 0.5691 GB, free: 116 MB / 426.7 MB Notification: Performance of pre-optimization done (n=326): time 8.149e-06/1.231, allocations: 2.297 kB / 0.5691 GB, free: 116 MB / 426.7 MB Notification: Performance of matching and sorting (n=572): time 2.423/3.653, allocations: 409.2 MB / 0.9688 GB, free: 41.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/3.653, allocations: 264.9 kB / 0.969 GB, free: 40.94 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01271/3.666, allocations: 5.868 MB / 0.9748 GB, free: 35.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001785/3.668, allocations: 111 kB / 0.9749 GB, free: 34.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002884/3.671, allocations: 3.78 MB / 0.9786 GB, free: 31.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003301/3.674, allocations: 2.006 MB / 0.9805 GB, free: 29.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002011/3.676, allocations: 184 kB / 0.9807 GB, free: 29.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006628/3.677, allocations: 0.7032 MB / 0.9814 GB, free: 28.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2826/3.96, allocations: 10.83 MB / 0.992 GB, free: 140.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0263/3.986, allocations: 14.93 MB / 1.007 GB, free: 131.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02334/4.009, allocations: 12.66 MB / 1.019 GB, free: 126 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/4.01, allocations: 42.53 kB / 1.019 GB, free: 126 MB / 426.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.647/4.656, allocations: 140.1 MB / 1.156 GB, free: 125.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/4.657, allocations: 67.47 kB / 1.156 GB, free: 125.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/4.657, allocations: 137.2 kB / 1.156 GB, free: 125.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1093/4.766, allocations: 34.65 MB / 1.19 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006069/4.772, allocations: 1.475 MB / 1.191 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6081/5.38, allocations: 197.5 MB / 1.384 GB, free: 65.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01479/5.395, allocations: 1.705 MB / 1.386 GB, free: 63.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00258/5.398, allocations: 0.5199 MB / 1.386 GB, free: 63.06 MB / 426.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.008304/5.406, allocations: 3.088 MB / 1.389 GB, free: 60.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002407/5.409, allocations: 0.5797 MB / 1.39 GB, free: 59.85 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6329/6.042, allocations: 136.4 MB / 1.523 GB, free: 73.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.149e-05/6.042, allocations: 60.55 kB / 1.523 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001614/6.042, allocations: 56 kB / 1.523 GB, free: 73.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/6.042, allocations: 32.97 kB / 1.523 GB, free: 73.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7044/6.746, allocations: 206.1 MB / 1.724 GB, free: 28.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.606e-05/6.747, allocations: 9.078 kB / 1.724 GB, free: 28.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00186/6.748, allocations: 331.5 kB / 1.725 GB, free: 28.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3367/7.085, allocations: 33.75 MB / 1.758 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001921/7.087, allocations: 105.5 kB / 1.758 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5825/7.67, allocations: 180.5 MB / 1.934 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.145e-05/7.67, allocations: 13.44 kB / 1.934 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6668/8.336, allocations: 152.2 MB / 2.083 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008318/8.345, allocations: 3.023 MB / 2.086 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003024/8.348, allocations: 100.5 kB / 2.086 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01155/8.359, allocations: 1.484 MB / 2.087 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004274/8.364, allocations: 0.4897 MB / 2.088 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001659/8.365, allocations: 144.5 kB / 2.088 GB, free: 108.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007764/8.373, allocations: 3.806 MB / 2.092 GB, free: 107.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.254e-06/8.373, allocations: 0 / 2.092 GB, free: 107.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01651/8.39, allocations: 3.819 MB / 2.095 GB, free: 106.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * 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%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.002106/8.392, allocations: 259.5 kB / 2.096 GB, free: 106.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.07005/8.462, allocations: 33.33 MB / 2.128 GB, free: 79.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.886e-06/8.462, allocations: 0 / 2.128 GB, free: 79.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04845/8.511, allocations: 20.46 MB / 2.148 GB, free: 59.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005571/8.516, allocations: 0.7117 MB / 2.149 GB, free: 58.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0521/8.568, allocations: 30.28 MB / 2.178 GB, free: 28.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009542/8.578, allocations: 5.249 MB / 2.183 GB, free: 22.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/8.579, allocations: 363.4 kB / 2.184 GB, free: 22.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.794e-06/8.579, allocations: 0 / 2.184 GB, free: 22.52 MB / 426.7 MB Notification: Performance of Templates: time 0.86/9.44, allocations: 242.7 MB / 2.421 GB, free: 95.66 MB / 442.7 MB