Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007991/0.007991, allocations: 100.9 kB / 15.73 MB, free: 6 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.001377/0.001377, allocations: 188.9 kB / 16.67 MB, free: 5.934 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.449/1.449, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.00121/0.00121, allocations: 50.25 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1113, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.0124/0.1237, allocations: 10.23 MB / 383.4 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1343, allocations: 3.787 MB / 387.2 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002422/0.1368, allocations: 51.88 kB / 387.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00521/0.1421, allocations: 1.946 MB / 389.2 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005679/0.1478, allocations: 1.661 MB / 390.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002063/0.1499, allocations: 0.6122 MB / 391.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006029/0.1559, allocations: 3.334 MB / 394.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004608/0.1606, allocations: 2.579 MB / 397.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003455/0.1641, allocations: 1.253 MB / 398.6 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003918/0.168, allocations: 1.674 MB / 400.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001233/0.1693, allocations: 252 kB / 400.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00345/0.1728, allocations: 1.022 MB / 401.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002463/0.1752, allocations: 1.562 MB / 403.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003938/0.1792, allocations: 1.833 MB / 405 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009829/0.1891, allocations: 5.851 MB / 410.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.1891, allocations: 0 / 410.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1891, allocations: 3.938 kB / 410.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001916/0.1893, allocations: 0 / 410.8 MB, free: 11.46 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01133/0.2007, allocations: 4.132 MB / 415 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.2007, allocations: 8.031 kB / 415 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006812/0.2076, allocations: 1.792 MB / 416.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004906/0.2125, allocations: 2.01 MB / 418.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.2127, allocations: 192.8 kB / 419 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006025/0.2133, allocations: 255.8 kB / 419.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.228, allocations: 8.423 MB / 427.6 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.2282, allocations: 43.64 kB / 427.7 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003467/0.2285, allocations: 127.9 kB / 427.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002877/0.2314, allocations: 1.695 MB / 429.5 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.2454, allocations: 7.11 MB / 436.6 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.269/0.5145, allocations: 34.08 MB / 470.7 MB, free: 45.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007353/0.5219, allocations: 3.286 MB / 474 MB, free: 45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/0.5238, allocations: 1.46 MB / 475.4 MB, free: 44.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006974/0.5308, allocations: 4.37 MB / 479.8 MB, free: 41.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.5309, allocations: 50 kB / 479.8 MB, free: 41.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 4.288e-06/0.5309, allocations: 0 / 479.8 MB, free: 41.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.02802/0.5589, allocations: 11.72 MB / 491.6 MB, free: 35.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.559, allocations: 151.3 kB / 491.7 MB, free: 35.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004313/0.5634, allocations: 3.736 MB / 495.5 MB, free: 33.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003068/0.5637, allocations: 48.06 kB / 495.5 MB, free: 33.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.5649, allocations: 2.857 MB / 498.4 MB, free: 31.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004766/0.5654, allocations: 0.5415 MB / 498.9 MB, free: 30.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/0.5665, allocations: 1.086 MB / 500 MB, free: 29.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.154e-05/0.5666, allocations: 305.1 kB / 0.4886 GB, free: 29.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.5684, allocations: 1.705 MB / 0.4902 GB, free: 27.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003036/0.5715, allocations: 5.132 MB / 0.4952 GB, free: 21.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005659/0.5772, allocations: 7.413 MB / 0.5025 GB, free: 12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-05/0.5772, allocations: 36 kB / 0.5025 GB, free: 11.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01062/0.5879, allocations: 6.745 MB / 0.5091 GB, free: 5.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.821e-05/0.588, allocations: 56 kB / 0.5091 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.5881, allocations: 120 kB / 0.5093 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005368/0.5886, allocations: 320.6 kB / 0.5096 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003436/0.5921, allocations: 1.252 MB / 0.5108 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002259/0.5943, allocations: 2.493 MB / 0.5132 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004146/0.5985, allocations: 283.3 kB / 0.5135 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005726/0.5991, allocations: 332 kB / 0.5138 GB, free: 252 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (668): * Single equations (assignments): 664 * 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 {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002715/0.6018, allocations: 1.795 MB / 0.5156 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006246/0.6025, allocations: 325.8 kB / 0.5159 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004997/0.6075, allocations: 2.367 MB / 0.5182 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.85e-05/0.6075, allocations: 16 kB / 0.5182 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.6076, allocations: 4 kB / 0.5182 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.6076, allocations: 7.969 kB / 0.5182 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/0.6224, allocations: 5.917 MB / 0.524 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/0.6224, allocations: 0 / 0.524 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009085/0.6234, allocations: 171.7 kB / 0.5242 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002266/0.6256, allocations: 0.7186 MB / 0.5249 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00017/0.6258, allocations: 20 kB / 0.5249 GB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006143/0.632, allocations: 4.808 MB / 0.5296 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.632, allocations: 3.875 kB / 0.5296 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007288/0.6393, allocations: 4.35 MB / 0.5338 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.6407, allocations: 0.5423 MB / 0.5344 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006716/0.6413, allocations: 23.28 kB / 0.5344 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/0.6428, allocations: 63.91 kB / 0.5344 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.643, allocations: 68.5 kB / 0.5345 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.6431, allocations: 36 kB / 0.5345 GB, free: 10.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004451/0.6476, allocations: 2.331 MB / 0.5368 GB, free: 8.449 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6476, allocations: 4 kB / 0.5368 GB, free: 8.445 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005286/0.6529, allocations: 0.8236 MB / 0.5376 GB, free: 7.625 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005141/0.6535, allocations: 157.9 kB / 0.5378 GB, free: 7.469 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006828/0.6603, allocations: 4.05 MB / 0.5417 GB, free: 3.434 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.6603, allocations: 4.188 kB / 0.5417 GB, free: 3.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001661/0.662, allocations: 1.117 MB / 0.5428 GB, free: 2.305 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003366/0.6654, allocations: 382.6 kB / 0.5432 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/0.6809, allocations: 7.395 MB / 0.5504 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004436/0.6854, allocations: 2.795 MB / 0.5531 GB, free: 7.691 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004335/0.6897, allocations: 1.654 MB / 0.5548 GB, free: 6.035 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008694/0.6906, allocations: 207.4 kB / 0.5549 GB, free: 5.832 MB / 430.1 MB Notification: Performance of SimCode: time 1.323e-06/0.6907, allocations: 4 kB / 0.555 GB, free: 5.828 MB / 430.1 MB Notification: Performance of Templates: time 0.05354/0.7442, allocations: 27.95 MB / 0.5822 GB, free: 9.93 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1)