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.007731/0.007731, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001868/0.001868, allocations: 197.9 kB / 16.68 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.38/1.38, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001242/0.001242, allocations: 51.11 kB / 326.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1197, allocations: 46.63 MB / 373.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01241/0.1322, allocations: 10.22 MB / 383.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008392/0.1406, allocations: 3.783 MB / 387.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.1422, allocations: 55.88 kB / 387.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003959/0.1461, allocations: 1.954 MB / 389.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004788/0.1509, allocations: 1.657 MB / 390.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.1526, allocations: 0.6122 MB / 391.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005546/0.1581, allocations: 3.33 MB / 394.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003333/0.1615, allocations: 2.58 MB / 397.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002073/0.1636, allocations: 1.253 MB / 398.6 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002188/0.1658, allocations: 1.674 MB / 400.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006203/0.1664, allocations: 260 kB / 400.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002566/0.169, allocations: 1.018 MB / 401.6 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001667/0.1707, allocations: 1.562 MB / 403.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002101/0.1728, allocations: 1.825 MB / 405 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007374/0.1802, allocations: 5.859 MB / 410.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.1803, allocations: 0 / 410.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.1803, allocations: 0 / 410.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002712/0.1805, allocations: 0 / 410.8 MB, free: 11.6 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.009965/0.1905, allocations: 4.132 MB / 415 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.1906, allocations: 11.97 kB / 415 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006537/0.1971, allocations: 1.788 MB / 416.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004929/0.2021, allocations: 2.01 MB / 418.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.2023, allocations: 192.8 kB / 419 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006012/0.2029, allocations: 259.8 kB / 419.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.2184, allocations: 8.423 MB / 427.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.2186, allocations: 43.62 kB / 427.7 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003823/0.219, allocations: 127.9 kB / 427.8 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002764/0.2218, allocations: 1.695 MB / 429.5 MB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01511/0.2369, allocations: 7.098 MB / 436.6 MB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2935/0.5305, allocations: 34.08 MB / 470.7 MB, free: 45.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007276/0.5378, allocations: 3.283 MB / 474 MB, free: 44.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.5396, allocations: 1.464 MB / 475.4 MB, free: 43.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006131/0.5458, allocations: 4.366 MB / 479.8 MB, free: 41.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.5458, allocations: 49.78 kB / 479.8 MB, free: 41.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 3.497e-06/0.5458, allocations: 0 / 479.8 MB, free: 41.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.02592/0.5718, allocations: 11.73 MB / 491.6 MB, free: 35.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.5719, allocations: 149.9 kB / 491.7 MB, free: 35.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004189/0.5761, allocations: 3.733 MB / 495.4 MB, free: 33.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001681/0.5762, allocations: 45.64 kB / 495.5 MB, free: 33.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.5774, allocations: 2.863 MB / 498.4 MB, free: 31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004045/0.5778, allocations: 0.5466 MB / 498.9 MB, free: 30.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/0.5789, allocations: 1.084 MB / 500 MB, free: 29.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.676e-05/0.5789, allocations: 301.1 kB / 0.4886 GB, free: 29.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001841/0.5808, allocations: 1.708 MB / 0.4902 GB, free: 27.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002998/0.5838, allocations: 5.125 MB / 0.4952 GB, free: 20.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005459/0.5893, allocations: 7.416 MB / 0.5025 GB, free: 11.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.382e-05/0.5893, allocations: 36 kB / 0.5025 GB, free: 11.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.008606/0.598, allocations: 6.744 MB / 0.5091 GB, free: 4.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.093e-05/0.598, allocations: 60.06 kB / 0.5091 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.171e-05/0.5981, allocations: 120 kB / 0.5093 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005454/0.5987, allocations: 323.8 kB / 0.5096 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00313/0.6018, allocations: 1.244 MB / 0.5108 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.6039, allocations: 2.496 MB / 0.5132 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/0.6076, allocations: 283.6 kB / 0.5135 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005004/0.6081, allocations: 333.1 kB / 0.5138 GB, free: 15.79 MB / 398.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.002861/0.611, allocations: 1.795 MB / 0.5156 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006648/0.6117, allocations: 325.8 kB / 0.5159 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004868/0.6165, allocations: 2.359 MB / 0.5182 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.883e-05/0.6166, allocations: 23.05 kB / 0.5182 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.739e-05/0.6166, allocations: 5.031 kB / 0.5182 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.6167, allocations: 7.969 kB / 0.5182 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/0.6311, allocations: 5.92 MB / 0.524 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/0.6312, allocations: 0 / 0.524 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009375/0.6322, allocations: 171.7 kB / 0.5242 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/0.6344, allocations: 0.7147 MB / 0.5249 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/0.6346, allocations: 24 kB / 0.5249 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006201/0.6408, allocations: 4.812 MB / 0.5296 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.6408, allocations: 0 / 0.5296 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007264/0.6481, allocations: 4.343 MB / 0.5338 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/0.6496, allocations: 0.5456 MB / 0.5344 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004185/0.65, allocations: 22.91 kB / 0.5344 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.6512, allocations: 67.91 kB / 0.5344 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.6514, allocations: 71.7 kB / 0.5345 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.736e-05/0.6515, allocations: 36 kB / 0.5345 GB, free: 10.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004596/0.6561, allocations: 2.327 MB / 0.5368 GB, free: 7.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6562, allocations: 0 / 0.5368 GB, free: 7.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.007756/0.664, allocations: 0.8163 MB / 0.5376 GB, free: 7.18 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.0006423/0.6646, allocations: 162.6 kB / 0.5378 GB, free: 7.016 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007443/0.6721, allocations: 4.055 MB / 0.5417 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/0.6722, allocations: 0 / 0.5417 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.6739, allocations: 1.115 MB / 0.5428 GB, free: 1.852 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002591/0.6765, allocations: 396.8 kB / 0.5432 GB, free: 1.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.6892, allocations: 7.386 MB / 0.5504 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002924/0.6922, allocations: 2.794 MB / 0.5531 GB, free: 7.246 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003836/0.696, allocations: 1.656 MB / 0.5548 GB, free: 5.586 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005975/0.6966, allocations: 211.4 kB / 0.555 GB, free: 5.379 MB / 430.1 MB Notification: Performance of SimCode: time 1.523e-06/0.6967, allocations: 4 kB / 0.555 GB, free: 5.375 MB / 430.1 MB Notification: Performance of Templates: time 0.0557/0.7524, allocations: 27.94 MB / 0.5822 GB, free: 9.484 MB / 462.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)