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.001522/0.001522, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.002112/0.002112, allocations: 199.8 kB / 16.14 MB, free: 6.797 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.425/1.425, allocations: 205.1 MB / 222 MB, free: 4.742 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.001213/0.001213, allocations: 51.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2332, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03162/0.2648, allocations: 34.75 MB / 359.4 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0177/0.2826, allocations: 7.927 MB / 367.4 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005636/0.2883, allocations: 147.6 kB / 367.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004085/0.2924, allocations: 2.053 MB / 369.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003865/0.2963, allocations: 1.522 MB / 371.1 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001426/0.2977, allocations: 0.6475 MB / 371.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005627/0.3034, allocations: 4.793 MB / 376.5 MB, free: 120 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003179/0.3066, allocations: 2.688 MB / 379.2 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.3082, allocations: 1.129 MB / 380.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00219/0.3104, allocations: 1.885 MB / 382.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004511/0.3108, allocations: 192 kB / 382.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.3128, allocations: 1.119 MB / 383.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001298/0.3141, allocations: 1.539 MB / 385.1 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001667/0.3158, allocations: 1.817 MB / 386.9 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005178/0.321, allocations: 5.681 MB / 392.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.321, allocations: 3.938 kB / 392.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.321, allocations: 0 / 392.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.471e-05/0.3211, allocations: 0 / 392.6 MB, free: 15.97 MB / 334.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.006944/0.328, allocations: 4.133 MB / 396.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3281, allocations: 8.031 kB / 396.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0063/0.3344, allocations: 1.856 MB / 398.6 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003619/0.3381, allocations: 1.925 MB / 400.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.3382, allocations: 205.2 kB / 400.7 MB, free: 7.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004812/0.3387, allocations: 279.8 kB / 401 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01604/0.3548, allocations: 9.97 MB / 410.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.12e-05/0.3549, allocations: 35.62 kB / 411 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003415/0.3552, allocations: 139.9 kB / 411.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002846/0.3581, allocations: 1.848 MB / 413 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01649/0.3746, allocations: 8.536 MB / 421.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2344/0.609, allocations: 36.86 MB / 458.4 MB, free: 90.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/0.6198, allocations: 3.87 MB / 462.2 MB, free: 89.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002482/0.6224, allocations: 1.807 MB / 464 MB, free: 89.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0094/0.6318, allocations: 7.538 MB / 471.6 MB, free: 85.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.6319, allocations: 54.72 kB / 471.6 MB, free: 85.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.048e-06/0.6319, allocations: 0 / 471.6 MB, free: 85.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04521/0.6771, allocations: 17.44 MB / 489.1 MB, free: 72.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.6772, allocations: 149.5 kB / 489.2 MB, free: 72.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004626/0.6819, allocations: 3.485 MB / 492.7 MB, free: 69.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003099/0.6822, allocations: 53.06 kB / 492.8 MB, free: 69.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.6832, allocations: 2.729 MB / 495.5 MB, free: 66.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007104/0.6839, allocations: 0.6457 MB / 496.1 MB, free: 65.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00128/0.6852, allocations: 1.121 MB / 497.2 MB, free: 64.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/0.6853, allocations: 301.1 kB / 497.5 MB, free: 64.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002278/0.6876, allocations: 1.951 MB / 499.5 MB, free: 62.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00338/0.691, allocations: 5.37 MB / 0.493 GB, free: 55.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006552/0.6976, allocations: 7.932 MB / 0.5008 GB, free: 45.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.736e-05/0.6977, allocations: 36 kB / 0.5008 GB, free: 45.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01303/0.7107, allocations: 8.177 MB / 0.5088 GB, free: 37.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.936e-05/0.7108, allocations: 60 kB / 0.5089 GB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.7109, allocations: 120 kB / 0.509 GB, free: 37.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00376/0.7147, allocations: 1.3 MB / 0.5102 GB, free: 36.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003637/0.7183, allocations: 1.259 MB / 0.5115 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007185/0.7255, allocations: 6.1 MB / 0.5174 GB, free: 28.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005067/0.7307, allocations: 299.6 kB / 0.5177 GB, free: 28.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006606/0.7313, allocations: 340 kB / 0.518 GB, free: 28.1 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.002436/0.7338, allocations: 1.815 MB / 0.5198 GB, free: 26.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005065/0.7343, allocations: 306.2 kB / 0.5201 GB, free: 25.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006052/0.7403, allocations: 3.368 MB / 0.5234 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.354e-05/0.7404, allocations: 19.94 kB / 0.5234 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.7404, allocations: 4 kB / 0.5234 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.7404, allocations: 11.97 kB / 0.5234 GB, free: 22.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.7524, allocations: 7.607 MB / 0.5309 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.7524, allocations: 0 / 0.5309 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.7535, allocations: 235.7 kB / 0.5311 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003446/0.757, allocations: 1.121 MB / 0.5322 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/0.7571, allocations: 28 kB / 0.5322 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006638/0.7638, allocations: 5.726 MB / 0.5378 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.7638, allocations: 4 kB / 0.5378 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00833/0.7721, allocations: 5.701 MB / 0.5434 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.7735, allocations: 0.5789 MB / 0.5439 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000353/0.7739, allocations: 20 kB / 0.5439 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.775, allocations: 91.88 kB / 0.544 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/0.7753, allocations: 92.81 kB / 0.5441 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.7754, allocations: 51.81 kB / 0.5442 GB, free: 1.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003154/0.7786, allocations: 2.159 MB / 0.5463 GB, free: 14.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7786, allocations: 0 / 0.5463 GB, free: 14.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004418/0.783, allocations: 0.9076 MB / 0.5472 GB, free: 14.03 MB / 398.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.0004661/0.7835, allocations: 174.4 kB / 0.5473 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007729/0.7912, allocations: 4.792 MB / 0.552 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.7913, allocations: 4 kB / 0.552 GB, free: 9.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.7937, allocations: 1.531 MB / 0.5535 GB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.7959, allocations: 348.2 kB / 0.5538 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.8109, allocations: 9.813 MB / 0.5634 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002659/0.8136, allocations: 2.855 MB / 0.5662 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004187/0.8178, allocations: 1.723 MB / 0.5679 GB, free: 8.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006129/0.8184, allocations: 223.4 kB / 0.5681 GB, free: 8.512 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.8184, allocations: 0 / 0.5681 GB, free: 8.512 MB / 414.1 MB Notification: Performance of Templates: time 0.05751/0.876, allocations: 32.77 MB / 0.6001 GB, free: 7.754 MB / 446.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)