Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.004941/0.004941, allocations: 98.95 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.001166/0.001166, allocations: 201.8 kB / 16.68 MB, free: 5.977 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.439/1.439, 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.001191/0.001191, allocations: 55.92 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 46.61 MB / 373.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2659/0.3745, allocations: 10.25 MB / 383.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008999/0.3835, allocations: 3.786 MB / 387.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002324/0.3859, allocations: 58.81 kB / 387.2 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004784/0.3907, allocations: 1.946 MB / 389.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005778/0.3965, allocations: 1.697 MB / 390.9 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001948/0.3985, allocations: 0.6144 MB / 391.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00568/0.4042, allocations: 3.34 MB / 394.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003786/0.408, allocations: 2.58 MB / 397.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002157/0.4102, allocations: 1.247 MB / 398.7 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.4125, allocations: 1.674 MB / 400.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007095/0.4132, allocations: 254.5 kB / 400.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002407/0.4156, allocations: 1.029 MB / 401.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002111/0.4177, allocations: 1.586 MB / 403.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003368/0.4211, allocations: 1.834 MB / 405 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01094/0.4321, allocations: 5.849 MB / 410.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.4321, allocations: 1.375 kB / 410.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4321, allocations: 0 / 410.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003471/0.4325, allocations: 0 / 410.9 MB, free: 9.098 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01213/0.4446, allocations: 4.123 MB / 415 MB, free: 5.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.4447, allocations: 19.95 kB / 415 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006781/0.4515, allocations: 1.792 MB / 416.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005268/0.4568, allocations: 2.003 MB / 418.8 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.4569, allocations: 192.8 kB / 419 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005371/0.4575, allocations: 251.8 kB / 419.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.4718, allocations: 8.435 MB / 427.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.846e-05/0.4719, allocations: 43.67 kB / 427.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003201/0.4723, allocations: 127.8 kB / 427.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002772/0.475, allocations: 1.695 MB / 429.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/0.4896, allocations: 7.098 MB / 436.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04434/0.5339, allocations: 34.09 MB / 470.7 MB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007325/0.5413, allocations: 3.29 MB / 474 MB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.5432, allocations: 1.462 MB / 475.5 MB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008131/0.5513, allocations: 4.363 MB / 479.9 MB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.517e-05/0.5514, allocations: 55 kB / 479.9 MB, free: 2.508 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 5.089e-06/0.5515, allocations: 0 / 479.9 MB, free: 2.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02951/0.581, allocations: 11.72 MB / 491.6 MB, free: 6.664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.824e-05/0.5811, allocations: 145.1 kB / 491.8 MB, free: 6.492 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005599/0.5867, allocations: 3.734 MB / 495.5 MB, free: 2.766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002136/0.5869, allocations: 45.7 kB / 495.6 MB, free: 2.715 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002067/0.589, allocations: 2.866 MB / 498.4 MB, free: 15.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005811/0.5896, allocations: 0.5428 MB / 499 MB, free: 15.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001474/0.5911, allocations: 1.084 MB / 0.4883 GB, free: 14.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.5912, allocations: 312.9 kB / 0.4886 GB, free: 13.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002469/0.5937, allocations: 1.701 MB / 0.4903 GB, free: 12.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004845/0.5985, allocations: 5.128 MB / 0.4953 GB, free: 5.305 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008427/0.607, allocations: 7.42 MB / 0.5025 GB, free: 12.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.7e-05/0.6071, allocations: 36 kB / 0.5026 GB, free: 12.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01219/0.6193, allocations: 6.736 MB / 0.5092 GB, free: 5.398 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.844e-05/0.6195, allocations: 60 kB / 0.5092 GB, free: 5.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/0.6196, allocations: 120 kB / 0.5093 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006529/0.6203, allocations: 333.3 kB / 0.5096 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003802/0.6241, allocations: 1.244 MB / 0.5109 GB, free: 3.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002809/0.6269, allocations: 2.489 MB / 0.5133 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004408/0.6313, allocations: 287.7 kB / 0.5136 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007066/0.632, allocations: 336 kB / 0.5139 GB, free: 420 kB / 446.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.003133/0.6352, allocations: 1.787 MB / 0.5156 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006412/0.6358, allocations: 333.7 kB / 0.5159 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/0.6405, allocations: 2.364 MB / 0.5183 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.727e-05/0.6406, allocations: 16 kB / 0.5183 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.6406, allocations: 4.125 kB / 0.5183 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.6406, allocations: 7.984 kB / 0.5183 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/0.6532, allocations: 5.921 MB / 0.5241 GB, free: 5.883 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.6532, allocations: 0 / 0.5241 GB, free: 5.883 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008491/0.6541, allocations: 183.7 kB / 0.5242 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002181/0.6563, allocations: 0.7077 MB / 0.5249 GB, free: 4.992 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/0.6564, allocations: 20 kB / 0.5249 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00648/0.6629, allocations: 4.816 MB / 0.5297 GB, free: 12 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.6629, allocations: 3.984 kB / 0.5297 GB, free: 8 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006965/0.6699, allocations: 4.339 MB / 0.5339 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001786/0.6717, allocations: 0.5457 MB / 0.5344 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004104/0.6721, allocations: 31.88 kB / 0.5345 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.6733, allocations: 67.89 kB / 0.5345 GB, free: 10.97 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.6735, allocations: 72.56 kB / 0.5346 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.6736, allocations: 36 kB / 0.5346 GB, free: 10.87 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003961/0.6776, allocations: 2.327 MB / 0.5369 GB, free: 8.555 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6776, allocations: 0 / 0.5369 GB, free: 8.555 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004771/0.6824, allocations: 0.8163 MB / 0.5377 GB, free: 7.738 MB / 478.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.0004006/0.6828, allocations: 159 kB / 0.5378 GB, free: 7.574 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006479/0.6893, allocations: 4.045 MB / 0.5418 GB, free: 3.539 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.6893, allocations: 0 / 0.5418 GB, free: 3.539 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00162/0.691, allocations: 1.116 MB / 0.5429 GB, free: 2.414 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.6936, allocations: 397.6 kB / 0.5433 GB, free: 2.023 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2116/0.9052, allocations: 7.379 MB / 0.5505 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003206/0.9084, allocations: 2.788 MB / 0.5532 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003937/0.9124, allocations: 1.655 MB / 0.5548 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000644/0.913, allocations: 210.3 kB / 0.555 GB, free: 149.7 MB / 478.1 MB Notification: Performance of SimCode: time 8.82e-07/0.9131, allocations: 2 kB / 0.555 GB, free: 149.7 MB / 478.1 MB Notification: Performance of Templates: time 0.05131/0.9644, allocations: 27.93 MB / 0.5823 GB, free: 136 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1)