Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001071, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001309/0.001309, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.4 MB / 222.1 MB, free: 5.379 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.0006475/0.0006477, allocations: 15.98 kB / 278.9 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2676, allocations: 47.59 MB / 326.5 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.03898/0.3066, allocations: 38.2 MB / 364.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02593/0.3326, allocations: 8.672 MB / 373.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009587/0.3422, allocations: 179.6 kB / 373.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007594/0.3498, allocations: 1.967 MB / 375.5 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01987/0.3698, allocations: 5.899 MB / 381.4 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003634/0.3734, allocations: 0.5734 MB / 382 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007101/0.3806, allocations: 4.262 MB / 386.2 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008191/0.3888, allocations: 4.179 MB / 390.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004133/0.393, allocations: 1.203 MB / 391.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003986/0.397, allocations: 1.803 MB / 393.4 MB, free: 312 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001163/0.3982, allocations: 140 kB / 393.5 MB, free: 172 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003114/0.4013, allocations: 0.8971 MB / 394.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003225/0.4046, allocations: 1.601 MB / 396 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002225/0.4068, allocations: 0.7999 MB / 396.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007784/0.4146, allocations: 5.105 MB / 401.9 MB, free: 7.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.4147, allocations: 0 / 401.9 MB, free: 7.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.4147, allocations: 0 / 401.9 MB, free: 7.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003152/0.415, allocations: 0 / 401.9 MB, free: 7.738 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01099/0.4261, allocations: 3.801 MB / 405.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.4261, allocations: 12.03 kB / 405.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007147/0.4333, allocations: 1.925 MB / 407.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004734/0.438, allocations: 2.001 MB / 409.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002102/0.4383, allocations: 246.2 kB / 409.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/0.4394, allocations: 395.6 kB / 410.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01948/0.4589, allocations: 10.06 MB / 420.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.934e-05/0.459, allocations: 35.69 kB / 420.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003987/0.4594, allocations: 155.9 kB / 420.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002735/0.4622, allocations: 1.86 MB / 422.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01736/0.4796, allocations: 8.3 MB / 430.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2706/0.7502, allocations: 39.36 MB / 470.1 MB, free: 86.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009471/0.7597, allocations: 3.997 MB / 474.1 MB, free: 85.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002094/0.7618, allocations: 1.421 MB / 475.5 MB, free: 85.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01113/0.773, allocations: 7.633 MB / 483.1 MB, free: 80.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.7731, allocations: 54.45 kB / 483.2 MB, free: 80.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=152): time 4.007e-06/0.7731, allocations: 3.125 kB / 483.2 MB, free: 80.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=159): time 0.02922/0.8023, allocations: 12.36 MB / 495.6 MB, free: 71.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001018/0.8034, allocations: 1.594 MB / 497.1 MB, free: 69.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005992/0.8094, allocations: 3.798 MB / 0.4892 GB, free: 65.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003657/0.8098, allocations: 46.64 kB / 0.4892 GB, free: 65.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001716/0.8115, allocations: 3.113 MB / 0.4923 GB, free: 62.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007301/0.8123, allocations: 0.6567 MB / 0.4929 GB, free: 61.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004391/0.8127, allocations: 120 kB / 0.493 GB, free: 61.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003214/0.813, allocations: 0.5665 MB / 0.4936 GB, free: 61.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/0.8159, allocations: 2.011 MB / 0.4956 GB, free: 59.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004364/0.8203, allocations: 5.946 MB / 0.5014 GB, free: 51.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004501/0.8248, allocations: 3.369 MB / 0.5047 GB, free: 48.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/0.8249, allocations: 40 kB / 0.5047 GB, free: 48.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02092/0.8459, allocations: 9.676 MB / 0.5141 GB, free: 38.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.8461, allocations: 64 kB / 0.5142 GB, free: 38.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01007/0.8562, allocations: 3.743 MB / 0.5179 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/0.8664, allocations: 2.656 MB / 0.5205 GB, free: 31.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004244/0.8707, allocations: 1.368 MB / 0.5218 GB, free: 30.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008255/0.8789, allocations: 7.198 MB / 0.5288 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004879/0.8839, allocations: 400.7 kB / 0.5292 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/0.8851, allocations: 392.7 kB / 0.5296 GB, free: 22.21 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of prepare postOptimizeDAE: time 0.003768/0.8888, allocations: 2.01 MB / 0.5315 GB, free: 20.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000634/0.8895, allocations: 331.6 kB / 0.5319 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006075/0.8956, allocations: 3.121 MB / 0.5349 GB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004846/0.9005, allocations: 2.674 MB / 0.5375 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.9005, allocations: 4 kB / 0.5375 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.048e-05/0.9005, allocations: 19.84 kB / 0.5375 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/0.9163, allocations: 8.553 MB / 0.5459 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.9164, allocations: 0 / 0.5459 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008443/0.9172, allocations: 191.7 kB / 0.5461 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003877/0.9211, allocations: 1.432 MB / 0.5475 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001589/0.9213, allocations: 40.83 kB / 0.5475 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005603/0.9269, allocations: 5.71 MB / 0.5531 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001109/0.928, allocations: 1.456 MB / 0.5545 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009134/0.9372, allocations: 5.282 MB / 0.5597 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009947/0.9382, allocations: 380.7 kB / 0.56 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006991/0.9389, allocations: 28 kB / 0.5601 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/0.9406, allocations: 123.8 kB / 0.5602 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.9408, allocations: 105.9 kB / 0.5603 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.941, allocations: 43.98 kB / 0.5603 GB, free: 6.086 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004451/0.9454, allocations: 2.326 MB / 0.5626 GB, free: 3.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9454, allocations: 0 / 0.5626 GB, free: 3.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006078/0.9515, allocations: 1.031 MB / 0.5636 GB, free: 2.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006301/0.9522, allocations: 167.2 kB / 0.5638 GB, free: 2.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01092/0.9631, allocations: 5.483 MB / 0.5691 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.9631, allocations: 0 / 0.5691 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003813/0.967, allocations: 2.012 MB / 0.5711 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/0.9701, allocations: 375.1 kB / 0.5714 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/0.9919, allocations: 10.71 MB / 0.5819 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00538/0.9973, allocations: 3.107 MB / 0.5849 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005143/1.002, allocations: 1.807 MB / 0.5867 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007874/1.003, allocations: 223.4 kB / 0.5869 GB, free: 10.67 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/1.003, allocations: 4 kB / 0.5869 GB, free: 10.67 MB / 430.1 MB Notification: Performance of Templates: time 0.2787/1.282, allocations: 35.95 MB / 0.622 GB, free: 152.3 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)