Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001471/0.001471, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001764/0.001765, allocations: 185.8 kB / 17.55 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.403/1.403, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001292/0.001292, allocations: 51.92 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08747/0.08877, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02961/0.1184, allocations: 34.68 MB / 360.8 MB, free: 1.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0186/0.137, allocations: 7.808 MB / 368.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007203/0.1443, allocations: 147.6 kB / 368.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003998/0.1484, allocations: 1.858 MB / 370.6 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004294/0.1527, allocations: 1.542 MB / 372.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001594/0.1543, allocations: 0.5851 MB / 372.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004493/0.1588, allocations: 3.377 MB / 376.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2/0.3589, allocations: 2.734 MB / 378.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003056/0.362, allocations: 1.265 MB / 380.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003993/0.366, allocations: 1.871 MB / 382 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001036/0.367, allocations: 253.6 kB / 382.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00271/0.3697, allocations: 1.035 MB / 383.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003372/0.3731, allocations: 1.594 MB / 384.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003827/0.377, allocations: 1.854 MB / 386.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007248/0.3842, allocations: 5.665 MB / 392.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.3843, allocations: 2.906 kB / 392.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3843, allocations: 0 / 392.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002325/0.3845, allocations: 0 / 392.4 MB, free: 9.227 MB / 318.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.01028/0.3948, allocations: 4.016 MB / 396.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3949, allocations: 9.625 kB / 396.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006223/0.4011, allocations: 1.778 MB / 398.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004619/0.4058, allocations: 1.961 MB / 400.2 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.4059, allocations: 192.9 kB / 400.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005525/0.4065, allocations: 259.2 kB / 400.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/0.4207, allocations: 8.432 MB / 409 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-05/0.4208, allocations: 37 kB / 409.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003561/0.4212, allocations: 132.6 kB / 409.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002281/0.4235, allocations: 1.695 MB / 410.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01279/0.4363, allocations: 7.093 MB / 418 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05056/0.4869, allocations: 34.16 MB / 452.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007892/0.4948, allocations: 3.28 MB / 455.4 MB, free: 6.379 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002092/0.4969, allocations: 1.458 MB / 456.9 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008009/0.5049, allocations: 4.374 MB / 461.3 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/0.505, allocations: 52.05 kB / 461.3 MB, free: 308 kB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 4.107e-06/0.505, allocations: 0 / 461.3 MB, free: 308 kB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.03474/0.5398, allocations: 11.53 MB / 472.9 MB, free: 4.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.903e-05/0.5399, allocations: 148.9 kB / 473 MB, free: 4.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006137/0.5461, allocations: 3.729 MB / 476.7 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003136/0.5464, allocations: 41.7 kB / 476.8 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/0.5484, allocations: 2.75 MB / 479.5 MB, free: 13.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006565/0.5491, allocations: 0.5232 MB / 480 MB, free: 13.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/0.5506, allocations: 1.075 MB / 481.1 MB, free: 12.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.5507, allocations: 309.1 kB / 481.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002355/0.5531, allocations: 1.703 MB / 483.1 MB, free: 10.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004557/0.5577, allocations: 5.135 MB / 488.3 MB, free: 3.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007879/0.5656, allocations: 7.41 MB / 495.7 MB, free: 10.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.012e-05/0.5657, allocations: 36 kB / 495.7 MB, free: 10.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01083/0.5765, allocations: 6.723 MB / 0.4906 GB, free: 4.891 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.616e-05/0.5766, allocations: 59.94 kB / 0.4907 GB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/0.5767, allocations: 120 kB / 0.4908 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000599/0.5773, allocations: 325 kB / 0.4911 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003652/0.581, allocations: 1.244 MB / 0.4923 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.5838, allocations: 2.495 MB / 0.4948 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004249/0.5881, allocations: 287.6 kB / 0.4951 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000814/0.5889, allocations: 338 kB / 0.4954 GB, free: 80 kB / 414.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.003744/0.5926, allocations: 1.779 MB / 0.4971 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006951/0.5933, allocations: 312 kB / 0.4974 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005176/0.5985, allocations: 2.368 MB / 0.4997 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.22e-05/0.5986, allocations: 23.88 kB / 0.4997 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.5986, allocations: 4 kB / 0.4998 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.5986, allocations: 3.984 kB / 0.4998 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01486/0.6135, allocations: 5.922 MB / 0.5055 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.6136, allocations: 2.25 kB / 0.5055 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008786/0.6144, allocations: 179.7 kB / 0.5057 GB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.6167, allocations: 0.7195 MB / 0.5064 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.6169, allocations: 23.94 kB / 0.5064 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006004/0.6229, allocations: 4.811 MB / 0.5111 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.6229, allocations: 64 / 0.5111 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006961/0.6299, allocations: 4.325 MB / 0.5154 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/0.6315, allocations: 0.5321 MB / 0.5159 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007932/0.6323, allocations: 16 kB / 0.5159 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.634, allocations: 75.05 kB / 0.516 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002596/0.6343, allocations: 68.56 kB / 0.516 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.6344, allocations: 28 kB / 0.5161 GB, free: 10.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005102/0.6395, allocations: 2.339 MB / 0.5183 GB, free: 8.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.6395, allocations: 0 / 0.5183 GB, free: 8.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005706/0.6452, allocations: 0.8163 MB / 0.5191 GB, free: 7.613 MB / 446.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.0006126/0.6459, allocations: 158.8 kB / 0.5193 GB, free: 7.449 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007974/0.6539, allocations: 4.41 MB / 0.5236 GB, free: 3.062 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/0.6539, allocations: 4.125 kB / 0.5236 GB, free: 3.059 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/0.6557, allocations: 1.108 MB / 0.5247 GB, free: 1.934 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003523/0.6592, allocations: 386.7 kB / 0.5251 GB, free: 1.555 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01825/0.6775, allocations: 8.965 MB / 0.5338 GB, free: 8.551 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005524/0.6831, allocations: 2.788 MB / 0.5365 GB, free: 5.738 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004939/0.688, allocations: 1.656 MB / 0.5381 GB, free: 4.078 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009725/0.689, allocations: 215.4 kB / 0.5384 GB, free: 3.867 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.6891, allocations: 0 / 0.5384 GB, free: 3.867 MB / 462.1 MB Notification: Performance of Templates: time 0.2207/0.9098, allocations: 30.99 MB / 0.5686 GB, free: 168.1 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1)