Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.22 kB / 306.9 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09206/0.09344, allocations: 50.54 MB / 357.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1762/0.2696, allocations: 17.97 MB / 375.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009897/0.2796, allocations: 5.1 MB / 380.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003368/0.283, allocations: 73.44 kB / 380.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.2855, allocations: 1.007 MB / 381.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003544/0.289, allocations: 1.224 MB / 382.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.2904, allocations: 0.4926 MB / 383.3 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00486/0.2953, allocations: 3.588 MB / 386.9 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001913/0.2973, allocations: 1.358 MB / 388.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.2986, allocations: 0.7323 MB / 389 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001497/0.3001, allocations: 1.238 MB / 390.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002804/0.3004, allocations: 104.2 kB / 390.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.3022, allocations: 0.9056 MB / 391.2 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009082/0.3031, allocations: 1.022 MB / 392.3 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009573/0.304, allocations: 1.203 MB / 393.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002607/0.3067, allocations: 3.111 MB / 396.6 MB, free: 1.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3067, allocations: 0 / 396.6 MB, free: 1.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3067, allocations: 1.375 kB / 396.6 MB, free: 1.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.213e-05/0.3068, allocations: 3.938 kB / 396.6 MB, free: 1.582 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.005399/0.3122, allocations: 2.973 MB / 399.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3122, allocations: 9.844 kB / 399.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005052/0.3173, allocations: 1.569 MB / 401.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002715/0.32, allocations: 1.369 MB / 402.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.3201, allocations: 124.4 kB / 402.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003507/0.3205, allocations: 166.4 kB / 402.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.3308, allocations: 6.531 MB / 409.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.926e-05/0.331, allocations: 27.75 kB / 409.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002695/0.3312, allocations: 83.97 kB / 409.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002389/0.3336, allocations: 1.464 MB / 410.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/0.3446, allocations: 5.832 MB / 416.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03074/0.3754, allocations: 25.77 MB / 442.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005581/0.381, allocations: 2.545 MB / 445 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.3826, allocations: 1.215 MB / 446.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007363/0.39, allocations: 4.809 MB / 451.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.3901, allocations: 46.55 kB / 451.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.958e-06/0.3901, allocations: 0 / 451.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02472/0.4148, allocations: 9.792 MB / 460.9 MB, free: 2.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/0.4149, allocations: 137 kB / 461 MB, free: 2.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004663/0.4196, allocations: 2.698 MB / 463.7 MB, free: 15.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.4199, allocations: 37.7 kB / 463.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001476/0.4214, allocations: 2.054 MB / 465.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005726/0.422, allocations: 419 kB / 466.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001652/0.4236, allocations: 0.839 MB / 467.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.4237, allocations: 301.1 kB / 467.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002345/0.4261, allocations: 1.445 MB / 468.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004022/0.4301, allocations: 4.077 MB / 472.9 MB, free: 4.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006661/0.4368, allocations: 5.962 MB / 478.8 MB, free: 13.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.641e-05/0.4369, allocations: 24 kB / 478.9 MB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01188/0.4488, allocations: 6.028 MB / 484.9 MB, free: 7.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.449, allocations: 45 kB / 484.9 MB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001464/0.4491, allocations: 99.94 kB / 485 MB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002452/0.4516, allocations: 0.8162 MB / 485.9 MB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003132/0.4547, allocations: 0.9474 MB / 486.8 MB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005816/0.4606, allocations: 4.343 MB / 491.1 MB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003096/0.4637, allocations: 251.6 kB / 491.4 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007051/0.4644, allocations: 262.6 kB / 491.6 MB, free: 0.5781 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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],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 (502): * Single equations (assignments): 498 * 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002729/0.4672, allocations: 1.365 MB / 493 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006012/0.4678, allocations: 225 kB / 493.2 MB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004624/0.4724, allocations: 2.134 MB / 495.4 MB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.385e-05/0.4725, allocations: 16 kB / 495.4 MB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.4725, allocations: 3.938 kB / 495.4 MB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.4725, allocations: 11.92 kB / 495.4 MB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.4835, allocations: 5.077 MB / 0.4887 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.4836, allocations: 0 / 0.4887 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008238/0.4844, allocations: 155.8 kB / 0.4889 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00217/0.4866, allocations: 0.6756 MB / 0.4896 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/0.4868, allocations: 34.58 kB / 0.4896 GB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004989/0.4918, allocations: 3.881 MB / 0.4934 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.4918, allocations: 12 kB / 0.4934 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007031/0.4988, allocations: 4.061 MB / 0.4974 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007126/0.4996, allocations: 282.1 kB / 0.4976 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005763/0.5002, allocations: 19.05 kB / 0.4976 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.5015, allocations: 67.89 kB / 0.4977 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.5017, allocations: 60.3 kB / 0.4978 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.5019, allocations: 31.98 kB / 0.4978 GB, free: 14.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003295/0.5052, allocations: 1.685 MB / 0.4994 GB, free: 12.51 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5052, allocations: 8 kB / 0.4994 GB, free: 12.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004027/0.5093, allocations: 0.6562 MB / 0.5001 GB, free: 11.84 MB / 430.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 (74): * Single equations (assignments): 70 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006497/0.5099, allocations: 208.4 kB / 0.5003 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005879/0.5158, allocations: 3.477 MB / 0.5037 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.5159, allocations: 0 / 0.5037 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.5175, allocations: 1.036 MB / 0.5047 GB, free: 7.121 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.5198, allocations: 255.3 kB / 0.5049 GB, free: 6.875 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/0.5323, allocations: 7.128 MB / 0.5119 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003286/0.5357, allocations: 2.229 MB / 0.5141 GB, free: 13.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007987/0.5365, allocations: 191.4 kB / 0.5143 GB, free: 13.25 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5365, allocations: 0 / 0.5143 GB, free: 13.25 MB / 446.1 MB Notification: Performance of Templates: time 0.2308/0.7673, allocations: 48.18 MB / 0.5613 GB, free: 128.4 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches