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.001066/0.001066, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001155/0.001155, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.353/1.353, allocations: 205.1 MB / 223.3 MB, free: 12.45 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.001177/0.001177, allocations: 55.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09539/0.09658, allocations: 46.63 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03015/0.1268, allocations: 34.76 MB / 360.7 MB, free: 1.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01827/0.1451, allocations: 7.927 MB / 368.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007328/0.1525, allocations: 147.6 kB / 368.8 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004534/0.1571, allocations: 2.061 MB / 370.9 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00462/0.1617, allocations: 1.522 MB / 372.4 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.1634, allocations: 0.6358 MB / 373 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005825/0.1693, allocations: 4.793 MB / 377.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.187/0.3564, allocations: 2.68 MB / 380.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002058/0.3585, allocations: 1.133 MB / 381.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002697/0.3612, allocations: 1.89 MB / 383.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000635/0.3618, allocations: 193.2 kB / 383.7 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002386/0.3642, allocations: 1.112 MB / 384.8 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001849/0.3661, allocations: 1.534 MB / 386.3 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002078/0.3682, allocations: 1.819 MB / 388.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006275/0.3744, allocations: 5.677 MB / 393.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3745, allocations: 3.859 kB / 393.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3745, allocations: 0 / 393.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001598/0.3746, allocations: 0 / 393.8 MB, free: 8.34 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.008284/0.3829, allocations: 4.145 MB / 398 MB, free: 6.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.383, allocations: 7.531 kB / 398 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005934/0.3889, allocations: 1.854 MB / 399.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003304/0.3922, allocations: 1.92 MB / 401.8 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.3924, allocations: 215 kB / 402 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004566/0.3929, allocations: 275 kB / 402.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.4074, allocations: 9.976 MB / 412.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.086e-05/0.4075, allocations: 35.62 kB / 412.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003323/0.4079, allocations: 131.6 kB / 412.4 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002572/0.4105, allocations: 1.856 MB / 414.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01665/0.4271, allocations: 8.544 MB / 422.8 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04484/0.472, allocations: 36.85 MB / 459.6 MB, free: 2.465 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009295/0.4813, allocations: 3.875 MB / 463.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002357/0.4837, allocations: 1.81 MB / 465.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/0.4948, allocations: 7.535 MB / 472.9 MB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.4949, allocations: 55.5 kB / 472.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.128e-06/0.4949, allocations: 4 kB / 472.9 MB, free: 4.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04926/0.5442, allocations: 17.43 MB / 490.3 MB, free: 3.254 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.468e-05/0.5443, allocations: 152.2 kB / 490.5 MB, free: 3.078 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005045/0.5494, allocations: 3.478 MB / 494 MB, free: 15.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003268/0.5497, allocations: 53.7 kB / 494 MB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001797/0.5515, allocations: 2.733 MB / 496.8 MB, free: 12.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007413/0.5523, allocations: 0.6432 MB / 497.4 MB, free: 12.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/0.5537, allocations: 1.116 MB / 498.5 MB, free: 11.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.5538, allocations: 305.1 kB / 498.8 MB, free: 10.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003048/0.5568, allocations: 1.951 MB / 0.489 GB, free: 8.789 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005148/0.562, allocations: 5.373 MB / 0.4943 GB, free: 1.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009738/0.5718, allocations: 7.923 MB / 0.502 GB, free: 8.637 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001247/0.5719, allocations: 36 kB / 0.502 GB, free: 8.602 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01623/0.5882, allocations: 8.186 MB / 0.51 GB, free: 1.145 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.636e-05/0.5883, allocations: 60 kB / 0.5101 GB, free: 1.086 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/0.5884, allocations: 120 kB / 0.5102 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/0.5925, allocations: 1.296 MB / 0.5115 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004344/0.5968, allocations: 1.264 MB / 0.5127 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009222/0.6061, allocations: 6.105 MB / 0.5187 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005208/0.6113, allocations: 299.6 kB / 0.519 GB, free: 8.043 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/0.6125, allocations: 340 kB / 0.5193 GB, free: 7.711 MB / 446.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.003733/0.6162, allocations: 1.825 MB / 0.5211 GB, free: 5.977 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006564/0.6169, allocations: 300.1 kB / 0.5214 GB, free: 5.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007168/0.624, allocations: 3.362 MB / 0.5246 GB, free: 2.305 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.816e-05/0.6241, allocations: 19.94 kB / 0.5247 GB, free: 2.285 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.6241, allocations: 4 kB / 0.5247 GB, free: 2.281 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-05/0.6242, allocations: 15.91 kB / 0.5247 GB, free: 2.266 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01491/0.6391, allocations: 7.611 MB / 0.5321 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.6391, allocations: 0 / 0.5321 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.6403, allocations: 239.7 kB / 0.5323 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003891/0.6443, allocations: 1.12 MB / 0.5334 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.6444, allocations: 31.98 kB / 0.5335 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008322/0.6527, allocations: 5.721 MB / 0.539 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6528, allocations: 4.031 kB / 0.5391 GB, free: 3.348 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1887/0.8414, allocations: 5.699 MB / 0.5446 GB, free: 177.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/0.8429, allocations: 0.5702 MB / 0.5452 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003719/0.8433, allocations: 27.09 kB / 0.5452 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.8446, allocations: 93.3 kB / 0.5453 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003055/0.8449, allocations: 85.44 kB / 0.5454 GB, free: 177.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/0.845, allocations: 46.95 kB / 0.5454 GB, free: 177.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003822/0.8488, allocations: 2.161 MB / 0.5475 GB, free: 177.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.8489, allocations: 0 / 0.5475 GB, free: 177.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004942/0.8538, allocations: 0.9132 MB / 0.5484 GB, free: 177.1 MB / 462.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.0004281/0.8543, allocations: 168.2 kB / 0.5486 GB, free: 177 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008398/0.8627, allocations: 4.779 MB / 0.5532 GB, free: 175.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.8627, allocations: 0 / 0.5532 GB, free: 175.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002164/0.8649, allocations: 1.542 MB / 0.5548 GB, free: 174.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.8673, allocations: 345.3 kB / 0.5551 GB, free: 174.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.883, allocations: 9.816 MB / 0.5647 GB, free: 169.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002483/0.8855, allocations: 2.849 MB / 0.5674 GB, free: 168.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003868/0.8894, allocations: 1.73 MB / 0.5691 GB, free: 168.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005551/0.8899, allocations: 218.7 kB / 0.5693 GB, free: 168.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.292e-06/0.89, allocations: 3.875 kB / 0.5693 GB, free: 168.4 MB / 462.1 MB Notification: Performance of Templates: time 0.04994/0.9399, allocations: 32.77 MB / 0.6014 GB, free: 138.8 MB / 462.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)