Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005806/0.005806, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.001245/0.001245, allocations: 199 kB / 16.67 MB, free: 5.531 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.417/1.417, allocations: 205.1 MB / 222.5 MB, free: 12.24 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.001197/0.001197, allocations: 55.92 kB / 326.6 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.113, allocations: 46.61 MB / 373.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2524/0.3655, allocations: 7.431 MB / 380.6 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006509/0.372, allocations: 3.247 MB / 383.8 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.3733, allocations: 37.47 kB / 383.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.3755, allocations: 1.022 MB / 384.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00449/0.38, allocations: 1.365 MB / 386.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.3814, allocations: 461.8 kB / 386.7 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005055/0.3865, allocations: 2.64 MB / 389.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002442/0.389, allocations: 1.527 MB / 390.9 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002008/0.391, allocations: 0.8415 MB / 391.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002346/0.3934, allocations: 1.223 MB / 393 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005982/0.394, allocations: 170.8 kB / 393.1 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.3964, allocations: 1.025 MB / 394.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.3975, allocations: 1.116 MB / 395.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.3989, allocations: 1.301 MB / 396.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00571/0.4046, allocations: 4.384 MB / 400.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.4046, allocations: 5.062 kB / 400.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4046, allocations: 0 / 400.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001656/0.4048, allocations: 0 / 400.9 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.009289/0.4141, allocations: 3.141 MB / 404.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.4142, allocations: 10.12 kB / 404.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007511/0.4217, allocations: 1.746 MB / 405.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004194/0.4259, allocations: 1.451 MB / 407.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.4261, allocations: 141 kB / 407.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/0.4272, allocations: 258.1 kB / 407.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01294/0.4401, allocations: 6.662 MB / 414.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.719e-05/0.4402, allocations: 23.81 kB / 414.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002719/0.4405, allocations: 87.89 kB / 414.5 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002107/0.4426, allocations: 1.364 MB / 415.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.4548, allocations: 6.029 MB / 421.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0344/0.4892, allocations: 25.59 MB / 447.4 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007294/0.4965, allocations: 2.66 MB / 450.1 MB, free: 1.082 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001392/0.498, allocations: 1.036 MB / 451.1 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005899/0.5039, allocations: 3.905 MB / 455 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.504, allocations: 55 kB / 455.1 MB, free: 11.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 3.136e-06/0.504, allocations: 0 / 455.1 MB, free: 11.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02599/0.53, allocations: 10.44 MB / 465.5 MB, free: 1.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00137/0.5314, allocations: 1.686 MB / 467.2 MB, free: 15.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/0.5351, allocations: 2.738 MB / 470 MB, free: 12.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000284/0.5355, allocations: 41.7 kB / 470 MB, free: 12.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/0.5369, allocations: 2.175 MB / 472.2 MB, free: 10.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006103/0.5375, allocations: 0.5234 MB / 472.7 MB, free: 9.824 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/0.5386, allocations: 0.929 MB / 473.6 MB, free: 8.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.76e-05/0.5387, allocations: 309.1 kB / 473.9 MB, free: 8.578 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002338/0.5411, allocations: 1.648 MB / 475.6 MB, free: 6.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004465/0.5455, allocations: 4.46 MB / 480 MB, free: 1.055 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007634/0.5532, allocations: 6.538 MB / 486.6 MB, free: 9.121 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.759e-05/0.5533, allocations: 28 kB / 486.6 MB, free: 9.094 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02199/0.5753, allocations: 8.015 MB / 494.6 MB, free: 1.059 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.699e-05/0.5754, allocations: 48 kB / 494.7 MB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01178/0.5872, allocations: 3.492 MB / 498.2 MB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/0.5992, allocations: 2.582 MB / 0.489 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00335/0.6026, allocations: 1.01 MB / 0.49 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0142/0.6168, allocations: 9.703 MB / 0.4995 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003672/0.6206, allocations: 327.6 kB / 0.4998 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008481/0.6214, allocations: 284 kB / 0.5 GB, free: 15.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002857/0.6243, allocations: 1.427 MB / 0.5014 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000556/0.6249, allocations: 246.4 kB / 0.5017 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0067/0.6316, allocations: 2.835 MB / 0.5044 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005778/0.6374, allocations: 2.509 MB / 0.5069 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.6374, allocations: 4 kB / 0.5069 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.6374, allocations: 8.109 kB / 0.5069 GB, free: 8.238 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.6512, allocations: 6.883 MB / 0.5136 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.6512, allocations: 4 kB / 0.5136 GB, free: 1.258 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008457/0.6521, allocations: 179.7 kB / 0.5138 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0049/0.657, allocations: 1.438 MB / 0.5152 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001834/0.6572, allocations: 31.97 kB / 0.5152 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/0.6681, allocations: 7.92 MB / 0.523 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001126/0.6693, allocations: 1.533 MB / 0.5245 GB, free: 5.727 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008911/0.6782, allocations: 4.878 MB / 0.5292 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007144/0.6789, allocations: 311.5 kB / 0.5295 GB, free: 496 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004579/0.6794, allocations: 24.47 kB / 0.5295 GB, free: 472 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.6807, allocations: 111.8 kB / 0.5297 GB, free: 360 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002602/0.681, allocations: 88.3 kB / 0.5297 GB, free: 272 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.6811, allocations: 35.98 kB / 0.5298 GB, free: 236 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003093/0.6842, allocations: 1.701 MB / 0.5314 GB, free: 14.52 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6842, allocations: 3.938 kB / 0.5314 GB, free: 14.52 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004152/0.6884, allocations: 0.789 MB / 0.5322 GB, free: 13.73 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004331/0.6889, allocations: 163.5 kB / 0.5324 GB, free: 13.56 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007755/0.6966, allocations: 4.45 MB / 0.5367 GB, free: 9.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.6967, allocations: 0 / 0.5367 GB, free: 9.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00332/0.7, allocations: 1.725 MB / 0.5384 GB, free: 7.289 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/0.702, allocations: 273.5 kB / 0.5387 GB, free: 7.023 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.7133, allocations: 6.641 MB / 0.5451 GB, free: 324 kB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1816/0.8949, allocations: 2.295 MB / 0.5474 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004283/0.8993, allocations: 1.405 MB / 0.5488 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006639/0.8999, allocations: 167.5 kB / 0.5489 GB, free: 151.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.102e-06/0.9, allocations: 3.906 kB / 0.5489 GB, free: 151.7 MB / 478.1 MB Notification: Performance of Templates: time 0.05783/0.9578, allocations: 28.59 MB / 0.5768 GB, free: 141.7 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)