Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001632/0.001632, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.404/1.404, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.00242/0.00242, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2152, allocations: 46.64 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01185/0.2271, allocations: 10.31 MB / 335.6 MB, free: 9.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009097/0.2362, allocations: 3.867 MB / 339.5 MB, free: 5.711 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001917/0.2382, allocations: 51.88 kB / 339.5 MB, free: 5.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003975/0.2422, allocations: 2.079 MB / 341.6 MB, free: 3.574 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003966/0.2462, allocations: 1.642 MB / 343.3 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.2477, allocations: 0.6979 MB / 344 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004159/0.2519, allocations: 3.389 MB / 347.4 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003119/0.255, allocations: 2.694 MB / 350 MB, free: 11.08 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.2567, allocations: 1.269 MB / 351.3 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001868/0.2586, allocations: 1.764 MB / 353.1 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005085/0.2591, allocations: 264 kB / 353.3 MB, free: 7.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.2609, allocations: 1.116 MB / 354.5 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001185/0.2621, allocations: 1.574 MB / 356 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.2637, allocations: 1.864 MB / 357.9 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004865/0.2685, allocations: 5.724 MB / 363.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2686, allocations: 0 / 363.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2686, allocations: 0 / 363.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.23e-05/0.2686, allocations: 0 / 363.6 MB, free: 13.46 MB / 302.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.00673/0.2754, allocations: 4.133 MB / 367.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.2754, allocations: 15.89 kB / 367.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006376/0.2818, allocations: 1.852 MB / 369.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003419/0.2852, allocations: 1.94 MB / 371.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.2854, allocations: 201.2 kB / 371.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004444/0.2859, allocations: 267.9 kB / 372 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/0.3033, allocations: 9.977 MB / 382 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-05/0.3034, allocations: 39.59 kB / 382 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003502/0.3037, allocations: 135.9 kB / 382.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00307/0.3068, allocations: 1.856 MB / 384 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0172/0.324, allocations: 8.532 MB / 392.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03963/0.3637, allocations: 36.86 MB / 429.4 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009622/0.3734, allocations: 3.877 MB / 433.3 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002338/0.3757, allocations: 1.802 MB / 435.1 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.3861, allocations: 7.531 MB / 442.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.3861, allocations: 63.48 kB / 442.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.098e-06/0.3862, allocations: 0 / 442.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.2076/0.5938, allocations: 17.44 MB / 460.1 MB, free: 111 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.5939, allocations: 144.6 kB / 460.3 MB, free: 110.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004225/0.5981, allocations: 3.482 MB / 463.7 MB, free: 109.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/0.5983, allocations: 49.61 kB / 463.8 MB, free: 109.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.5994, allocations: 2.737 MB / 466.5 MB, free: 107.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004178/0.5998, allocations: 0.6419 MB / 467.2 MB, free: 107 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.6009, allocations: 1.116 MB / 468.3 MB, free: 106.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.571e-05/0.6009, allocations: 309 kB / 468.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002189/0.6031, allocations: 1.949 MB / 470.5 MB, free: 105.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003138/0.6063, allocations: 5.384 MB / 475.9 MB, free: 100.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006206/0.6125, allocations: 7.922 MB / 483.8 MB, free: 92.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.001e-05/0.6126, allocations: 36 kB / 483.9 MB, free: 92.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01247/0.6251, allocations: 8.18 MB / 492.1 MB, free: 84.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.13e-05/0.6252, allocations: 61.03 kB / 492.1 MB, free: 83.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.42e-05/0.6252, allocations: 124 kB / 492.2 MB, free: 83.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003681/0.6289, allocations: 1.296 MB / 493.5 MB, free: 82.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003264/0.6322, allocations: 1.267 MB / 494.8 MB, free: 81.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007034/0.6393, allocations: 6.553 MB / 0.4896 GB, free: 74.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003883/0.6432, allocations: 295.6 kB / 0.4899 GB, free: 74.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004659/0.6437, allocations: 343.5 kB / 0.4902 GB, free: 73.98 MB / 382.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.002235/0.6459, allocations: 1.81 MB / 0.492 GB, free: 72.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005373/0.6464, allocations: 304.1 kB / 0.4923 GB, free: 71.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005987/0.6524, allocations: 3.369 MB / 0.4956 GB, free: 68.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-05/0.6525, allocations: 20 kB / 0.4956 GB, free: 68.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.6525, allocations: 7.516 kB / 0.4956 GB, free: 68.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.6525, allocations: 3.984 kB / 0.4956 GB, free: 68.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.6641, allocations: 7.603 MB / 0.503 GB, free: 60.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.6641, allocations: 0 / 0.503 GB, free: 60.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.6651, allocations: 240.5 kB / 0.5032 GB, free: 60.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003452/0.6686, allocations: 1.127 MB / 0.5043 GB, free: 59.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001815/0.6688, allocations: 31.98 kB / 0.5044 GB, free: 59.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006877/0.6757, allocations: 6.161 MB / 0.5104 GB, free: 53.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.6757, allocations: 4.031 kB / 0.5104 GB, free: 53.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007971/0.6837, allocations: 5.717 MB / 0.516 GB, free: 47.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.685, allocations: 0.5673 MB / 0.5165 GB, free: 46.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003529/0.6853, allocations: 28 kB / 0.5166 GB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.6866, allocations: 91.88 kB / 0.5166 GB, free: 46.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.6868, allocations: 88.88 kB / 0.5167 GB, free: 46.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.6869, allocations: 40 kB / 0.5168 GB, free: 46.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002505/0.6894, allocations: 2.162 MB / 0.5189 GB, free: 44.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6895, allocations: 3.938 kB / 0.5189 GB, free: 44.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003794/0.6933, allocations: 0.9138 MB / 0.5198 GB, free: 43.46 MB / 382.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.0003141/0.6936, allocations: 177.4 kB / 0.5199 GB, free: 43.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007292/0.7009, allocations: 5.54 MB / 0.5254 GB, free: 37.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/0.7009, allocations: 0 / 0.5254 GB, free: 37.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.7029, allocations: 1.536 MB / 0.5269 GB, free: 36.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.7049, allocations: 357.4 kB / 0.5272 GB, free: 35.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.7155, allocations: 8.115 MB / 0.5351 GB, free: 27.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00209/0.7176, allocations: 2.859 MB / 0.5379 GB, free: 24.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003477/0.7211, allocations: 1.707 MB / 0.5396 GB, free: 23.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000501/0.7216, allocations: 219.4 kB / 0.5398 GB, free: 22.93 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.7216, allocations: 0 / 0.5398 GB, free: 22.93 MB / 382.1 MB Notification: Performance of Templates: time 0.05061/0.7722, allocations: 34.06 MB / 0.573 GB, free: 4.887 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)