Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001352/0.001352, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001772/0.001772, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.4 MB / 222.1 MB, free: 5.539 MB / 174.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.000638/0.000638, allocations: 8 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2653, allocations: 47.58 MB / 326.4 MB, free: 1.473 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.03869/0.304, allocations: 40.18 MB / 366.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02276/0.3268, allocations: 9.851 MB / 376.5 MB, free: 1.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01185/0.3387, allocations: 199.5 kB / 376.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01051/0.3493, allocations: 1.964 MB / 378.6 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02104/0.3704, allocations: 5.809 MB / 384.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003458/0.3738, allocations: 0.6864 MB / 385.1 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005503/0.3794, allocations: 2.629 MB / 387.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00729/0.3867, allocations: 4.489 MB / 392.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002482/0.3892, allocations: 1.152 MB / 393.4 MB, free: 352 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002727/0.3919, allocations: 1.569 MB / 395 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.393, allocations: 160 kB / 395.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002504/0.3955, allocations: 0.9635 MB / 396.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002489/0.398, allocations: 1.746 MB / 397.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.3998, allocations: 0.8972 MB / 398.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007166/0.407, allocations: 5.717 MB / 404.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.407, allocations: 0 / 404.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.407, allocations: 0 / 404.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003229/0.4074, allocations: 3.938 kB / 404.4 MB, free: 5.258 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.01177/0.4191, allocations: 4.435 MB / 408.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.4192, allocations: 12.03 kB / 408.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009981/0.4292, allocations: 2.529 MB / 411.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006939/0.4362, allocations: 2.908 MB / 414.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003193/0.4365, allocations: 270.8 kB / 414.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00188/0.4384, allocations: 435.5 kB / 415 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02787/0.4663, allocations: 12.34 MB / 427.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002648/0.4666, allocations: 51.52 kB / 427.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0015/0.4681, allocations: 175.8 kB / 427.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003802/0.472, allocations: 2.166 MB / 429.7 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02522/0.4972, allocations: 10.34 MB / 440.1 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2742/0.7714, allocations: 44.91 MB / 485 MB, free: 81.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01774/0.7892, allocations: 7.175 MB / 492.2 MB, free: 78.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01309/0.8024, allocations: 9.314 MB / 0.4897 GB, free: 71.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.8024, allocations: 55.44 kB / 0.4898 GB, free: 71.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 4.498e-06/0.8024, allocations: 0 / 0.4898 GB, free: 71.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.05313/0.8556, allocations: 22.53 MB / 0.5118 GB, free: 48.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001077/0.8567, allocations: 1.612 MB / 0.5134 GB, free: 47.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005156/0.8619, allocations: 4.439 MB / 0.5177 GB, free: 42.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005272/0.8624, allocations: 59.58 kB / 0.5177 GB, free: 42.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001624/0.864, allocations: 3.404 MB / 0.5211 GB, free: 39.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000841/0.8649, allocations: 0.8106 MB / 0.5219 GB, free: 38.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.8651, allocations: 135.6 kB / 0.522 GB, free: 38.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002725/0.8654, allocations: 0.5891 MB / 0.5226 GB, free: 37.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/0.8683, allocations: 2.344 MB / 0.5249 GB, free: 35.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004727/0.8731, allocations: 6.444 MB / 0.5311 GB, free: 26.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004839/0.8779, allocations: 3.768 MB / 0.5348 GB, free: 23.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.629e-05/0.878, allocations: 40 kB / 0.5349 GB, free: 23.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02218/0.9002, allocations: 10.22 MB / 0.5448 GB, free: 12.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.988e-05/0.9004, allocations: 68 kB / 0.5449 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01041/0.9108, allocations: 3.997 MB / 0.5488 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009587/0.9204, allocations: 2.195 MB / 0.551 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005378/0.9258, allocations: 1.587 MB / 0.5525 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007821/0.9337, allocations: 6.36 MB / 0.5587 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006633/0.9404, allocations: 455.1 kB / 0.5592 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001984/0.9424, allocations: 412 kB / 0.5595 GB, free: 13.5 MB / 398.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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007142/0.9496, allocations: 2.216 MB / 0.5617 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/0.9507, allocations: 379.1 kB / 0.5621 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007786/0.9585, allocations: 3.511 MB / 0.5655 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006035/0.9646, allocations: 2.933 MB / 0.5684 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/0.9646, allocations: 7.094 kB / 0.5684 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/0.9647, allocations: 11.92 kB / 0.5684 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0222/0.9869, allocations: 10.76 MB / 0.5789 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.97e-05/0.9869, allocations: 17.03 kB / 0.5789 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.9886, allocations: 387.4 kB / 0.5793 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002922/0.9915, allocations: 0.9941 MB / 0.5802 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002797/0.9918, allocations: 63.97 kB / 0.5803 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005173/0.997, allocations: 4.668 MB / 0.5849 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001133/0.9982, allocations: 1.486 MB / 0.5863 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/1.009, allocations: 7.832 MB / 0.594 GB, free: 8.711 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001967/1.011, allocations: 0.699 MB / 0.5946 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004373/1.012, allocations: 67.81 kB / 0.5947 GB, free: 7.926 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/1.013, allocations: 167.7 kB / 0.5949 GB, free: 7.762 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003145/1.014, allocations: 172.5 kB / 0.595 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/1.014, allocations: 75.98 kB / 0.5951 GB, free: 7.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004357/1.018, allocations: 2.774 MB / 0.5978 GB, free: 4.738 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.018, allocations: 0 / 0.5978 GB, free: 4.738 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006281/1.024, allocations: 1.191 MB / 0.599 GB, free: 3.555 MB / 430.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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005602/1.025, allocations: 238.9 kB / 0.5992 GB, free: 3.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.1813/1.206, allocations: 6.099 MB / 0.6052 GB, free: 148.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.425e-05/1.206, allocations: 4.312 kB / 0.6052 GB, free: 148.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004314/1.211, allocations: 2.279 MB / 0.6074 GB, free: 147.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/1.213, allocations: 461 kB / 0.6078 GB, free: 147.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01855/1.232, allocations: 12.78 MB / 0.6203 GB, free: 141 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004444/1.236, allocations: 3.556 MB / 0.6238 GB, free: 139.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005242/1.242, allocations: 2.048 MB / 0.6258 GB, free: 138.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000805/1.243, allocations: 278.3 kB / 0.6261 GB, free: 138.8 MB / 430.1 MB Notification: Performance of SimCode: time 2.134e-06/1.243, allocations: 0 / 0.6261 GB, free: 138.8 MB / 430.1 MB Notification: Performance of Templates: time 0.06686/1.309, allocations: 40.74 MB / 0.6658 GB, free: 98.33 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) Environment - environmentSimulation: