Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadModel(Modelica): time 1.836/1.836, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003727, allocations: 8 kB / 233.8 MB, free: 0.9688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.08808, allocations: 38.78 MB / 272.6 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3868/0.4749, allocations: 85.25 MB / 357.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003571/0.4754, allocations: 91.95 kB / 357.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5506/1.026, allocations: 72.16 MB / 430.1 MB, free: 80.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.026, allocations: 0 / 430.1 MB, free: 80.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002309/1.026, allocations: 64.16 kB / 430.1 MB, free: 80.82 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01476/1.041, allocations: 3.562 MB / 433.7 MB, free: 79.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/1.041, allocations: 9.125 kB / 433.7 MB, free: 79.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/1.057, allocations: 2.08 MB / 435.8 MB, free: 78.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0157/1.073, allocations: 4.038 MB / 439.8 MB, free: 78.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003046/1.074, allocations: 261.6 kB / 440.1 MB, free: 78.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00189/1.075, allocations: 343.8 kB / 440.4 MB, free: 78.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02354/1.099, allocations: 8.893 MB / 449.3 MB, free: 75.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002143/1.099, allocations: 53.88 kB / 449.3 MB, free: 75.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001091/1.1, allocations: 172.6 kB / 449.5 MB, free: 75.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001806/1.102, allocations: 0.8706 MB / 450.4 MB, free: 75.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/1.123, allocations: 7.159 MB / 457.5 MB, free: 74.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05607/1.179, allocations: 42.6 MB / 0.4884 GB, free: 40.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/1.191, allocations: 3.171 MB / 0.4915 GB, free: 39.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01382/1.204, allocations: 4.078 MB / 0.4955 GB, free: 37.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/1.205, allocations: 50.28 kB / 0.4955 GB, free: 37.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=114): time 5.23e-06/1.205, allocations: 4 kB / 0.4955 GB, free: 37.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.0468/1.251, allocations: 11.56 MB / 0.5068 GB, free: 27.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/1.251, allocations: 149 kB / 0.507 GB, free: 27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007773/1.259, allocations: 3.691 MB / 0.5106 GB, free: 23.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003617/1.26, allocations: 41.7 kB / 0.5106 GB, free: 23.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002438/1.262, allocations: 2.68 MB / 0.5132 GB, free: 21.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008777/1.263, allocations: 0.5007 MB / 0.5137 GB, free: 20.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006825/1.264, allocations: 100 kB / 0.5138 GB, free: 20.53 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003312/1.264, allocations: 0.5338 MB / 0.5143 GB, free: 19.99 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003938/1.268, allocations: 1.665 MB / 0.516 GB, free: 18.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006245/1.274, allocations: 5.071 MB / 0.5209 GB, free: 11.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006501/1.281, allocations: 2.843 MB / 0.5237 GB, free: 8.676 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/1.281, allocations: 36 kB / 0.5237 GB, free: 8.641 MB / 346.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.0168/1.298, allocations: 6.517 MB / 0.5301 GB, free: 2.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/1.298, allocations: 56 kB / 0.5301 GB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/1.298, allocations: 120 kB / 0.5303 GB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009942/1.299, allocations: 340.7 kB / 0.5306 GB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007615/1.307, allocations: 1.267 MB / 0.5318 GB, free: 344 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004089/1.311, allocations: 2.387 MB / 0.5342 GB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006363/1.317, allocations: 283.5 kB / 0.5344 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002016/1.32, allocations: 328 kB / 0.5347 GB, free: 13.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008332/1.328, allocations: 1.783 MB / 0.5365 GB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.329, allocations: 308 kB / 0.5368 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/1.343, allocations: 2.319 MB / 0.539 GB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.078e-05/1.343, allocations: 16 kB / 0.5391 GB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/1.343, allocations: 4 kB / 0.5391 GB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.632e-05/1.343, allocations: 7.984 kB / 0.5391 GB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0286/1.372, allocations: 5.846 MB / 0.5448 GB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.244e-05/1.372, allocations: 0 / 0.5448 GB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/1.374, allocations: 163.8 kB / 0.5449 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0055/1.38, allocations: 0.7108 MB / 0.5456 GB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003227/1.38, allocations: 23.62 kB / 0.5456 GB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2666/1.647, allocations: 4.548 MB / 0.5501 GB, free: 84.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.647, allocations: 3.719 kB / 0.5501 GB, free: 84.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01216/1.659, allocations: 4.265 MB / 0.5543 GB, free: 84.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001926/1.661, allocations: 0.532 MB / 0.5548 GB, free: 84.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006027/1.661, allocations: 20.45 kB / 0.5548 GB, free: 84.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/1.663, allocations: 64.89 kB / 0.5549 GB, free: 84.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003037/1.664, allocations: 61.41 kB / 0.5549 GB, free: 84.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/1.664, allocations: 34.5 kB / 0.5549 GB, free: 84.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006055/1.67, allocations: 2.309 MB / 0.5572 GB, free: 84.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.62e-07/1.67, allocations: 3 kB / 0.5572 GB, free: 84.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006456/1.676, allocations: 0.8062 MB / 0.558 GB, free: 84.11 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (90): * Single equations (assignments): 86 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005491/1.677, allocations: 164.1 kB / 0.5582 GB, free: 84.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009324/1.686, allocations: 3.95 MB / 0.562 GB, free: 83.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/1.686, allocations: 0 / 0.562 GB, free: 83.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002335/1.689, allocations: 1.084 MB / 0.5631 GB, free: 83.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/1.692, allocations: 352.8 kB / 0.5634 GB, free: 83.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01895/1.711, allocations: 8.883 MB / 0.5721 GB, free: 80.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004563/1.715, allocations: 2.837 MB / 0.5748 GB, free: 79.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/1.717, allocations: 242.2 kB / 0.5751 GB, free: 79.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/1.717, allocations: 3.812 kB / 0.5751 GB, free: 79.64 MB / 362.7 MB Notification: Performance of Templates: time 0.111/1.828, allocations: 60.86 MB / 0.6345 GB, free: 44.92 MB / 362.7 MB