Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadModel(ModelicaTest): time 2.143/2.143, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004296/0.0004299, allocations: 8 kB / 314.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2913, allocations: 54.87 MB / 369.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.05137/0.3427, allocations: 34.94 MB / 404.1 MB, free: 9.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02237/0.3651, allocations: 8.677 MB / 412.8 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006611/0.3718, allocations: 175.6 kB / 413 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005393/0.3772, allocations: 1.746 MB / 414.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01711/0.3944, allocations: 5.077 MB / 419.8 MB, free: 9.875 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002932/0.3973, allocations: 0.6591 MB / 420.5 MB, free: 9.215 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005427/0.4028, allocations: 2.558 MB / 423 MB, free: 6.652 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008053/0.4109, allocations: 4.104 MB / 427.1 MB, free: 2.488 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002565/0.4135, allocations: 1.059 MB / 428.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002975/0.4165, allocations: 1.499 MB / 429.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008643/0.4174, allocations: 148 kB / 429.8 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002321/0.4198, allocations: 0.71 MB / 430.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002527/0.4223, allocations: 1.551 MB / 432.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.4238, allocations: 0.8154 MB / 432.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007953/0.4318, allocations: 5.168 MB / 438.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.4319, allocations: 0 / 438.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4319, allocations: 0 / 438.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001305/0.432, allocations: 0 / 438.1 MB, free: 7.508 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.008928/0.441, allocations: 3.972 MB / 442 MB, free: 3.469 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.441, allocations: 8.031 kB / 442 MB, free: 3.461 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01077/0.4518, allocations: 2.283 MB / 444.3 MB, free: 1.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006772/0.4586, allocations: 2.762 MB / 447.1 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003427/0.459, allocations: 242.1 kB / 447.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/0.4603, allocations: 319.7 kB / 447.6 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02347/0.4838, allocations: 10.06 MB / 457.7 MB, free: 2.973 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001619/0.484, allocations: 43.59 kB / 457.7 MB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006865/0.4847, allocations: 155.9 kB / 457.9 MB, free: 2.777 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00387/0.4886, allocations: 1.872 MB / 459.8 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02204/0.5106, allocations: 8.016 MB / 467.8 MB, free: 8.863 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05982/0.5705, allocations: 38.93 MB / 0.4948 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2589/0.8295, allocations: 3.065 MB / 0.4978 GB, free: 121.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008928/0.8385, allocations: 5.191 MB / 0.5029 GB, free: 118.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.8386, allocations: 54.33 kB / 0.5029 GB, free: 118.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 5.087e-06/0.8386, allocations: 3.906 kB / 0.5029 GB, free: 118.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=146): time 0.02731/0.8659, allocations: 9.273 MB / 0.512 GB, free: 114.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.866, allocations: 144.7 kB / 0.5121 GB, free: 114 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006156/0.8722, allocations: 4.254 MB / 0.5163 GB, free: 111.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001823/0.8724, allocations: 51.11 kB / 0.5163 GB, free: 111.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001628/0.874, allocations: 3.08 MB / 0.5193 GB, free: 108.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004662/0.8745, allocations: 0.5851 MB / 0.5199 GB, free: 108 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/0.8748, allocations: 120.9 kB / 0.52 GB, free: 107.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002997/0.8751, allocations: 0.5626 MB / 0.5206 GB, free: 107.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002831/0.8779, allocations: 1.577 MB / 0.5221 GB, free: 105.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004191/0.8821, allocations: 5.41 MB / 0.5274 GB, free: 98.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004547/0.8867, allocations: 2.858 MB / 0.5302 GB, free: 95.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.585e-05/0.8868, allocations: 44 kB / 0.5302 GB, free: 95.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.01207/0.8989, allocations: 6.58 MB / 0.5367 GB, free: 88.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.899, allocations: 65.7 kB / 0.5367 GB, free: 88.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/0.8992, allocations: 139.9 kB / 0.5369 GB, free: 88.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001952/0.8994, allocations: 200.8 kB / 0.5371 GB, free: 88.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004713/0.9041, allocations: 1.396 MB / 0.5384 GB, free: 87.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000186/0.9043, allocations: 267 kB / 0.5387 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004566/0.9089, allocations: 289 kB / 0.5389 GB, free: 86.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006613/0.9096, allocations: 369.2 kB / 0.5393 GB, free: 86.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 622 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (750): * Single equations (assignments): 747 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003501/0.9131, allocations: 2.015 MB / 0.5413 GB, free: 84.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006195/0.9137, allocations: 355.4 kB / 0.5416 GB, free: 83.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002417/0.9162, allocations: 1.242 MB / 0.5428 GB, free: 82.67 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.202e-05/0.9162, allocations: 19.98 kB / 0.5428 GB, free: 82.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.9163, allocations: 0 / 0.5428 GB, free: 82.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.9163, allocations: 11.98 kB / 0.5428 GB, free: 82.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/0.9267, allocations: 5.526 MB / 0.5482 GB, free: 76.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-05/0.9268, allocations: 17.78 kB / 0.5483 GB, free: 76.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.928, allocations: 255.6 kB / 0.5485 GB, free: 76.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-05/0.928, allocations: 28 kB / 0.5485 GB, free: 76.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.9281, allocations: 53.52 kB / 0.5486 GB, free: 76.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.198e-05/0.9282, allocations: 27.88 kB / 0.5486 GB, free: 76.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.494e-05/0.9282, allocations: 19.94 kB / 0.5486 GB, free: 76.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003919/0.9321, allocations: 3.082 MB / 0.5516 GB, free: 73.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.9332, allocations: 0.5238 MB / 0.5522 GB, free: 72.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004054/0.9337, allocations: 52.8 kB / 0.5522 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/0.9352, allocations: 57.72 kB / 0.5523 GB, free: 72.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.9353, allocations: 139.4 kB / 0.5524 GB, free: 72.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.9355, allocations: 60.94 kB / 0.5524 GB, free: 72.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00443/0.9399, allocations: 2.672 MB / 0.5551 GB, free: 69.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.301e-06/0.9399, allocations: 3.938 kB / 0.5551 GB, free: 69.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005593/0.9455, allocations: 0.8966 MB / 0.5559 GB, free: 68.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (133): * Single equations (assignments): 130 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004698/0.946, allocations: 212.5 kB / 0.5561 GB, free: 68.53 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006503/0.9526, allocations: 3.632 MB / 0.5597 GB, free: 64.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.782e-05/0.9526, allocations: 7.984 kB / 0.5597 GB, free: 64.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.9539, allocations: 0.6906 MB / 0.5604 GB, free: 64.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002372/0.9562, allocations: 427.1 kB / 0.5608 GB, free: 63.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/0.9719, allocations: 10.61 MB / 0.5711 GB, free: 52.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003971/0.9759, allocations: 3.211 MB / 0.5743 GB, free: 49.72 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008598/0.9768, allocations: 287.4 kB / 0.5745 GB, free: 49.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.582e-06/0.9768, allocations: 4 kB / 0.5745 GB, free: 49.43 MB / 426.7 MB Notification: Performance of Templates: time 0.1106/1.087, allocations: 51.45 MB / 0.6248 GB, free: 13.97 MB / 442.7 MB