Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadModel(ModelicaTest): time 1.897/1.897, allocations: 209.3 MB / 224.8 MB, free: 1.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.000434, allocations: 15.98 kB / 282.5 MB, free: 9.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.08523, allocations: 48.71 MB / 331.2 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.2491/0.3344, allocations: 34.92 MB / 366.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02244/0.3569, allocations: 8.661 MB / 374.8 MB, free: 5.641 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008325/0.3652, allocations: 172.7 kB / 374.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005785/0.3711, allocations: 1.749 MB / 376.7 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0183/0.3894, allocations: 5.075 MB / 381.8 MB, free: 1.227 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003148/0.3926, allocations: 0.668 MB / 382.4 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005855/0.3985, allocations: 2.557 MB / 385 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007908/0.4064, allocations: 4.092 MB / 389.1 MB, free: 11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.4086, allocations: 1.059 MB / 390.1 MB, free: 9.941 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/0.411, allocations: 1.503 MB / 391.6 MB, free: 8.434 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005147/0.4116, allocations: 148 kB / 391.8 MB, free: 8.289 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001891/0.4135, allocations: 0.7061 MB / 392.5 MB, free: 7.582 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002095/0.4156, allocations: 1.555 MB / 394.1 MB, free: 6.023 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.4168, allocations: 0.8115 MB / 394.9 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007825/0.4247, allocations: 5.172 MB / 400 MB, free: 16 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.8e-06/0.4247, allocations: 4 kB / 400 MB, free: 12 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.722e-06/0.4247, allocations: 0 / 400 MB, free: 12 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001136/0.4248, allocations: 0 / 400 MB, free: 12 kB / 314.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.008902/0.4338, allocations: 3.96 MB / 404 MB, free: 11.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.4338, allocations: 11.97 kB / 404 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.4447, allocations: 2.283 MB / 406.3 MB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006601/0.4513, allocations: 2.751 MB / 409 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000314/0.4517, allocations: 246.1 kB / 409.3 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001032/0.4527, allocations: 323.7 kB / 409.6 MB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02179/0.4745, allocations: 10.05 MB / 419.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001597/0.4747, allocations: 51.53 kB / 419.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000561/0.4753, allocations: 155.8 kB / 419.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003744/0.4791, allocations: 1.868 MB / 421.7 MB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.021/0.5001, allocations: 8.017 MB / 429.7 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05881/0.5589, allocations: 38.93 MB / 468.7 MB, free: 9.273 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009994/0.569, allocations: 3.071 MB / 471.7 MB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/0.5794, allocations: 5.204 MB / 476.9 MB, free: 0.5742 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.609e-05/0.5795, allocations: 51.16 kB / 477 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 5.249e-06/0.5795, allocations: 0 / 477 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.02896/0.6084, allocations: 9.284 MB / 486.3 MB, free: 7.059 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.6086, allocations: 145.5 kB / 486.4 MB, free: 6.883 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0086/0.6172, allocations: 4.258 MB / 490.7 MB, free: 2.598 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002144/0.6175, allocations: 41.7 kB / 490.7 MB, free: 2.551 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003262/0.6207, allocations: 3.081 MB / 493.8 MB, free: 15.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008503/0.6216, allocations: 0.5943 MB / 494.4 MB, free: 14.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003995/0.6221, allocations: 116 kB / 494.5 MB, free: 14.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005259/0.6226, allocations: 0.5664 MB / 495.1 MB, free: 14.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003875/0.6265, allocations: 1.573 MB / 496.6 MB, free: 12.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007789/0.6343, allocations: 5.414 MB / 0.4903 GB, free: 5.215 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006317/0.6407, allocations: 2.848 MB / 0.4931 GB, free: 2.367 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000113/0.6408, allocations: 40 kB / 0.4931 GB, free: 2.328 MB / 426.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.2392/0.8801, allocations: 6.585 MB / 0.4995 GB, free: 134.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.8802, allocations: 63.25 kB / 0.4996 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002007/0.8805, allocations: 136.9 kB / 0.4997 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.8808, allocations: 201 kB / 0.4999 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005731/0.8865, allocations: 1.395 MB / 0.5013 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00036/0.8869, allocations: 263.8 kB / 0.5015 GB, free: 134.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005212/0.8922, allocations: 292.7 kB / 0.5018 GB, free: 134.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009082/0.8931, allocations: 370.6 kB / 0.5022 GB, free: 134.1 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.003778/0.8969, allocations: 2.017 MB / 0.5041 GB, free: 133.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006235/0.8975, allocations: 342.1 kB / 0.5045 GB, free: 133.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002609/0.9002, allocations: 1.249 MB / 0.5057 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/0.9002, allocations: 21.2 kB / 0.5057 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.9002, allocations: 4.422 kB / 0.5057 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.9003, allocations: 5.953 kB / 0.5057 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01211/0.9124, allocations: 5.536 MB / 0.5111 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.433e-05/0.9125, allocations: 14.88 kB / 0.5111 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.9137, allocations: 259.7 kB / 0.5114 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.605e-05/0.9138, allocations: 27.06 kB / 0.5114 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.9139, allocations: 46.58 kB / 0.5115 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.632e-05/0.9139, allocations: 37.3 kB / 0.5115 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-05/0.914, allocations: 25.84 kB / 0.5115 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004457/0.9184, allocations: 3.083 MB / 0.5145 GB, free: 128.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.9196, allocations: 0.5285 MB / 0.515 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004187/0.92, allocations: 43.8 kB / 0.5151 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.9215, allocations: 59.64 kB / 0.5151 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.9217, allocations: 130.7 kB / 0.5153 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/0.9218, allocations: 62.56 kB / 0.5153 GB, free: 128.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004511/0.9264, allocations: 2.672 MB / 0.5179 GB, free: 127.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.6e-07/0.9264, allocations: 0 / 0.5179 GB, free: 127.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005597/0.932, allocations: 0.8958 MB / 0.5188 GB, free: 127.2 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.0004514/0.9325, allocations: 211.1 kB / 0.519 GB, free: 127.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006602/0.9391, allocations: 3.634 MB / 0.5226 GB, free: 125.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.58e-05/0.9392, allocations: 5.688 kB / 0.5226 GB, free: 125.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.9404, allocations: 0.6959 MB / 0.5232 GB, free: 125.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.9429, allocations: 418.7 kB / 0.5236 GB, free: 125.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01587/0.9588, allocations: 10.61 MB / 0.534 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003906/0.9627, allocations: 3.214 MB / 0.5371 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008566/0.9636, allocations: 286.9 kB / 0.5374 GB, free: 114.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.671e-06/0.9636, allocations: 0 / 0.5374 GB, free: 114.9 MB / 426.7 MB Notification: Performance of Templates: time 0.07194/1.036, allocations: 51.43 MB / 0.5876 GB, free: 63.71 MB / 426.7 MB