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.001653/0.001653, allocations: 111.2 kB / 17.06 MB, free: 6.098 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.001684/0.001685, allocations: 198.9 kB / 18 MB, free: 5.172 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.428/1.428, allocations: 205.1 MB / 223.9 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.001247/0.001247, allocations: 51.94 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1111, allocations: 46.62 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2449/0.3561, allocations: 10.74 MB / 385.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008521/0.3646, allocations: 3.873 MB / 389.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002828/0.3676, allocations: 64 kB / 389.2 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004611/0.3723, allocations: 2.237 MB / 391.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00619/0.3785, allocations: 1.883 MB / 393.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.3807, allocations: 0.7114 MB / 394 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007546/0.3882, allocations: 4.27 MB / 398.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004445/0.3927, allocations: 2.911 MB / 401.2 MB, free: 224 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003387/0.3961, allocations: 1.488 MB / 402.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003192/0.3994, allocations: 2.1 MB / 404.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009046/0.4003, allocations: 293.3 kB / 405.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.4029, allocations: 0.9319 MB / 406 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002255/0.4051, allocations: 1.835 MB / 407.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.408, allocations: 2.098 MB / 409.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008841/0.4168, allocations: 6.429 MB / 416.4 MB, free: 5.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.4169, allocations: 8 kB / 416.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4169, allocations: 0 / 416.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001832/0.4171, allocations: 0 / 416.4 MB, free: 5.684 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.009255/0.4263, allocations: 4.611 MB / 421 MB, free: 1.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.4264, allocations: 8.031 kB / 421 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006849/0.4333, allocations: 1.928 MB / 422.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004592/0.4379, allocations: 2.394 MB / 425.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.4381, allocations: 225.6 kB / 425.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005947/0.4387, allocations: 299.8 kB / 425.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01609/0.4548, allocations: 9.639 MB / 435.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001344/0.4549, allocations: 43.53 kB / 435.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00076/0.4557, allocations: 151.8 kB / 435.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002877/0.4586, allocations: 1.919 MB / 437.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01632/0.4749, allocations: 7.625 MB / 445.2 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05085/0.5258, allocations: 37.6 MB / 482.8 MB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006757/0.5326, allocations: 2.879 MB / 485.7 MB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.534, allocations: 0.8711 MB / 486.5 MB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006103/0.5401, allocations: 3.767 MB / 490.3 MB, free: 9.289 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.5402, allocations: 51.16 kB / 490.4 MB, free: 9.227 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.507e-06/0.5402, allocations: 0 / 490.4 MB, free: 9.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02149/0.5617, allocations: 9.068 MB / 499.4 MB, free: 36 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.344e-05/0.5619, allocations: 145.5 kB / 499.6 MB, free: 15.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005017/0.5669, allocations: 3.944 MB / 0.4917 GB, free: 11.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001939/0.5671, allocations: 45.7 kB / 0.4918 GB, free: 11.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001963/0.5691, allocations: 3.082 MB / 0.4948 GB, free: 8.758 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008204/0.5699, allocations: 0.6135 MB / 0.4954 GB, free: 8.137 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/0.5714, allocations: 1.167 MB / 0.4965 GB, free: 6.957 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.923e-05/0.5715, allocations: 305.1 kB / 0.4968 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002294/0.5738, allocations: 1.577 MB / 0.4983 GB, free: 5.074 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004495/0.5783, allocations: 5.354 MB / 0.5036 GB, free: 13.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008487/0.5868, allocations: 7.553 MB / 0.5109 GB, free: 4.387 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001492/0.587, allocations: 40 kB / 0.511 GB, free: 4.348 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01557/0.6026, allocations: 6.652 MB / 0.5175 GB, free: 13.69 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001541/0.6028, allocations: 72 kB / 0.5175 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002654/0.603, allocations: 132 kB / 0.5177 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002459/0.6033, allocations: 180 kB / 0.5178 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004759/0.6081, allocations: 1.384 MB / 0.5192 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002466/0.6083, allocations: 259 kB / 0.5194 GB, free: 11.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004185/0.6125, allocations: 283.7 kB / 0.5197 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007861/0.6133, allocations: 364 kB / 0.5201 GB, free: 11.04 MB / 462.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.003798/0.6171, allocations: 1.99 MB / 0.522 GB, free: 9.035 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008586/0.618, allocations: 339.6 kB / 0.5223 GB, free: 8.699 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00253/0.6205, allocations: 1.25 MB / 0.5235 GB, free: 7.438 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.283e-05/0.6206, allocations: 16 kB / 0.5236 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.6206, allocations: 0 / 0.5236 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.117e-05/0.6206, allocations: 11.97 kB / 0.5236 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.6323, allocations: 5.733 MB / 0.5292 GB, free: 1.352 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.539e-05/0.6324, allocations: 27.97 kB / 0.5292 GB, free: 1.324 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009705/0.6333, allocations: 279.5 kB / 0.5295 GB, free: 1.051 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.781e-05/0.6334, allocations: 31.98 kB / 0.5295 GB, free: 1.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.333e-05/0.6335, allocations: 47.98 kB / 0.5295 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.867e-05/0.6335, allocations: 39.86 kB / 0.5296 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.696e-05/0.6335, allocations: 27.88 kB / 0.5296 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00407/0.6376, allocations: 3.216 MB / 0.5327 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.6387, allocations: 0.52 MB / 0.5333 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000355/0.6391, allocations: 55.97 kB / 0.5333 GB, free: 12.83 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.6402, allocations: 51.97 kB / 0.5334 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.6404, allocations: 151.8 kB / 0.5335 GB, free: 12.63 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.6405, allocations: 64 kB / 0.5336 GB, free: 12.57 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003782/0.6443, allocations: 2.446 MB / 0.5359 GB, free: 10.14 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6443, allocations: 0 / 0.5359 GB, free: 10.14 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004702/0.649, allocations: 0.8789 MB / 0.5368 GB, free: 9.266 MB / 478.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.0003932/0.6494, allocations: 206.5 kB / 0.537 GB, free: 9.055 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005775/0.6552, allocations: 3.686 MB / 0.5406 GB, free: 5.398 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/0.6552, allocations: 7.938 kB / 0.5406 GB, free: 5.391 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.6563, allocations: 0.7262 MB / 0.5413 GB, free: 4.668 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003153/0.6595, allocations: 456.4 kB / 0.5418 GB, free: 4.223 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.236/0.8955, allocations: 8.528 MB / 0.5501 GB, free: 146.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004273/0.8998, allocations: 3.106 MB / 0.5531 GB, free: 145.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004685/0.9045, allocations: 1.771 MB / 0.5548 GB, free: 145.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005882/0.9051, allocations: 234.3 kB / 0.5551 GB, free: 145.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.302e-06/0.9052, allocations: 0 / 0.5551 GB, free: 145.5 MB / 478.1 MB Notification: Performance of Templates: time 0.05164/0.9568, allocations: 23.89 MB / 0.5784 GB, free: 137.6 MB / 478.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)