Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005408/0.005408, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001276/0.001276, allocations: 192.4 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.443/1.443, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001124/0.001124, allocations: 53.27 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1033, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01245/0.1158, allocations: 12.02 MB / 385.2 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008696/0.1246, allocations: 4.2 MB / 389.4 MB, free: 1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.1263, allocations: 71.75 kB / 389.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005277/0.1316, allocations: 2.752 MB / 392.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005823/0.1375, allocations: 1.972 MB / 394.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.1397, allocations: 0.8073 MB / 395 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007226/0.1469, allocations: 4.624 MB / 399.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004313/0.1512, allocations: 3.556 MB / 403.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00275/0.154, allocations: 1.705 MB / 404.9 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003472/0.1575, allocations: 2.336 MB / 407.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009502/0.1585, allocations: 352 kB / 407.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.161, allocations: 1.272 MB / 408.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002185/0.1632, allocations: 2.108 MB / 411 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00271/0.166, allocations: 2.435 MB / 413.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008983/0.175, allocations: 7.567 MB / 421 MB, free: 1.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.175, allocations: 0 / 421 MB, free: 1.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.175, allocations: 0 / 421 MB, free: 1.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002403/0.1753, allocations: 0 / 421 MB, free: 1.301 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.011/0.1863, allocations: 5.425 MB / 426.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1863, allocations: 8.031 kB / 426.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008337/0.1947, allocations: 2.15 MB / 428.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005759/0.2005, allocations: 2.638 MB / 431.2 MB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003104/0.2008, allocations: 274.9 kB / 431.4 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/0.2024, allocations: 435.6 kB / 431.9 MB, free: 6.234 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02489/0.2273, allocations: 12.21 MB / 444.1 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.2275, allocations: 51.58 kB / 444.1 MB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006223/0.2281, allocations: 171.8 kB / 444.3 MB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003311/0.2314, allocations: 2.166 MB / 446.5 MB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2365/0.4679, allocations: 10.2 MB / 456.7 MB, free: 63.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04835/0.5163, allocations: 44.21 MB / 0.4891 GB, free: 30.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/0.5264, allocations: 4.617 MB / 0.4936 GB, free: 26.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00193/0.5284, allocations: 1.72 MB / 0.4953 GB, free: 25.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009602/0.538, allocations: 8.24 MB / 0.5034 GB, free: 16.58 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.5381, allocations: 67.73 kB / 0.5034 GB, free: 16.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 4.078e-06/0.5381, allocations: 0 / 0.5034 GB, free: 16.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03574/0.5738, allocations: 16.19 MB / 0.5192 GB, free: 412 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001244/0.5751, allocations: 1.697 MB / 0.5209 GB, free: 14.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005672/0.5808, allocations: 4.235 MB / 0.525 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003201/0.5811, allocations: 52.14 kB / 0.5251 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002288/0.5834, allocations: 3.552 MB / 0.5286 GB, free: 6.719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/0.5844, allocations: 0.8349 MB / 0.5294 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/0.5861, allocations: 1.373 MB / 0.5307 GB, free: 4.516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.5862, allocations: 301.1 kB / 0.531 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003325/0.5896, allocations: 2.262 MB / 0.5332 GB, free: 1.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006284/0.5958, allocations: 6.398 MB / 0.5395 GB, free: 9.508 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.6067, allocations: 9.331 MB / 0.5486 GB, free: 14.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.121e-05/0.6068, allocations: 40 kB / 0.5486 GB, free: 14.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02355/0.6303, allocations: 10.08 MB / 0.5585 GB, free: 3.988 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.6305, allocations: 64 kB / 0.5585 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01159/0.6421, allocations: 3.795 MB / 0.5622 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/0.6522, allocations: 2.164 MB / 0.5643 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005298/0.6575, allocations: 1.579 MB / 0.5659 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008953/0.6665, allocations: 6.6 MB / 0.5723 GB, free: 5.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005475/0.672, allocations: 436.1 kB / 0.5727 GB, free: 5.051 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00131/0.6734, allocations: 416 kB / 0.5731 GB, free: 4.645 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (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],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003952/0.6773, allocations: 2.22 MB / 0.5753 GB, free: 2.414 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00072/0.678, allocations: 397.4 kB / 0.5757 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006488/0.6845, allocations: 3.281 MB / 0.5789 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005144/0.6897, allocations: 2.745 MB / 0.5816 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.98e-05/0.6898, allocations: 4 kB / 0.5816 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.645e-05/0.6898, allocations: 11.95 kB / 0.5816 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02003/0.7098, allocations: 10.35 MB / 0.5917 GB, free: 1.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.754e-05/0.7099, allocations: 13.03 kB / 0.5917 GB, free: 1.328 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.7114, allocations: 367.4 kB / 0.5921 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002924/0.7144, allocations: 0.9827 MB / 0.593 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002182/0.7146, allocations: 63.98 kB / 0.5931 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005206/0.7198, allocations: 4.905 MB / 0.5979 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001021/0.7209, allocations: 1.557 MB / 0.5994 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009287/0.7302, allocations: 5.941 MB / 0.6052 GB, free: 2.883 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001976/0.7322, allocations: 0.6701 MB / 0.6058 GB, free: 2.191 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005319/0.7327, allocations: 59.98 kB / 0.6059 GB, free: 2.133 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001702/0.7345, allocations: 143.8 kB / 0.606 GB, free: 1.992 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/0.7348, allocations: 180.4 kB / 0.6062 GB, free: 1.816 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/0.735, allocations: 80.53 kB / 0.6063 GB, free: 1.738 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005548/0.7405, allocations: 2.605 MB / 0.6088 GB, free: 15.12 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.7406, allocations: 0 / 0.6088 GB, free: 15.12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006883/0.7474, allocations: 1.168 MB / 0.61 GB, free: 13.96 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007151/0.7482, allocations: 225.7 kB / 0.6102 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0113/0.7595, allocations: 6.032 MB / 0.6161 GB, free: 7.656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/0.7596, allocations: 0 / 0.6161 GB, free: 7.656 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004598/0.7642, allocations: 2.196 MB / 0.6182 GB, free: 5.395 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003937/0.7682, allocations: 0.5024 MB / 0.6187 GB, free: 4.895 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2568/1.025, allocations: 10.8 MB / 0.6293 GB, free: 158.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006837/1.032, allocations: 3.46 MB / 0.6326 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005773/1.038, allocations: 2.026 MB / 0.6346 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000861/1.039, allocations: 277.2 kB / 0.6349 GB, free: 157.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.272e-06/1.039, allocations: 0 / 0.6349 GB, free: 157.9 MB / 494.1 MB Notification: Performance of Templates: time 0.06401/1.103, allocations: 38.45 MB / 0.6724 GB, free: 132.5 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)