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.005339/0.005339, allocations: 101.6 kB / 15.73 MB, free: 6.039 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.001142/0.001142, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.489/1.489, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001318/0.001318, allocations: 58.28 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09581, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01165/0.1075, allocations: 10.3 MB / 383.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008529/0.1161, allocations: 3.883 MB / 387.4 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.1182, allocations: 51.88 kB / 387.4 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004541/0.1228, allocations: 2.083 MB / 389.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004867/0.1276, allocations: 1.673 MB / 391.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.1295, allocations: 0.694 MB / 391.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004758/0.1342, allocations: 3.389 MB / 395.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00355/0.1378, allocations: 2.689 MB / 397.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002252/0.1401, allocations: 1.273 MB / 399.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.1429, allocations: 1.76 MB / 401 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008446/0.1437, allocations: 260 kB / 401.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002455/0.1462, allocations: 1.116 MB / 402.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00207/0.1483, allocations: 1.582 MB / 403.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003201/0.1515, allocations: 1.868 MB / 405.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00756/0.1591, allocations: 5.936 MB / 411.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1591, allocations: 0 / 411.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1591, allocations: 0 / 411.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001818/0.1593, allocations: 4 kB / 411.7 MB, free: 10.57 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.009487/0.1688, allocations: 4.137 MB / 415.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.1689, allocations: 15.89 kB / 415.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007215/0.1761, allocations: 1.856 MB / 417.7 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003927/0.18, allocations: 1.96 MB / 419.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.1802, allocations: 205.2 kB / 419.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008109/0.1811, allocations: 267.8 kB / 420.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01953/0.2006, allocations: 9.981 MB / 430.2 MB, free: 7.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001274/0.2008, allocations: 43.58 kB / 430.2 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007233/0.2015, allocations: 127.9 kB / 430.3 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003199/0.2047, allocations: 1.86 MB / 432.2 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01912/0.2238, allocations: 8.536 MB / 440.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2407/0.4646, allocations: 36.69 MB / 477.4 MB, free: 44.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009917/0.4746, allocations: 3.884 MB / 481.3 MB, free: 42.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002199/0.4768, allocations: 1.806 MB / 483.1 MB, free: 41.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009148/0.4859, allocations: 7.526 MB / 490.6 MB, free: 37.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.486, allocations: 47.41 kB / 490.7 MB, free: 37.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.208e-06/0.486, allocations: 0 / 490.7 MB, free: 37.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04943/0.5355, allocations: 17.47 MB / 0.4962 GB, free: 24.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.5355, allocations: 149 kB / 0.4964 GB, free: 24.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004015/0.5396, allocations: 3.481 MB / 0.4998 GB, free: 20.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002042/0.5398, allocations: 49.7 kB / 0.4998 GB, free: 20.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.5409, allocations: 2.739 MB / 0.5025 GB, free: 17.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004612/0.5413, allocations: 0.6432 MB / 0.5031 GB, free: 17.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/0.5424, allocations: 1.123 MB / 0.5042 GB, free: 16.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.395e-05/0.5425, allocations: 301.1 kB / 0.5045 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/0.5447, allocations: 1.947 MB / 0.5064 GB, free: 13.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003422/0.5482, allocations: 5.374 MB / 0.5117 GB, free: 6.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006763/0.555, allocations: 7.935 MB / 0.5194 GB, free: 13.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.658e-05/0.555, allocations: 36 kB / 0.5194 GB, free: 13.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01461/0.5697, allocations: 8.178 MB / 0.5274 GB, free: 4.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.515e-05/0.5698, allocations: 56 kB / 0.5275 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/0.5699, allocations: 121 kB / 0.5276 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004182/0.5741, allocations: 1.296 MB / 0.5289 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004432/0.5785, allocations: 1.263 MB / 0.5301 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009549/0.5881, allocations: 6.539 MB / 0.5365 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004438/0.5926, allocations: 295.6 kB / 0.5368 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/0.5936, allocations: 344 kB / 0.5371 GB, free: 10.82 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.003819/0.5975, allocations: 1.814 MB / 0.5389 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009801/0.5985, allocations: 304.1 kB / 0.5391 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008285/0.6068, allocations: 3.366 MB / 0.5424 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.006e-05/0.6069, allocations: 20 kB / 0.5425 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/0.6069, allocations: 7.562 kB / 0.5425 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-05/0.6069, allocations: 12.72 kB / 0.5425 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01738/0.6243, allocations: 7.575 MB / 0.5499 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.077e-05/0.6244, allocations: 0 / 0.5499 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.6256, allocations: 243.6 kB / 0.5501 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003945/0.6296, allocations: 1.124 MB / 0.5512 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002157/0.6298, allocations: 27.94 kB / 0.5512 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008674/0.6385, allocations: 6.159 MB / 0.5572 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/0.6385, allocations: 6.203 kB / 0.5572 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/0.6486, allocations: 5.709 MB / 0.5628 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.6499, allocations: 0.5712 MB / 0.5634 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006199/0.6505, allocations: 28 kB / 0.5634 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.6521, allocations: 91.81 kB / 0.5635 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.6524, allocations: 96.75 kB / 0.5636 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.6525, allocations: 44 kB / 0.5636 GB, free: 15.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003871/0.6564, allocations: 2.158 MB / 0.5657 GB, free: 13.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6564, allocations: 0 / 0.5657 GB, free: 13.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004627/0.661, allocations: 0.9127 MB / 0.5666 GB, free: 12.33 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.0004946/0.6616, allocations: 167.7 kB / 0.5668 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008349/0.6699, allocations: 4.801 MB / 0.5715 GB, free: 7.375 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.6699, allocations: 0 / 0.5715 GB, free: 7.375 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.6725, allocations: 1.537 MB / 0.573 GB, free: 5.828 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002704/0.6753, allocations: 356.1 kB / 0.5733 GB, free: 5.488 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.691, allocations: 8.021 MB / 0.5811 GB, free: 13.45 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003679/0.6947, allocations: 2.851 MB / 0.5839 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003779/0.6985, allocations: 1.711 MB / 0.5856 GB, free: 8.852 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005511/0.6991, allocations: 215.4 kB / 0.5858 GB, free: 8.641 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.6991, allocations: 0 / 0.5858 GB, free: 8.641 MB / 462.1 MB Notification: Performance of Templates: time 0.05716/0.7562, allocations: 31.15 MB / 0.6162 GB, free: 9.527 MB / 494.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)