Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.00121, allocations: 99.14 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 47.94 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08957/0.09085, allocations: 46.64 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04399/0.1349, allocations: 46.98 MB / 372.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2225/0.3574, allocations: 9.958 MB / 382.9 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01317/0.3707, allocations: 205.2 kB / 383.1 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007286/0.378, allocations: 2.731 MB / 385.8 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007367/0.3854, allocations: 1.838 MB / 387.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002064/0.3875, allocations: 0.7507 MB / 388.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.3977, allocations: 6.528 MB / 395 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006922/0.4046, allocations: 3.543 MB / 398.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004048/0.4087, allocations: 1.521 MB / 400 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004448/0.4132, allocations: 2.51 MB / 402.5 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001674/0.4149, allocations: 257.8 kB / 402.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003618/0.4186, allocations: 1.239 MB / 404 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003098/0.4217, allocations: 2.053 MB / 406.1 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004534/0.4262, allocations: 2.355 MB / 408.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008385/0.4346, allocations: 7.201 MB / 415.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4347, allocations: 8.938 kB / 415.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4347, allocations: 0 / 415.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002369/0.4349, allocations: 0 / 415.6 MB, free: 13.17 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01245/0.4474, allocations: 5.268 MB / 420.9 MB, free: 7.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.4475, allocations: 12.03 kB / 420.9 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00797/0.4554, allocations: 2.107 MB / 423 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006185/0.4617, allocations: 2.596 MB / 425.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.4619, allocations: 283.5 kB / 425.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.4629, allocations: 429.6 kB / 426.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02409/0.487, allocations: 12.21 MB / 438.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001507/0.4872, allocations: 52.31 kB / 438.6 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000636/0.4879, allocations: 180.7 kB / 438.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003238/0.4911, allocations: 2.161 MB / 440.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02396/0.5151, allocations: 10.2 MB / 451.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05664/0.5718, allocations: 44.33 MB / 495.4 MB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01113/0.583, allocations: 4.612 MB / 0.4883 GB, free: 7.258 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002407/0.5854, allocations: 1.724 MB / 0.49 GB, free: 5.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01179/0.5972, allocations: 8.225 MB / 0.4981 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.314e-05/0.5973, allocations: 63.73 kB / 0.4981 GB, free: 12.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=183): time 3.697e-06/0.5973, allocations: 0 / 0.4981 GB, free: 12.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=205): time 0.04241/0.6397, allocations: 15.96 MB / 0.5137 GB, free: 12.78 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00125/0.641, allocations: 1.601 MB / 0.5153 GB, free: 11.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005904/0.6469, allocations: 4.211 MB / 0.5194 GB, free: 6.777 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004559/0.6474, allocations: 57.7 kB / 0.5194 GB, free: 6.715 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/0.6497, allocations: 3.405 MB / 0.5228 GB, free: 3.312 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.6508, allocations: 0.8115 MB / 0.5236 GB, free: 2.508 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001793/0.6526, allocations: 1.355 MB / 0.5249 GB, free: 1.145 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.6527, allocations: 309.1 kB / 0.5252 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003345/0.6561, allocations: 2.262 MB / 0.5274 GB, free: 14.57 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006291/0.6624, allocations: 6.394 MB / 0.5336 GB, free: 6.133 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2166/0.879, allocations: 9.31 MB / 0.5427 GB, free: 169.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001667/0.8792, allocations: 42.47 kB / 0.5428 GB, free: 169.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02596/0.9052, allocations: 10.06 MB / 0.5526 GB, free: 166.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.9054, allocations: 68.38 kB / 0.5526 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01042/0.9158, allocations: 3.8 MB / 0.5564 GB, free: 165.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009579/0.9254, allocations: 2.162 MB / 0.5585 GB, free: 165.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004895/0.9304, allocations: 1.584 MB / 0.56 GB, free: 165.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007164/0.9375, allocations: 6.067 MB / 0.5659 GB, free: 161.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005871/0.9434, allocations: 434.6 kB / 0.5664 GB, free: 161.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001115/0.9446, allocations: 415.8 kB / 0.5667 GB, free: 161.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003943/0.9486, allocations: 2.214 MB / 0.5689 GB, free: 160.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008899/0.9494, allocations: 371 kB / 0.5693 GB, free: 160.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00578/0.9552, allocations: 3.293 MB / 0.5725 GB, free: 158.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004291/0.9595, allocations: 2.748 MB / 0.5752 GB, free: 157 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.9596, allocations: 4 kB / 0.5752 GB, free: 157 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/0.9596, allocations: 9.047 kB / 0.5752 GB, free: 157 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/0.9774, allocations: 10.34 MB / 0.5853 GB, free: 146.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-05/0.9774, allocations: 12 kB / 0.5853 GB, free: 146.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/0.9788, allocations: 367.4 kB / 0.5856 GB, free: 146.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002563/0.9814, allocations: 0.9938 MB / 0.5866 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/0.9816, allocations: 59.97 kB / 0.5867 GB, free: 145 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003803/0.9854, allocations: 4.579 MB / 0.5911 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007144/0.9861, allocations: 1.479 MB / 0.5926 GB, free: 138.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007527/0.9936, allocations: 5.915 MB / 0.5983 GB, free: 132.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/0.9954, allocations: 0.6554 MB / 0.599 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004764/0.9959, allocations: 55.98 kB / 0.599 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.9974, allocations: 155.5 kB / 0.5992 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/0.9977, allocations: 164.4 kB / 0.5993 GB, free: 131.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.9978, allocations: 79.97 kB / 0.5994 GB, free: 131.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003201/1.001, allocations: 2.617 MB / 0.602 GB, free: 128.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.001, allocations: 0 / 0.602 GB, free: 128.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004956/1.006, allocations: 1.16 MB / 0.6031 GB, free: 127.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004108/1.006, allocations: 218 kB / 0.6033 GB, free: 127.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008373/1.015, allocations: 5.987 MB / 0.6092 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/1.015, allocations: 0 / 0.6092 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003183/1.018, allocations: 2.185 MB / 0.6113 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002881/1.021, allocations: 487.8 kB / 0.6118 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/1.037, allocations: 12.94 MB / 0.6244 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003058/1.04, allocations: 3.459 MB / 0.6278 GB, free: 102.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004409/1.044, allocations: 2.024 MB / 0.6298 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006861/1.045, allocations: 271.4 kB / 0.63 GB, free: 99.86 MB / 462.1 MB Notification: Performance of SimCode: time 1.031e-06/1.045, allocations: 4 kB / 0.63 GB, free: 99.86 MB / 462.1 MB Notification: Performance of Templates: time 0.06582/1.111, allocations: 40.7 MB / 0.6698 GB, free: 59.2 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)