Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00176/0.00176, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.387/1.387, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.001205/0.001205, allocations: 55.92 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09872, allocations: 46.63 MB / 326.6 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0111/0.1099, allocations: 10.32 MB / 336.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008244/0.1181, allocations: 3.863 MB / 340.8 MB, free: 6.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001806/0.12, allocations: 59.88 kB / 340.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003864/0.1239, allocations: 2.075 MB / 342.9 MB, free: 4.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004852/0.1288, allocations: 1.642 MB / 344.6 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001699/0.1305, allocations: 0.6862 MB / 345.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004424/0.1349, allocations: 3.393 MB / 348.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002838/0.1378, allocations: 2.697 MB / 351.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.1394, allocations: 1.277 MB / 352.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001889/0.1413, allocations: 1.756 MB / 354.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004569/0.1418, allocations: 260 kB / 354.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.1436, allocations: 1.116 MB / 355.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001237/0.1449, allocations: 1.574 MB / 357.3 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00161/0.1465, allocations: 1.864 MB / 359.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00502/0.1515, allocations: 5.724 MB / 364.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1515, allocations: 4 kB / 364.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1515, allocations: 3.938 kB / 364.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.954e-05/0.1517, allocations: 0 / 364.9 MB, free: 13.95 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.00696/0.1586, allocations: 4.141 MB / 369.1 MB, free: 9.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.1587, allocations: 11.89 kB / 369.1 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006586/0.1653, allocations: 1.852 MB / 370.9 MB, free: 7.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003665/0.169, allocations: 1.929 MB / 372.9 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.1691, allocations: 213.2 kB / 373.1 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004983/0.1696, allocations: 259.9 kB / 373.3 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.186/0.3557, allocations: 9.978 MB / 383.3 MB, free: 47.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.57e-05/0.3558, allocations: 40.44 kB / 383.3 MB, free: 47.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003654/0.3562, allocations: 132 kB / 383.5 MB, free: 47.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003479/0.3596, allocations: 1.855 MB / 385.3 MB, free: 46.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.3772, allocations: 8.538 MB / 393.9 MB, free: 43.83 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03497/0.4122, allocations: 36.85 MB / 430.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008649/0.4209, allocations: 3.876 MB / 434.6 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001882/0.4229, allocations: 1.81 MB / 436.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009678/0.4326, allocations: 7.537 MB / 443.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.4326, allocations: 43.56 kB / 444 MB, free: 11.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 3.908e-06/0.4326, allocations: 0 / 444 MB, free: 11.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.05463/0.4873, allocations: 17.45 MB / 461.4 MB, free: 10 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.4874, allocations: 157.4 kB / 461.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00527/0.4927, allocations: 3.477 MB / 465.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002721/0.493, allocations: 49.7 kB / 465.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001792/0.4948, allocations: 2.74 MB / 467.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007395/0.4955, allocations: 0.6364 MB / 468.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/0.4971, allocations: 1.119 MB / 469.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.4972, allocations: 313.1 kB / 469.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002914/0.5001, allocations: 1.943 MB / 471.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005269/0.5054, allocations: 5.378 MB / 477.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009518/0.5149, allocations: 7.933 MB / 485.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-05/0.515, allocations: 32 kB / 485.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01657/0.5316, allocations: 8.178 MB / 493.4 MB, free: 6.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.069e-05/0.5318, allocations: 56 kB / 493.4 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001402/0.5319, allocations: 132 kB / 493.6 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004263/0.5362, allocations: 1.296 MB / 494.9 MB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00426/0.5405, allocations: 1.267 MB / 496.1 MB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009919/0.5504, allocations: 6.547 MB / 0.4909 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005134/0.5556, allocations: 295.6 kB / 0.4912 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001279/0.5569, allocations: 344 kB / 0.4915 GB, free: 12.45 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 (685): * Single equations (assignments): 681 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004639/0.5616, allocations: 1.811 MB / 0.4933 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000825/0.5624, allocations: 304.1 kB / 0.4936 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008102/0.5705, allocations: 3.362 MB / 0.4968 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-05/0.5706, allocations: 27.92 kB / 0.4969 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.5706, allocations: 4 kB / 0.4969 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.161e-05/0.5707, allocations: 15.91 kB / 0.4969 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01509/0.5858, allocations: 7.609 MB / 0.5043 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.5858, allocations: 0 / 0.5043 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.587, allocations: 239.7 kB / 0.5045 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003905/0.5909, allocations: 1.124 MB / 0.5056 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.5911, allocations: 28 kB / 0.5057 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009039/0.6002, allocations: 6.16 MB / 0.5117 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.6002, allocations: 3.438 kB / 0.5117 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/0.6104, allocations: 5.705 MB / 0.5173 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/0.6118, allocations: 0.5789 MB / 0.5178 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004084/0.6122, allocations: 27.98 kB / 0.5178 GB, free: 1.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.6135, allocations: 87.88 kB / 0.5179 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002786/0.6138, allocations: 88.81 kB / 0.518 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/0.614, allocations: 48 kB / 0.5181 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003376/0.6173, allocations: 2.162 MB / 0.5202 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.6174, allocations: 0 / 0.5202 GB, free: 14.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00468/0.6221, allocations: 0.923 MB / 0.5211 GB, free: 13.86 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004031/0.6225, allocations: 161.6 kB / 0.5212 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009694/0.6322, allocations: 5.546 MB / 0.5266 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.6322, allocations: 0 / 0.5266 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002746/0.635, allocations: 1.538 MB / 0.5281 GB, free: 6.629 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.6375, allocations: 359.2 kB / 0.5285 GB, free: 6.277 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1997/0.8372, allocations: 8.107 MB / 0.5364 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005224/0.8424, allocations: 2.854 MB / 0.5392 GB, free: 144.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005887/0.8483, allocations: 1.698 MB / 0.5409 GB, free: 144.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009545/0.8493, allocations: 218.6 kB / 0.5411 GB, free: 144.3 MB / 430.1 MB Notification: Performance of SimCode: time 2.515e-06/0.8493, allocations: 0 / 0.5411 GB, free: 144.3 MB / 430.1 MB Notification: Performance of Templates: time 0.05548/0.9048, allocations: 34.08 MB / 0.5743 GB, free: 124 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)