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.0007774/0.0007774, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.005084/0.005085, allocations: 169.8 kB / 16.26 MB, free: 6.676 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.395/1.395, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005208/0.0005207, allocations: 20 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2621, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03373/0.2959, allocations: 33.77 MB / 360.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02034/0.3163, allocations: 7.857 MB / 368.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008467/0.3249, allocations: 143.6 kB / 368.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.3269, allocations: 386 kB / 369.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005526/0.3324, allocations: 1.538 MB / 370.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002349/0.3348, allocations: 0.6279 MB / 371.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007921/0.3427, allocations: 4.793 MB / 376.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007017/0.3498, allocations: 3.748 MB / 379.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002449/0.3523, allocations: 0.9646 MB / 380.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003192/0.3555, allocations: 1.682 MB / 382.5 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007962/0.3564, allocations: 120 kB / 382.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002613/0.359, allocations: 1.049 MB / 383.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00174/0.3607, allocations: 1.441 MB / 385.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002245/0.363, allocations: 1.717 MB / 386.9 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006212/0.3692, allocations: 5.531 MB / 392.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3693, allocations: 0 / 392.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3693, allocations: 0 / 392.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001469/0.3694, allocations: 4 kB / 392.4 MB, free: 1.73 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.006761/0.3762, allocations: 3.384 MB / 395.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.3763, allocations: 8.031 kB / 395.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007101/0.3834, allocations: 1.903 MB / 397.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004073/0.3875, allocations: 1.929 MB / 399.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.3877, allocations: 213.2 kB / 399.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006929/0.3884, allocations: 267.8 kB / 400.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01973/0.4081, allocations: 9.985 MB / 410.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.4083, allocations: 43.58 kB / 410.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003797/0.4087, allocations: 135.9 kB / 410.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003361/0.4121, allocations: 1.86 MB / 412.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/0.4313, allocations: 8.56 MB / 420.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2127/0.6441, allocations: 36.84 MB / 457.5 MB, free: 105.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/0.6542, allocations: 3.869 MB / 461.4 MB, free: 104.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.6567, allocations: 1.813 MB / 463.2 MB, free: 104.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009525/0.6663, allocations: 7.534 MB / 470.7 MB, free: 100.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.6663, allocations: 49.78 kB / 470.8 MB, free: 100.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.92e-06/0.6663, allocations: 0.9844 kB / 470.8 MB, free: 100.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04778/0.7141, allocations: 17.42 MB / 488.2 MB, free: 89.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.7142, allocations: 145.5 kB / 488.3 MB, free: 89.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004654/0.7189, allocations: 3.481 MB / 491.8 MB, free: 85.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005338/0.7194, allocations: 48.98 kB / 491.9 MB, free: 85.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001893/0.7213, allocations: 2.739 MB / 494.6 MB, free: 83.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006265/0.722, allocations: 0.6383 MB / 495.2 MB, free: 82.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004742/0.7225, allocations: 483.2 kB / 495.7 MB, free: 81.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.386e-05/0.7225, allocations: 301.1 kB / 496 MB, free: 81.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002349/0.7249, allocations: 1.955 MB / 498 MB, free: 79.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003348/0.7282, allocations: 5.375 MB / 0.4915 GB, free: 72.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007456/0.7357, allocations: 7.932 MB / 0.4993 GB, free: 63.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/0.7359, allocations: 36.66 kB / 0.4993 GB, free: 63.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01551/0.7514, allocations: 8.17 MB / 0.5073 GB, free: 54.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.631e-05/0.7516, allocations: 56.19 kB / 0.5073 GB, free: 54.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/0.7517, allocations: 124 kB / 0.5075 GB, free: 54.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003912/0.7557, allocations: 1.304 MB / 0.5087 GB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004265/0.7599, allocations: 1.26 MB / 0.51 GB, free: 52.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007859/0.7678, allocations: 6.096 MB / 0.5159 GB, free: 45.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004547/0.7724, allocations: 300.5 kB / 0.5162 GB, free: 45.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009221/0.7734, allocations: 341.2 kB / 0.5165 GB, free: 45.34 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.003709/0.7771, allocations: 1.814 MB / 0.5183 GB, free: 43.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000778/0.7779, allocations: 315.8 kB / 0.5186 GB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007188/0.7851, allocations: 3.362 MB / 0.5219 GB, free: 39.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.881e-05/0.7851, allocations: 24.73 kB / 0.5219 GB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.7852, allocations: 4 kB / 0.5219 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.7852, allocations: 7.984 kB / 0.5219 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/0.7994, allocations: 7.603 MB / 0.5293 GB, free: 32.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/0.7994, allocations: 0 / 0.5293 GB, free: 32.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.8006, allocations: 239.7 kB / 0.5296 GB, free: 31.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003666/0.8043, allocations: 1.116 MB / 0.5307 GB, free: 30.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000287/0.8046, allocations: 31.98 kB / 0.5307 GB, free: 30.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00716/0.8118, allocations: 5.725 MB / 0.5363 GB, free: 24.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.8118, allocations: 4.031 kB / 0.5363 GB, free: 24.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008792/0.8206, allocations: 5.709 MB / 0.5419 GB, free: 19.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/0.8223, allocations: 0.5751 MB / 0.5424 GB, free: 18.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005538/0.8229, allocations: 24.7 kB / 0.5425 GB, free: 18.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.8242, allocations: 94.3 kB / 0.5425 GB, free: 18.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/0.8246, allocations: 88.81 kB / 0.5426 GB, free: 18.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.8247, allocations: 55.92 kB / 0.5427 GB, free: 18.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003403/0.8281, allocations: 2.158 MB / 0.5448 GB, free: 16.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8281, allocations: 0 / 0.5448 GB, free: 16.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005278/0.8334, allocations: 0.9153 MB / 0.5457 GB, free: 15.25 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.0004908/0.8339, allocations: 168.9 kB / 0.5458 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007373/0.8413, allocations: 4.786 MB / 0.5505 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.8414, allocations: 0 / 0.5505 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.8434, allocations: 1.536 MB / 0.552 GB, free: 8.754 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.8461, allocations: 343.9 kB / 0.5523 GB, free: 8.418 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/0.8601, allocations: 9.918 MB / 0.562 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00355/0.8638, allocations: 2.851 MB / 0.5648 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.004584/0.8684, allocations: 1.727 MB / 0.5665 GB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000858/0.8692, allocations: 215.4 kB / 0.5667 GB, free: 9.629 MB / 398.1 MB Notification: Performance of SimCode: time 1.793e-06/0.8693, allocations: 0 / 0.5667 GB, free: 9.629 MB / 398.1 MB Notification: Performance of Templates: time 0.06684/0.9361, allocations: 32.28 MB / 0.5982 GB, free: 9.359 MB / 430.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)