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.009141/0.009141, allocations: 95.16 kB / 15.73 MB, free: 6.043 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.002158/0.002158, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.558/1.558, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.00119/0.00119, allocations: 54.73 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1004, 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.01075/0.1111, allocations: 10.3 MB / 383.5 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008057/0.1192, allocations: 3.879 MB / 387.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002363/0.1217, allocations: 55.81 kB / 387.4 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004398/0.1261, allocations: 2.083 MB / 389.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005284/0.1314, allocations: 1.642 MB / 391.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.1335, allocations: 0.6901 MB / 391.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00582/0.1394, allocations: 3.393 MB / 395.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004126/0.1435, allocations: 2.693 MB / 397.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00239/0.1459, allocations: 1.265 MB / 399.2 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002768/0.1487, allocations: 1.764 MB / 400.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008676/0.1496, allocations: 260 kB / 401.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002533/0.1521, allocations: 1.116 MB / 402.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001841/0.154, allocations: 1.57 MB / 403.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002956/0.157, allocations: 1.868 MB / 405.7 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006932/0.1639, allocations: 5.968 MB / 411.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.1639, allocations: 0 / 411.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.164, allocations: 0 / 411.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001122/0.1641, allocations: 3.938 kB / 411.7 MB, free: 10.58 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.008206/0.1723, allocations: 4.243 MB / 416 MB, free: 6.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.1723, allocations: 8.031 kB / 416 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006332/0.1787, allocations: 1.882 MB / 417.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003456/0.1822, allocations: 1.964 MB / 419.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.1823, allocations: 209.2 kB / 420 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004297/0.1828, allocations: 275.8 kB / 420.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01604/0.1988, allocations: 9.97 MB / 430.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.004e-05/0.1989, allocations: 39.64 kB / 430.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003223/0.1992, allocations: 131.9 kB / 430.4 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002861/0.2021, allocations: 1.86 MB / 432.3 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01751/0.2196, allocations: 8.54 MB / 440.8 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.251/0.4707, allocations: 36.75 MB / 477.6 MB, free: 43.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009075/0.4798, allocations: 3.883 MB / 481.5 MB, free: 42.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002232/0.4821, allocations: 1.808 MB / 483.3 MB, free: 41.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009196/0.4913, allocations: 7.541 MB / 490.8 MB, free: 37.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.4913, allocations: 47.5 kB / 490.9 MB, free: 37.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.789e-06/0.4913, allocations: 0 / 490.9 MB, free: 37.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04687/0.5382, allocations: 17.66 MB / 0.4966 GB, free: 24.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.5383, allocations: 148.8 kB / 0.4967 GB, free: 24.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003781/0.5421, allocations: 3.491 MB / 0.5002 GB, free: 20.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002875/0.5424, allocations: 57.53 kB / 0.5002 GB, free: 20.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.5435, allocations: 2.853 MB / 0.503 GB, free: 17.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004834/0.544, allocations: 0.662 MB / 0.5036 GB, free: 17.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/0.5451, allocations: 1.127 MB / 0.5047 GB, free: 16.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.162e-05/0.5452, allocations: 305.1 kB / 0.505 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002342/0.5475, allocations: 1.947 MB / 0.5069 GB, free: 13.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003448/0.551, allocations: 5.377 MB / 0.5122 GB, free: 6.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007887/0.5589, allocations: 7.935 MB / 0.5199 GB, free: 13.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.484e-05/0.559, allocations: 32 kB / 0.52 GB, free: 13.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01658/0.5756, allocations: 8.195 MB / 0.528 GB, free: 4.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.662e-05/0.5758, allocations: 60 kB / 0.528 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/0.5759, allocations: 120 kB / 0.5281 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004219/0.5801, allocations: 1.293 MB / 0.5294 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004191/0.5844, allocations: 1.265 MB / 0.5306 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009078/0.5935, allocations: 6.552 MB / 0.537 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00404/0.5975, allocations: 299.3 kB / 0.5373 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008093/0.5984, allocations: 340 kB / 0.5376 GB, free: 10.8 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.003027/0.6014, allocations: 1.814 MB / 0.5394 GB, free: 8.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006353/0.602, allocations: 325.8 kB / 0.5397 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007004/0.609, allocations: 3.361 MB / 0.543 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.383e-05/0.6091, allocations: 20 kB / 0.543 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.6091, allocations: 4 kB / 0.543 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.6091, allocations: 11.91 kB / 0.543 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/0.6237, allocations: 7.576 MB / 0.5504 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.6237, allocations: 4 kB / 0.5504 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.6249, allocations: 239.7 kB / 0.5507 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003675/0.6286, allocations: 1.12 MB / 0.5518 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/0.6288, allocations: 27.94 kB / 0.5518 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008611/0.6374, allocations: 6.171 MB / 0.5578 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.6375, allocations: 3.938 kB / 0.5578 GB, free: 5.918 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01075/0.6482, allocations: 5.713 MB / 0.5634 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00189/0.6502, allocations: 0.5938 MB / 0.564 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009075/0.6511, allocations: 27.94 kB / 0.564 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/0.653, allocations: 95.62 kB / 0.5641 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003393/0.6534, allocations: 90.44 kB / 0.5642 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.6535, allocations: 53.59 kB / 0.5642 GB, free: 15.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004642/0.6582, allocations: 2.154 MB / 0.5663 GB, free: 13.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6582, allocations: 0 / 0.5663 GB, free: 13.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005857/0.6641, allocations: 0.9178 MB / 0.5672 GB, free: 12.25 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.0006612/0.6648, allocations: 166.2 kB / 0.5674 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008893/0.6737, allocations: 4.802 MB / 0.5721 GB, free: 7.285 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/0.6737, allocations: 4 kB / 0.5721 GB, free: 7.281 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002585/0.6763, allocations: 1.542 MB / 0.5736 GB, free: 5.727 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003335/0.6797, allocations: 361.2 kB / 0.5739 GB, free: 5.383 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/0.6986, allocations: 8.138 MB / 0.5819 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00511/0.7037, allocations: 2.862 MB / 0.5847 GB, free: 10.31 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004628/0.7084, allocations: 1.699 MB / 0.5863 GB, free: 8.609 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000917/0.7093, allocations: 215.4 kB / 0.5865 GB, free: 8.398 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7093, allocations: 0 / 0.5865 GB, free: 8.398 MB / 462.1 MB Notification: Performance of Templates: time 0.05836/0.7677, allocations: 31.15 MB / 0.617 GB, free: 9.266 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)