Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) 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.595/1.595, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003612, allocations: 8 kB / 233.2 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07148/0.07187, allocations: 38.78 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.247/0.3189, allocations: 28.3 MB / 300.2 MB, free: 7.703 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01769/0.3367, allocations: 7.378 MB / 307.6 MB, free: 7.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006447/0.3432, allocations: 142.8 kB / 307.8 MB, free: 7.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004767/0.348, allocations: 1.393 MB / 309.1 MB, free: 7.383 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02001/0.368, allocations: 4.136 MB / 313.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004553/0.3726, allocations: 0.5091 MB / 313.8 MB, free: 6.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.007732/0.3804, allocations: 1.924 MB / 315.7 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.3907, allocations: 2.91 MB / 318.6 MB, free: 5.207 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00312/0.3939, allocations: 0.8533 MB / 319.5 MB, free: 4.914 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003634/0.3976, allocations: 1.126 MB / 320.6 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.3987, allocations: 112.1 kB / 320.7 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004157/0.4029, allocations: 0.82 MB / 321.5 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003278/0.4062, allocations: 1.277 MB / 322.8 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001825/0.4081, allocations: 0.6895 MB / 323.5 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.4194, allocations: 4.418 MB / 327.9 MB, free: 1.367 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.475e-06/0.4195, allocations: 7.938 kB / 327.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.87e-06/0.4195, allocations: 0 / 327.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000208/0.4197, allocations: 2.062 kB / 327.9 MB, free: 1.359 MB / 250.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.01681/0.4366, allocations: 3.403 MB / 331.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.637e-05/0.4367, allocations: 12.03 kB / 331.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/0.4481, allocations: 2.103 MB / 333.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005324/0.4534, allocations: 2.134 MB / 335.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002507/0.4537, allocations: 182.8 kB / 335.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.4549, allocations: 253.3 kB / 336 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01999/0.4749, allocations: 8.399 MB / 344.4 MB, free: 2.551 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001498/0.4751, allocations: 35.66 kB / 344.4 MB, free: 2.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006618/0.4757, allocations: 123.6 kB / 344.6 MB, free: 2.426 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003418/0.4792, allocations: 1.626 MB / 346.2 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0188/0.498, allocations: 7.043 MB / 353.2 MB, free: 9.754 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05545/0.5535, allocations: 33.88 MB / 387.1 MB, free: 7.062 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009832/0.5634, allocations: 3.15 MB / 390.3 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009071/0.5725, allocations: 4.054 MB / 394.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.5726, allocations: 39.12 kB / 394.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 4.949e-06/0.5726, allocations: 4 kB / 394.4 MB, free: 15.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.03964/0.6123, allocations: 11.6 MB / 406 MB, free: 3.727 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.6124, allocations: 141.1 kB / 406.1 MB, free: 3.559 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007788/0.6202, allocations: 3.815 MB / 409.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002593/0.6205, allocations: 41.7 kB / 409.9 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003001/0.6235, allocations: 2.67 MB / 412.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008521/0.6244, allocations: 0.5006 MB / 413.1 MB, free: 12.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004496/0.6249, allocations: 100 kB / 413.2 MB, free: 12.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000504/0.6254, allocations: 0.5337 MB / 413.8 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003888/0.6293, allocations: 1.669 MB / 415.4 MB, free: 10.24 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007394/0.6367, allocations: 5.065 MB / 420.5 MB, free: 3.457 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006195/0.643, allocations: 2.852 MB / 423.3 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001134/0.6431, allocations: 36 kB / 423.4 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01671/0.6598, allocations: 6.511 MB / 429.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001339/0.66, allocations: 56 kB / 429.9 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001884/0.6602, allocations: 124 kB / 430.1 MB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009238/0.6612, allocations: 345.5 kB / 430.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00551/0.6667, allocations: 1.224 MB / 431.6 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003774/0.6705, allocations: 2.357 MB / 434 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005134/0.6757, allocations: 283.7 kB / 434.3 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/0.6767, allocations: 328 kB / 434.6 MB, free: 5.215 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (654): * Single equations (assignments): 650 * 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.004252/0.681, allocations: 1.773 MB / 436.3 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007889/0.6818, allocations: 308 kB / 436.6 MB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006437/0.6882, allocations: 2.342 MB / 439 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-05/0.6883, allocations: 16 kB / 439 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/0.6884, allocations: 4 kB / 439 MB, free: 0.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-05/0.6884, allocations: 3.984 kB / 439 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2089/0.8973, allocations: 5.84 MB / 444.9 MB, free: 121.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/0.8974, allocations: 3 kB / 444.9 MB, free: 121.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.8987, allocations: 162.3 kB / 445 MB, free: 121.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003377/0.9021, allocations: 0.7165 MB / 445.7 MB, free: 121.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002381/0.9023, allocations: 24.14 kB / 445.8 MB, free: 121.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007522/0.9099, allocations: 4.576 MB / 450.3 MB, free: 119.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.567e-06/0.9099, allocations: 1.656 kB / 450.3 MB, free: 119.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008695/0.9186, allocations: 4.276 MB / 454.6 MB, free: 117.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001521/0.9202, allocations: 0.5338 MB / 455.1 MB, free: 117.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006606/0.9209, allocations: 18.8 kB / 455.2 MB, free: 117.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/0.9227, allocations: 70.91 kB / 455.2 MB, free: 117.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002787/0.923, allocations: 61.84 kB / 455.3 MB, free: 117.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.9232, allocations: 37.88 kB / 455.3 MB, free: 117.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004831/0.928, allocations: 2.396 MB / 457.7 MB, free: 116.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.127e-06/0.9281, allocations: 0 / 457.7 MB, free: 116.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005494/0.9336, allocations: 0.8224 MB / 458.5 MB, free: 116.4 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.0005716/0.9342, allocations: 162.8 kB / 458.7 MB, free: 116.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00748/0.9417, allocations: 3.97 MB / 462.7 MB, free: 114.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.639e-06/0.9417, allocations: 0 / 462.7 MB, free: 114.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.9438, allocations: 1.09 MB / 463.8 MB, free: 114.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/0.9462, allocations: 367.5 kB / 464.1 MB, free: 114.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01573/0.962, allocations: 8.909 MB / 473 MB, free: 108.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004661/0.9667, allocations: 2.841 MB / 475.9 MB, free: 105.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.9677, allocations: 243.4 kB / 476.1 MB, free: 105.7 MB / 362.7 MB Notification: Performance of SimCode: time 1.794e-06/0.9677, allocations: 0 / 476.1 MB, free: 105.7 MB / 362.7 MB Notification: Performance of Templates: time 0.08469/1.052, allocations: 61.25 MB / 0.5248 GB, free: 44.4 MB / 362.7 MB