Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.007013/0.007013, allocations: 98.64 kB / 15.73 MB, free: 6.051 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.001423/0.001423, allocations: 191.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.502/1.502, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001339/0.001339, allocations: 50.69 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09407/0.09542, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01203/0.1075, allocations: 10.31 MB / 383.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007716/0.1152, allocations: 3.879 MB / 387.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001489/0.1168, allocations: 55.81 kB / 387.4 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004177/0.121, allocations: 2.075 MB / 389.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004537/0.1256, allocations: 1.685 MB / 391.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001814/0.1274, allocations: 0.694 MB / 391.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005084/0.1325, allocations: 3.385 MB / 395.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003892/0.1364, allocations: 2.685 MB / 397.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002464/0.1389, allocations: 1.273 MB / 399.2 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/0.142, allocations: 1.764 MB / 401 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009499/0.143, allocations: 264 kB / 401.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.1458, allocations: 1.116 MB / 402.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002735/0.1485, allocations: 1.578 MB / 403.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003972/0.1525, allocations: 1.868 MB / 405.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008572/0.1611, allocations: 5.944 MB / 411.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1611, allocations: 0 / 411.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1611, allocations: 0 / 411.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002652/0.1614, allocations: 4 kB / 411.7 MB, free: 10.56 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01066/0.1721, allocations: 4.129 MB / 415.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.1721, allocations: 8.031 kB / 415.9 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006501/0.1787, allocations: 1.86 MB / 417.7 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003997/0.1827, allocations: 1.96 MB / 419.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.1829, allocations: 205.2 kB / 419.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008711/0.1838, allocations: 275.8 kB / 420.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/0.2015, allocations: 9.974 MB / 430.1 MB, free: 7.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.2016, allocations: 39.59 kB / 430.2 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005883/0.2022, allocations: 131.9 kB / 430.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002918/0.2052, allocations: 1.86 MB / 432.2 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01866/0.2238, allocations: 8.544 MB / 440.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2603/0.4841, allocations: 36.69 MB / 477.4 MB, free: 44.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009267/0.4935, allocations: 3.878 MB / 481.3 MB, free: 42.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002355/0.4958, allocations: 1.807 MB / 483.1 MB, free: 41.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009785/0.5056, allocations: 7.528 MB / 490.6 MB, free: 37.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.882e-05/0.5057, allocations: 52.06 kB / 490.7 MB, free: 37.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.478e-06/0.5057, allocations: 0 / 490.7 MB, free: 37.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04615/0.5519, allocations: 17.47 MB / 0.4962 GB, free: 24.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.552, allocations: 144.8 kB / 0.4964 GB, free: 24.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005262/0.5572, allocations: 3.489 MB / 0.4998 GB, free: 20.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002838/0.5575, allocations: 45.7 kB / 0.4998 GB, free: 20.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/0.5589, allocations: 2.739 MB / 0.5025 GB, free: 18.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007142/0.5596, allocations: 0.6467 MB / 0.5031 GB, free: 17.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001718/0.5614, allocations: 1.119 MB / 0.5042 GB, free: 16.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.079e-05/0.5614, allocations: 305.1 kB / 0.5045 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002523/0.5639, allocations: 1.943 MB / 0.5064 GB, free: 14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004114/0.5681, allocations: 5.378 MB / 0.5117 GB, free: 6.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007789/0.5759, allocations: 7.935 MB / 0.5194 GB, free: 13.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000137/0.576, allocations: 36.56 kB / 0.5194 GB, free: 13.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01598/0.592, allocations: 8.174 MB / 0.5274 GB, free: 5.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.5922, allocations: 56 kB / 0.5275 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001817/0.5924, allocations: 120 kB / 0.5276 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003942/0.5963, allocations: 1.294 MB / 0.5289 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003925/0.6003, allocations: 1.263 MB / 0.5301 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009305/0.6096, allocations: 6.542 MB / 0.5365 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004574/0.6142, allocations: 295.6 kB / 0.5368 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009346/0.6152, allocations: 340 kB / 0.5371 GB, free: 11 MB / 414.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.004354/0.6195, allocations: 1.822 MB / 0.5389 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009177/0.6204, allocations: 304.1 kB / 0.5391 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007735/0.6282, allocations: 3.367 MB / 0.5424 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.303e-05/0.6283, allocations: 20 kB / 0.5425 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.858e-05/0.6283, allocations: 4 kB / 0.5425 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/0.6283, allocations: 7.969 kB / 0.5425 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01559/0.6439, allocations: 7.582 MB / 0.5499 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/0.644, allocations: 0 / 0.5499 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.6451, allocations: 238.5 kB / 0.5501 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00368/0.6488, allocations: 1.124 MB / 0.5512 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.649, allocations: 27.94 kB / 0.5512 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008252/0.6573, allocations: 6.155 MB / 0.5572 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.6573, allocations: 3.938 kB / 0.5572 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009885/0.6672, allocations: 5.707 MB / 0.5628 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/0.6688, allocations: 0.5719 MB / 0.5634 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000826/0.6697, allocations: 28 kB / 0.5634 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/0.6713, allocations: 91.81 kB / 0.5635 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/0.6717, allocations: 96.75 kB / 0.5636 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.6718, allocations: 47.98 kB / 0.5636 GB, free: 15.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004165/0.676, allocations: 2.158 MB / 0.5657 GB, free: 13.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.676, allocations: 0 / 0.5657 GB, free: 13.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005689/0.6817, allocations: 0.9115 MB / 0.5666 GB, free: 12.51 MB / 446.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.0006848/0.6824, allocations: 168.1 kB / 0.5668 GB, free: 12.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009065/0.6915, allocations: 4.801 MB / 0.5715 GB, free: 7.555 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.6915, allocations: 0 / 0.5715 GB, free: 7.555 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002738/0.6943, allocations: 1.539 MB / 0.573 GB, free: 6.004 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002947/0.6972, allocations: 357.8 kB / 0.5733 GB, free: 5.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01624/0.7135, allocations: 8.017 MB / 0.5811 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004075/0.7176, allocations: 2.858 MB / 0.5839 GB, free: 10.73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004211/0.7218, allocations: 1.699 MB / 0.5856 GB, free: 9.023 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007857/0.7226, allocations: 215.4 kB / 0.5858 GB, free: 8.812 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7226, allocations: 0 / 0.5858 GB, free: 8.812 MB / 462.1 MB Notification: Performance of Templates: time 0.06175/0.7844, allocations: 31.15 MB / 0.6162 GB, free: 9.691 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)