Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.008965/0.008965, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.00222/0.002221, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.532/1.532, allocations: 205.1 MB / 222.6 MB, free: 4.387 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.001137/0.001137, allocations: 50.3 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09912, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01191/0.1111, allocations: 12.04 MB / 385.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009101/0.1202, allocations: 4.192 MB / 389.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002581/0.1229, allocations: 71.75 kB / 389.5 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005355/0.1283, allocations: 2.756 MB / 392.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007176/0.1355, allocations: 1.968 MB / 394.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00226/0.1377, allocations: 0.8111 MB / 395 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007146/0.1449, allocations: 4.628 MB / 399.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004096/0.149, allocations: 3.552 MB / 403.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00239/0.1514, allocations: 1.698 MB / 404.9 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002538/0.154, allocations: 2.348 MB / 407.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005447/0.1546, allocations: 352 kB / 407.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002023/0.1566, allocations: 1.268 MB / 408.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001629/0.1582, allocations: 2.108 MB / 411 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002122/0.1604, allocations: 2.431 MB / 413.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006821/0.1672, allocations: 7.532 MB / 420.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1672, allocations: 0 / 420.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1672, allocations: 4 kB / 420.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001215/0.1674, allocations: 0 / 420.9 MB, free: 1.34 MB / 350.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.009123/0.1765, allocations: 5.285 MB / 426.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1766, allocations: 12.03 kB / 426.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007778/0.1843, allocations: 2.104 MB / 428.3 MB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006213/0.1906, allocations: 2.629 MB / 431 MB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002392/0.1909, allocations: 274.8 kB / 431.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001376/0.1923, allocations: 435.6 kB / 431.6 MB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0231/0.2154, allocations: 12.23 MB / 443.9 MB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.2155, allocations: 47.53 kB / 443.9 MB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004777/0.216, allocations: 175.8 kB / 444.1 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003332/0.2194, allocations: 2.162 MB / 446.3 MB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2519/0.4713, allocations: 10.2 MB / 456.4 MB, free: 63.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05029/0.5216, allocations: 44.13 MB / 0.4888 GB, free: 30.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01075/0.5324, allocations: 4.618 MB / 0.4934 GB, free: 27.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002222/0.5347, allocations: 1.728 MB / 0.495 GB, free: 25.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/0.5453, allocations: 8.213 MB / 0.5031 GB, free: 16.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/0.5454, allocations: 63.75 kB / 0.5031 GB, free: 16.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 5.641e-06/0.5454, allocations: 0 / 0.5031 GB, free: 16.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03561/0.581, allocations: 15.95 MB / 0.5187 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001171/0.5822, allocations: 1.694 MB / 0.5204 GB, free: 14.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005726/0.5879, allocations: 4.219 MB / 0.5245 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004985/0.5885, allocations: 53.7 kB / 0.5245 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002437/0.5909, allocations: 3.413 MB / 0.5279 GB, free: 7.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001016/0.592, allocations: 0.7972 MB / 0.5286 GB, free: 6.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001759/0.5937, allocations: 1.362 MB / 0.53 GB, free: 4.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5938, allocations: 301.1 kB / 0.5303 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003401/0.5972, allocations: 2.266 MB / 0.5325 GB, free: 2.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006647/0.6039, allocations: 6.398 MB / 0.5387 GB, free: 9.867 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/0.6159, allocations: 9.324 MB / 0.5478 GB, free: 14.49 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001573/0.6161, allocations: 40 kB / 0.5479 GB, free: 14.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02443/0.6406, allocations: 10.06 MB / 0.5577 GB, free: 4.367 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.6407, allocations: 64 kB / 0.5578 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01123/0.6519, allocations: 3.784 MB / 0.5614 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01051/0.6625, allocations: 2.168 MB / 0.5636 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006054/0.6685, allocations: 1.587 MB / 0.5651 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008927/0.6775, allocations: 6.603 MB / 0.5716 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005839/0.6834, allocations: 431.5 kB / 0.572 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/0.6846, allocations: 420 kB / 0.5724 GB, free: 5.023 MB / 446.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.003898/0.6886, allocations: 2.214 MB / 0.5745 GB, free: 2.801 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007161/0.6893, allocations: 375.1 kB / 0.5749 GB, free: 2.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006371/0.6957, allocations: 3.283 MB / 0.5781 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005047/0.7007, allocations: 2.745 MB / 0.5808 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.7008, allocations: 4 kB / 0.5808 GB, free: 12.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.376e-05/0.7008, allocations: 7.969 kB / 0.5808 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01829/0.7191, allocations: 10.35 MB / 0.5909 GB, free: 1.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.259e-05/0.7191, allocations: 12 kB / 0.5909 GB, free: 1.738 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001523/0.7207, allocations: 367.4 kB / 0.5913 GB, free: 1.379 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002993/0.7237, allocations: 0.9834 MB / 0.5922 GB, free: 392 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002445/0.7239, allocations: 67.97 kB / 0.5923 GB, free: 324 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005139/0.7291, allocations: 4.9 MB / 0.5971 GB, free: 11.14 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001059/0.7302, allocations: 1.557 MB / 0.5986 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008912/0.7391, allocations: 5.918 MB / 0.6044 GB, free: 3.312 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/0.7409, allocations: 0.6561 MB / 0.605 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004558/0.7413, allocations: 59.97 kB / 0.6051 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/0.7429, allocations: 147.8 kB / 0.6052 GB, free: 2.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004122/0.7434, allocations: 172.4 kB / 0.6054 GB, free: 2.262 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001619/0.7436, allocations: 75.98 kB / 0.6054 GB, free: 2.188 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005171/0.7487, allocations: 2.609 MB / 0.608 GB, free: 15.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7488, allocations: 0 / 0.608 GB, free: 15.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006044/0.7548, allocations: 1.163 MB / 0.6091 GB, free: 14.41 MB / 494.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.0005449/0.7554, allocations: 228 kB / 0.6093 GB, free: 14.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01026/0.7656, allocations: 6.036 MB / 0.6152 GB, free: 8.109 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/0.7657, allocations: 0.9375 kB / 0.6152 GB, free: 8.109 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004028/0.7697, allocations: 2.2 MB / 0.6174 GB, free: 5.844 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/0.7731, allocations: 0.4908 MB / 0.6179 GB, free: 5.352 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2316/1.005, allocations: 10.64 MB / 0.6283 GB, free: 158.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005326/1.01, allocations: 3.461 MB / 0.6316 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005356/1.016, allocations: 2.024 MB / 0.6336 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007328/1.016, allocations: 273.7 kB / 0.6339 GB, free: 157.9 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/1.016, allocations: 0 / 0.6339 GB, free: 157.9 MB / 494.1 MB Notification: Performance of Templates: time 0.0618/1.078, allocations: 38.46 MB / 0.6714 GB, free: 132.8 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)