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.001197/0.001197, allocations: 117 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2721, allocations: 50.55 MB / 409.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009189/0.2814, allocations: 7.927 MB / 417.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005122/0.2865, allocations: 2.563 MB / 420.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.2877, allocations: 35.88 kB / 420.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002833/0.2905, allocations: 1.436 MB / 421.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002555/0.2931, allocations: 0.9762 MB / 422.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008324/0.294, allocations: 271.4 kB / 423.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003261/0.2972, allocations: 2.157 MB / 425.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.299, allocations: 1.557 MB / 426.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001074/0.3001, allocations: 0.8289 MB / 427.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001671/0.3018, allocations: 1.183 MB / 428.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003589/0.3022, allocations: 160 kB / 429 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.3038, allocations: 0.6709 MB / 429.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.3048, allocations: 1.149 MB / 430.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.3061, allocations: 1.362 MB / 432.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004662/0.3108, allocations: 4.269 MB / 436.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3108, allocations: 0 / 436.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3108, allocations: 0 / 436.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001318/0.311, allocations: 0 / 436.5 MB, free: 7.094 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.005639/0.3166, allocations: 2.926 MB / 439.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.3167, allocations: 12.03 kB / 439.4 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00715/0.3238, allocations: 1.771 MB / 441.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002394/0.3263, allocations: 1.161 MB / 442.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.3264, allocations: 151.8 kB / 442.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005117/0.3269, allocations: 211.8 kB / 442.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01964/0.3466, allocations: 8.6 MB / 451.3 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.3468, allocations: 47.66 kB / 451.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003017/0.3471, allocations: 99.88 kB / 451.5 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002875/0.3499, allocations: 1.675 MB / 453.1 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01778/0.3677, allocations: 7.182 MB / 460.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03651/0.4043, allocations: 30.09 MB / 490.4 MB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02255/0.4269, allocations: 5.064 MB / 495.5 MB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.4286, allocations: 1.244 MB / 496.7 MB, free: 9.066 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005474/0.4341, allocations: 3.832 MB / 0.4888 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.4342, allocations: 46.83 kB / 0.4888 GB, free: 5.012 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.827e-06/0.4342, allocations: 4 kB / 0.4889 GB, free: 5.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.0455/0.4797, allocations: 9.268 MB / 0.4979 GB, free: 11.65 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.4798, allocations: 203.9 kB / 0.4981 GB, free: 11.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004648/0.4845, allocations: 3.034 MB / 0.5011 GB, free: 8.355 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001675/0.4847, allocations: 41.7 kB / 0.5011 GB, free: 8.309 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002012/0.4867, allocations: 2.418 MB / 0.5035 GB, free: 5.852 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006422/0.4874, allocations: 0.4942 MB / 0.5039 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001626/0.489, allocations: 1.083 MB / 0.505 GB, free: 4.258 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4891, allocations: 305.1 kB / 0.5053 GB, free: 3.957 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002414/0.4915, allocations: 1.607 MB / 0.5069 GB, free: 2.344 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005192/0.4967, allocations: 5.173 MB / 0.5119 GB, free: 11.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008137/0.5049, allocations: 7.332 MB / 0.5191 GB, free: 2.254 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001227/0.505, allocations: 36 kB / 0.5191 GB, free: 2.219 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01154/0.5166, allocations: 6.441 MB / 0.5254 GB, free: 11.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.5168, allocations: 60.09 kB / 0.5255 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002/0.517, allocations: 136.1 kB / 0.5256 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.5172, allocations: 164 kB / 0.5257 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004901/0.5221, allocations: 1.458 MB / 0.5272 GB, free: 9.961 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002303/0.5223, allocations: 251 kB / 0.5274 GB, free: 9.715 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003581/0.5259, allocations: 0.746 MB / 0.5281 GB, free: 8.961 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000624/0.5266, allocations: 348 kB / 0.5285 GB, free: 8.621 MB / 462.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.002413/0.529, allocations: 1.575 MB / 0.53 GB, free: 7.031 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/0.5295, allocations: 248.7 kB / 0.5302 GB, free: 6.785 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006188/0.5301, allocations: 319.3 kB / 0.5305 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.8e-05/0.5301, allocations: 15.94 kB / 0.5306 GB, free: 6.457 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/0.5301, allocations: 0 / 0.5306 GB, free: 6.457 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.5302, allocations: 7.984 kB / 0.5306 GB, free: 6.449 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006186/0.5364, allocations: 3.4 MB / 0.5339 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.5364, allocations: 0 / 0.5339 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/0.5387, allocations: 415.4 kB / 0.5343 GB, free: 2.582 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-05/0.5387, allocations: 4 kB / 0.5343 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.5388, allocations: 35.95 kB / 0.5343 GB, free: 2.543 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.498e-06/0.5389, allocations: 8 kB / 0.5343 GB, free: 2.535 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.5389, allocations: 4 kB / 0.5343 GB, free: 2.531 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1994/0.7383, allocations: 2.796 MB / 0.5371 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005705/0.7389, allocations: 300.2 kB / 0.5374 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000325/0.7392, allocations: 31.47 kB / 0.5374 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009333/0.7401, allocations: 41.8 kB / 0.5374 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.7403, allocations: 52.67 kB / 0.5375 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.19e-05/0.7404, allocations: 37.08 kB / 0.5375 GB, free: 123.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002735/0.7431, allocations: 1.84 MB / 0.5393 GB, free: 123.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.7431, allocations: 1.375 kB / 0.5393 GB, free: 123.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003475/0.7466, allocations: 0.8229 MB / 0.5401 GB, free: 123.3 MB / 462.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.0003076/0.7469, allocations: 160 kB / 0.5403 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004097/0.7511, allocations: 3.629 MB / 0.5438 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.7511, allocations: 2 kB / 0.5438 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007014/0.7518, allocations: 0.7181 MB / 0.5445 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.7533, allocations: 268.9 kB / 0.5448 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008523/0.7618, allocations: 7.38 MB / 0.552 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/0.7637, allocations: 2.387 MB / 0.5543 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006468/0.7643, allocations: 235.2 kB / 0.5545 GB, free: 116.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.573e-06/0.7643, allocations: 0 / 0.5545 GB, free: 116.2 MB / 462.1 MB Notification: Performance of Templates: time 0.0449/0.8092, allocations: 40.99 MB / 0.5946 GB, free: 76.45 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/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