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.001123/0.001123, allocations: 102.9 kB / 16.62 MB, free: 6.805 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.001143/0.001143, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.379/1.379, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001451/0.001451, allocations: 55.91 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09355/0.09502, allocations: 46.62 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03343/0.1285, allocations: 34.77 MB / 360.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01807/0.1466, allocations: 7.814 MB / 368.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007937/0.1546, allocations: 147.6 kB / 368.9 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00452/0.1591, allocations: 1.991 MB / 370.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004742/0.1639, allocations: 1.538 MB / 372.4 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.1658, allocations: 0.6358 MB / 373 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005503/0.1714, allocations: 3.42 MB / 376.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.181/0.3524, allocations: 2.846 MB / 379.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002795/0.3552, allocations: 1.285 MB / 380.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003794/0.359, allocations: 1.96 MB / 382.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009727/0.36, allocations: 262.6 kB / 382.8 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.3624, allocations: 1.124 MB / 383.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001933/0.3644, allocations: 1.603 MB / 385.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002588/0.367, allocations: 1.888 MB / 387.4 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006538/0.3735, allocations: 5.773 MB / 393.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3736, allocations: 4.812 kB / 393.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.3736, allocations: 0 / 393.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002926/0.3739, allocations: 0 / 393.2 MB, free: 9.164 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.01198/0.3859, allocations: 4.131 MB / 397.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.386, allocations: 12.08 kB / 397.3 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006353/0.3923, allocations: 1.855 MB / 399.2 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.3955, allocations: 1.927 MB / 401.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.3957, allocations: 216.8 kB / 401.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005017/0.3962, allocations: 269.8 kB / 401.6 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/0.4121, allocations: 9.974 MB / 411.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.181e-05/0.4122, allocations: 43.62 kB / 411.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003624/0.4126, allocations: 135.5 kB / 411.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002838/0.4154, allocations: 1.853 MB / 413.6 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01728/0.4327, allocations: 8.54 MB / 422.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04763/0.4804, allocations: 36.86 MB / 459 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009854/0.4903, allocations: 3.868 MB / 462.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002652/0.493, allocations: 1.814 MB / 464.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/0.5055, allocations: 7.521 MB / 472.2 MB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.885e-05/0.5057, allocations: 50.69 kB / 472.2 MB, free: 5.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.839e-06/0.5057, allocations: 2.156 kB / 472.2 MB, free: 5.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05267/0.5583, allocations: 17.45 MB / 489.7 MB, free: 3.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.744e-05/0.5585, allocations: 156.1 kB / 489.8 MB, free: 3.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005595/0.5641, allocations: 3.478 MB / 493.3 MB, free: 112 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00038/0.5645, allocations: 53.7 kB / 493.4 MB, free: 52 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001915/0.5664, allocations: 2.729 MB / 496.1 MB, free: 13.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008243/0.5672, allocations: 0.6453 MB / 496.8 MB, free: 12.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00151/0.5687, allocations: 1.117 MB / 497.9 MB, free: 11.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.968e-05/0.5689, allocations: 305.1 kB / 498.2 MB, free: 11.26 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002955/0.5718, allocations: 1.955 MB / 0.4884 GB, free: 9.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005269/0.5771, allocations: 5.372 MB / 0.4936 GB, free: 2.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/0.5873, allocations: 7.928 MB / 0.5014 GB, free: 9.141 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-05/0.5874, allocations: 32 kB / 0.5014 GB, free: 9.109 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01609/0.6035, allocations: 8.174 MB / 0.5094 GB, free: 1.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.287e-05/0.6036, allocations: 67.78 kB / 0.5095 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/0.6038, allocations: 120 kB / 0.5096 GB, free: 1.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003931/0.6077, allocations: 1.297 MB / 0.5108 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0042/0.6119, allocations: 1.266 MB / 0.5121 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00945/0.6214, allocations: 6.553 MB / 0.5185 GB, free: 8.402 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00398/0.6254, allocations: 295.6 kB / 0.5188 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000615/0.626, allocations: 347.9 kB / 0.5191 GB, free: 7.773 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.002912/0.629, allocations: 1.806 MB / 0.5209 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005273/0.6295, allocations: 308 kB / 0.5212 GB, free: 5.762 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006884/0.6364, allocations: 3.373 MB / 0.5244 GB, free: 2.375 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.01e-05/0.6364, allocations: 22.03 kB / 0.5245 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.6364, allocations: 4 kB / 0.5245 GB, free: 2.352 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/0.6365, allocations: 11.97 kB / 0.5245 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/0.6514, allocations: 7.612 MB / 0.5319 GB, free: 10.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.6515, allocations: 4 kB / 0.5319 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.6526, allocations: 239.7 kB / 0.5321 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003621/0.6562, allocations: 1.116 MB / 0.5332 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001522/0.6564, allocations: 35.98 kB / 0.5333 GB, free: 9.273 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008256/0.6647, allocations: 6.167 MB / 0.5393 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6647, allocations: 0 / 0.5393 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1619/0.8266, allocations: 5.698 MB / 0.5449 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/0.8282, allocations: 0.5693 MB / 0.5454 GB, free: 177.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004364/0.8287, allocations: 23.55 kB / 0.5454 GB, free: 177.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.83, allocations: 89.27 kB / 0.5455 GB, free: 177.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002786/0.8303, allocations: 89.52 kB / 0.5456 GB, free: 177.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.8304, allocations: 46.06 kB / 0.5457 GB, free: 177.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003829/0.8342, allocations: 2.157 MB / 0.5478 GB, free: 177.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8342, allocations: 1.984 kB / 0.5478 GB, free: 177.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004973/0.8392, allocations: 0.9145 MB / 0.5487 GB, free: 177.4 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.0005033/0.8397, allocations: 175.3 kB / 0.5488 GB, free: 177.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00911/0.8489, allocations: 5.549 MB / 0.5542 GB, free: 175.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.8489, allocations: 3.062 kB / 0.5542 GB, free: 175.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002132/0.851, allocations: 1.533 MB / 0.5557 GB, free: 175.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00286/0.8539, allocations: 359.1 kB / 0.5561 GB, free: 174.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.869, allocations: 9.808 MB / 0.5657 GB, free: 169.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002394/0.8715, allocations: 2.864 MB / 0.5685 GB, free: 168.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003376/0.8749, allocations: 1.698 MB / 0.5701 GB, free: 168.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.8754, allocations: 214.7 kB / 0.5703 GB, free: 168.2 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/0.8754, allocations: 3.938 kB / 0.5703 GB, free: 168.2 MB / 462.1 MB Notification: Performance of Templates: time 0.05/0.9254, allocations: 34.08 MB / 0.6036 GB, free: 136.3 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)