Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 111.6 kB / 16.62 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.001247/0.001247, allocations: 189.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.4/1.4, allocations: 205.1 MB / 223.4 MB, free: 12.46 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.001198/0.001198, allocations: 55.91 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09971/0.1009, allocations: 46.63 MB / 326.1 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03451/0.1355, allocations: 38.7 MB / 364.8 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02145/0.157, allocations: 8.389 MB / 373.2 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008043/0.1651, allocations: 167.6 kB / 373.4 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004419/0.1696, allocations: 2.135 MB / 375.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004632/0.1742, allocations: 1.709 MB / 377.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.1758, allocations: 0.671 MB / 377.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2128/0.3887, allocations: 4.285 MB / 382.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005935/0.3947, allocations: 3.078 MB / 385.3 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003785/0.3985, allocations: 1.519 MB / 386.8 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00456/0.4031, allocations: 2.315 MB / 389.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001371/0.4045, allocations: 300.9 kB / 389.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.4069, allocations: 0.9475 MB / 390.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002083/0.409, allocations: 1.844 MB / 392.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002676/0.4117, allocations: 2.133 MB / 394.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006833/0.4185, allocations: 6.222 MB / 400.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4186, allocations: 2.594 kB / 400.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4186, allocations: 0 / 400.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001986/0.4188, allocations: 2.25 kB / 400.5 MB, free: 6.957 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.008796/0.4276, allocations: 4.61 MB / 405.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.4277, allocations: 14.16 kB / 405.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006529/0.4342, allocations: 1.92 MB / 407.1 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004644/0.4389, allocations: 2.349 MB / 409.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.439, allocations: 227.9 kB / 409.7 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005046/0.4396, allocations: 299 kB / 410 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01603/0.4556, allocations: 9.641 MB / 419.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.4557, allocations: 44.19 kB / 419.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003854/0.4561, allocations: 149.9 kB / 419.8 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00269/0.4588, allocations: 1.917 MB / 421.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/0.4741, allocations: 7.631 MB / 429.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04826/0.5224, allocations: 37.76 MB / 467.1 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006727/0.5292, allocations: 2.881 MB / 470 MB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.5305, allocations: 0.8725 MB / 470.8 MB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006337/0.5369, allocations: 3.771 MB / 474.6 MB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.5369, allocations: 49.75 kB / 474.7 MB, free: 1.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.88e-06/0.5369, allocations: 0 / 474.7 MB, free: 1.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02214/0.5591, allocations: 9.064 MB / 483.7 MB, free: 8.594 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.662e-05/0.5592, allocations: 141.5 kB / 483.9 MB, free: 8.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00588/0.5651, allocations: 3.944 MB / 487.8 MB, free: 4.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002347/0.5654, allocations: 49.7 kB / 487.9 MB, free: 4.445 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/0.5676, allocations: 3.088 MB / 490.9 MB, free: 1.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007339/0.5683, allocations: 0.6055 MB / 491.6 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/0.5697, allocations: 1.174 MB / 492.7 MB, free: 15.58 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.434e-05/0.5698, allocations: 305.1 kB / 493 MB, free: 15.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/0.5721, allocations: 1.585 MB / 494.6 MB, free: 13.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004724/0.5768, allocations: 5.347 MB / 500 MB, free: 6.512 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008536/0.5854, allocations: 7.545 MB / 0.4956 GB, free: 13.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001196/0.5856, allocations: 36 kB / 0.4956 GB, free: 13.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01321/0.5988, allocations: 6.658 MB / 0.5021 GB, free: 7.469 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.192e-05/0.5989, allocations: 60 kB / 0.5022 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001611/0.5991, allocations: 136 kB / 0.5023 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.5993, allocations: 180 kB / 0.5025 GB, free: 7.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/0.6033, allocations: 1.381 MB / 0.5039 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002072/0.6035, allocations: 267 kB / 0.5041 GB, free: 5.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004391/0.6079, allocations: 287.6 kB / 0.5044 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006725/0.6086, allocations: 364 kB / 0.5047 GB, free: 4.82 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004698/0.6133, allocations: 1.986 MB / 0.5067 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009015/0.6142, allocations: 339.6 kB / 0.507 GB, free: 2.492 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002449/0.6167, allocations: 1.246 MB / 0.5082 GB, free: 1.238 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.353e-05/0.6167, allocations: 16 kB / 0.5082 GB, free: 1.223 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.6167, allocations: 4 kB / 0.5082 GB, free: 1.219 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.6168, allocations: 7.969 kB / 0.5082 GB, free: 1.211 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/0.6278, allocations: 5.745 MB / 0.5138 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.819e-05/0.6279, allocations: 20.19 kB / 0.5139 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009796/0.6289, allocations: 275.6 kB / 0.5141 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-05/0.6289, allocations: 31.94 kB / 0.5142 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.849e-05/0.629, allocations: 47.98 kB / 0.5142 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.632e-05/0.6291, allocations: 39.86 kB / 0.5142 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.837e-05/0.6291, allocations: 27.88 kB / 0.5143 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004385/0.6335, allocations: 3.22 MB / 0.5174 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/0.635, allocations: 0.516 MB / 0.5179 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004306/0.6354, allocations: 55.98 kB / 0.518 GB, free: 6.668 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.6366, allocations: 51.97 kB / 0.518 GB, free: 6.617 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.6368, allocations: 155.3 kB / 0.5182 GB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.071e-05/0.6369, allocations: 64 kB / 0.5182 GB, free: 6.402 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004229/0.6411, allocations: 2.45 MB / 0.5206 GB, free: 3.973 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6411, allocations: 0 / 0.5206 GB, free: 3.973 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005263/0.6464, allocations: 0.8672 MB / 0.5215 GB, free: 3.105 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005851/0.647, allocations: 204.2 kB / 0.5217 GB, free: 2.902 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006997/0.654, allocations: 3.816 MB / 0.5254 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/0.654, allocations: 8.125 kB / 0.5254 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.6552, allocations: 0.7245 MB / 0.5261 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003316/0.6585, allocations: 460.4 kB / 0.5265 GB, free: 13.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/0.678, allocations: 10.54 MB / 0.5368 GB, free: 3.121 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1752/0.8533, allocations: 3.115 MB / 0.5399 GB, free: 172 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006741/0.8601, allocations: 1.761 MB / 0.5416 GB, free: 172 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009459/0.8611, allocations: 230.8 kB / 0.5418 GB, free: 172 MB / 462.1 MB Notification: Performance of SimCode: time 1.754e-06/0.8611, allocations: 0 / 0.5418 GB, free: 172 MB / 462.1 MB Notification: Performance of Templates: time 0.06019/0.9213, allocations: 27.2 MB / 0.5684 GB, free: 164.4 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)