Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009855/0.0009855, allocations: 91.77 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.001229, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 246.8 MB, free: 11.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003433, allocations: 8 kB / 307.8 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.121, allocations: 51.53 MB / 359.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1945/0.3155, allocations: 27.88 MB / 387.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.3269, allocations: 5.876 MB / 393 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004812/0.3318, allocations: 112.6 kB / 393.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009889/0.3328, allocations: 300.7 kB / 393.4 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00271/0.3355, allocations: 0.9387 MB / 394.4 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006393/0.3362, allocations: 234.8 kB / 394.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.3401, allocations: 3.266 MB / 397.9 MB, free: 232 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003126/0.3433, allocations: 2.045 MB / 399.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.3447, allocations: 0.6561 MB / 400.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002018/0.3467, allocations: 1.213 MB / 401.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003728/0.3471, allocations: 85.34 kB / 401.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001414/0.3485, allocations: 0.6338 MB / 402.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.3495, allocations: 1.105 MB / 403.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001367/0.3509, allocations: 1.305 MB / 404.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004035/0.355, allocations: 3.958 MB / 408.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.355, allocations: 3.938 kB / 408.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.355, allocations: 0 / 408.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001024/0.3551, allocations: 0 / 408.9 MB, free: 9.34 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.003767/0.3589, allocations: 2.38 MB / 411.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.3589, allocations: 12.03 kB / 411.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007115/0.3661, allocations: 1.814 MB / 413.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002356/0.3685, allocations: 1.158 MB / 414.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.3686, allocations: 151.8 kB / 414.4 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003981/0.369, allocations: 207.8 kB / 414.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0182/0.3872, allocations: 8.643 MB / 423.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.43e-05/0.3873, allocations: 35.73 kB / 423.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002673/0.3876, allocations: 99.89 kB / 423.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002852/0.3904, allocations: 1.667 MB / 425 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/0.4081, allocations: 7.206 MB / 432.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03365/0.4418, allocations: 30.2 MB / 462.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0229/0.4648, allocations: 5.13 MB / 467.6 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.4666, allocations: 1.24 MB / 468.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005712/0.4723, allocations: 3.833 MB / 472.6 MB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.4724, allocations: 50.81 kB / 472.7 MB, free: 7.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.959e-06/0.4724, allocations: 0 / 472.7 MB, free: 7.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04808/0.5205, allocations: 9.425 MB / 482.1 MB, free: 14.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.5206, allocations: 187.9 kB / 482.3 MB, free: 13.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004591/0.5252, allocations: 3.034 MB / 485.3 MB, free: 10.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.5254, allocations: 41.7 kB / 485.4 MB, free: 10.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.5271, allocations: 2.418 MB / 487.8 MB, free: 8.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006371/0.5278, allocations: 0.494 MB / 488.3 MB, free: 7.734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006129/0.5284, allocations: 465.8 kB / 488.7 MB, free: 7.273 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.5285, allocations: 301.1 kB / 489 MB, free: 6.977 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002419/0.5309, allocations: 1.611 MB / 490.6 MB, free: 5.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004849/0.5358, allocations: 5.173 MB / 495.8 MB, free: 14.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007872/0.5437, allocations: 7.345 MB / 0.4914 GB, free: 5.258 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.066e-05/0.5438, allocations: 39.94 kB / 0.4914 GB, free: 5.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0107/0.5545, allocations: 6.445 MB / 0.4977 GB, free: 14.77 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.5546, allocations: 60 kB / 0.4978 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001722/0.5548, allocations: 128 kB / 0.4979 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.555, allocations: 168 kB / 0.498 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004873/0.5599, allocations: 1.462 MB / 0.4995 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002146/0.5601, allocations: 247 kB / 0.4997 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003336/0.5635, allocations: 0.7499 MB / 0.5004 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000505/0.564, allocations: 352.1 kB / 0.5008 GB, free: 11.61 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 678 * 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.002235/0.5662, allocations: 1.572 MB / 0.5023 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004103/0.5666, allocations: 244.8 kB / 0.5025 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000585/0.5672, allocations: 315.3 kB / 0.5028 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/0.5673, allocations: 12 kB / 0.5028 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.5673, allocations: 3.938 kB / 0.5029 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.5673, allocations: 11.92 kB / 0.5029 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005798/0.5731, allocations: 3.399 MB / 0.5062 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.5731, allocations: 0 / 0.5062 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002309/0.5754, allocations: 419.5 kB / 0.5066 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.595e-05/0.5755, allocations: 11.94 kB / 0.5066 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.682e-05/0.5756, allocations: 39.95 kB / 0.5066 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/0.5756, allocations: 7.938 kB / 0.5066 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5756, allocations: 4 kB / 0.5066 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.5789, allocations: 2.792 MB / 0.5094 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004934/0.5794, allocations: 317.5 kB / 0.5097 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/0.5797, allocations: 31.92 kB / 0.5097 GB, free: 2.344 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009431/0.5807, allocations: 43.95 kB / 0.5097 GB, free: 2.301 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.5808, allocations: 59.91 kB / 0.5098 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-05/0.5809, allocations: 35.98 kB / 0.5098 GB, free: 2.207 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002706/0.5836, allocations: 1.829 MB / 0.5116 GB, free: 384 kB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5836, allocations: 0 / 0.5116 GB, free: 384 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.003599/0.5872, allocations: 0.8222 MB / 0.5124 GB, free: 15.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * 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 (87): * Single equations (assignments): 84 * 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.0003543/0.5876, allocations: 162.7 kB / 0.5126 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005167/0.5928, allocations: 3.609 MB / 0.5161 GB, free: 11.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.5928, allocations: 4.625 kB / 0.5161 GB, free: 11.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009245/0.5937, allocations: 0.7311 MB / 0.5168 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/0.5957, allocations: 255.6 kB / 0.5171 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.6078, allocations: 8.784 MB / 0.5256 GB, free: 1.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1997/0.8075, allocations: 2.38 MB / 0.528 GB, free: 121.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004959/0.8125, allocations: 1.64 MB / 0.5296 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005383/0.813, allocations: 189.7 kB / 0.5298 GB, free: 121.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.813, allocations: 0 / 0.5298 GB, free: 121.5 MB / 446.1 MB Notification: Performance of Templates: time 0.03944/0.8525, allocations: 20.38 MB / 0.5497 GB, free: 115.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches