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.SpringMassSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.941e-05, allocations: 4 kB / 222.5 MB, free: 8.68 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08198/0.08202, allocations: 38.76 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3393/0.4214, allocations: 81.74 MB / 343 MB, free: 6.695 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.4217, allocations: 85.39 kB / 343.1 MB, free: 6.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5151/0.9368, allocations: 81.92 MB / 425 MB, free: 77.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.1e-06/0.9369, allocations: 0 / 425 MB, free: 77.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002143/0.9371, allocations: 78.94 kB / 425.1 MB, free: 77.93 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: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01118/0.9483, allocations: 3.794 MB / 428.9 MB, free: 76.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.9483, allocations: 9.312 kB / 428.9 MB, free: 76.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01408/0.9624, allocations: 2.429 MB / 431.3 MB, free: 76.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01474/0.9772, allocations: 5.03 MB / 436.4 MB, free: 75.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/0.9775, allocations: 131.8 kB / 436.5 MB, free: 75.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.9791, allocations: 239.9 kB / 436.7 MB, free: 75.47 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01211/0.9913, allocations: 5.742 MB / 442.5 MB, free: 75.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01832/1.01, allocations: 8.888 MB / 451.4 MB, free: 72.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002215/1.01, allocations: 63.94 kB / 451.4 MB, free: 72.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001294/1.011, allocations: 32.75 kB / 451.5 MB, free: 72.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001789/1.013, allocations: 0.9837 MB / 452.4 MB, free: 72.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04913/1.062, allocations: 44.59 MB / 497 MB, free: 38.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/1.065, allocations: 1.834 MB / 498.9 MB, free: 37.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/1.066, allocations: 0.7292 MB / 499.6 MB, free: 37.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004825/1.067, allocations: 456.3 kB / 0.4883 GB, free: 36.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/1.067, allocations: 58.27 kB / 0.4884 GB, free: 36.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=130): time 6.064e-06/1.067, allocations: 0 / 0.4884 GB, free: 36.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=142): time 0.01889/1.086, allocations: 6.859 MB / 0.4951 GB, free: 33.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/1.086, allocations: 145.6 kB / 0.4952 GB, free: 32.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005473/1.091, allocations: 2.981 MB / 0.4981 GB, free: 31.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002091/1.091, allocations: 25.7 kB / 0.4981 GB, free: 31.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/1.093, allocations: 3.106 MB / 0.5012 GB, free: 28.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006056/1.094, allocations: 0.5675 MB / 0.5017 GB, free: 27.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004337/1.095, allocations: 3.938 kB / 0.5017 GB, free: 27.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004182/1.095, allocations: 0.5542 MB / 0.5023 GB, free: 27.24 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002925/1.098, allocations: 1.396 MB / 0.5036 GB, free: 25.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004867/1.103, allocations: 5.228 MB / 0.5087 GB, free: 19.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004773/1.108, allocations: 2.704 MB / 0.5114 GB, free: 16.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001043/1.108, allocations: 40 kB / 0.5114 GB, free: 16.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.01325/1.121, allocations: 5.626 MB / 0.5169 GB, free: 11.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/1.121, allocations: 71.95 kB / 0.517 GB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/1.121, allocations: 136 kB / 0.5171 GB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002219/1.122, allocations: 206.7 kB / 0.5173 GB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005458/1.127, allocations: 1.426 MB / 0.5187 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001927/1.127, allocations: 267.1 kB / 0.519 GB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005886/1.133, allocations: 266.1 kB / 0.5192 GB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/1.134, allocations: 371.5 kB / 0.5196 GB, free: 9.297 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 633 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 () * 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.001032/1.135, allocations: 452 kB / 0.52 GB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006199/1.136, allocations: 304.1 kB / 0.5203 GB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/1.138, allocations: 1.009 MB / 0.5213 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.052e-05/1.138, allocations: 16.78 kB / 0.5213 GB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/1.138, allocations: 4 kB / 0.5213 GB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/1.138, allocations: 7.781 kB / 0.5213 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/1.149, allocations: 4.717 MB / 0.5259 GB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.768e-05/1.149, allocations: 16 kB / 0.5259 GB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/1.15, allocations: 260.5 kB / 0.5262 GB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.01e-05/1.15, allocations: 24 kB / 0.5262 GB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/1.15, allocations: 24 kB / 0.5262 GB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-05/1.151, allocations: 31.81 kB / 0.5262 GB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.932e-05/1.151, allocations: 31.83 kB / 0.5263 GB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007576/1.158, allocations: 4.75 MB / 0.5309 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/1.16, allocations: 489.2 kB / 0.5314 GB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006877/1.161, allocations: 27.75 kB / 0.5314 GB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/1.163, allocations: 61.59 kB / 0.5315 GB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003592/1.163, allocations: 141.9 kB / 0.5316 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/1.163, allocations: 63.22 kB / 0.5317 GB, free: 13.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004957/1.168, allocations: 1.971 MB / 0.5336 GB, free: 12.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.078e-06/1.168, allocations: 0 / 0.5336 GB, free: 12.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006777/1.175, allocations: 0.7227 MB / 0.5343 GB, free: 11.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 70 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 132 * 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.0005843/1.176, allocations: 177.7 kB / 0.5345 GB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00716/1.183, allocations: 3.233 MB / 0.5376 GB, free: 8.246 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/1.183, allocations: 4 kB / 0.5376 GB, free: 8.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/1.184, allocations: 0.6553 MB / 0.5383 GB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/1.187, allocations: 337.5 kB / 0.5386 GB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/1.206, allocations: 7.178 MB / 0.5456 GB, free: 216 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2062/1.412, allocations: 3.143 MB / 0.5487 GB, free: 80.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009677/1.413, allocations: 263.1 kB / 0.5489 GB, free: 80.26 MB / 362.7 MB Notification: Performance of SimCode: time 2.013e-06/1.413, allocations: 5.375 kB / 0.5489 GB, free: 80.26 MB / 362.7 MB Notification: Performance of Templates: time 0.07992/1.493, allocations: 47.29 MB / 0.5951 GB, free: 72.44 MB / 362.7 MB