Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 108.3 kB / 17.7 MB, free: 5.496 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.001538/0.001538, allocations: 183.8 kB / 18.62 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.001029, allocations: 55.91 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3086, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01349/0.3222, allocations: 7.621 MB / 409 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00911/0.3314, allocations: 3.337 MB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001716/0.3332, allocations: 35.94 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003023/0.3363, allocations: 1.027 MB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004878/0.3412, allocations: 1.35 MB / 414.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.3431, allocations: 0.5457 MB / 415.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004905/0.348, allocations: 2.586 MB / 417.9 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/0.3505, allocations: 1.381 MB / 419.2 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001684/0.3522, allocations: 0.8368 MB / 420.1 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00197/0.3542, allocations: 1.144 MB / 421.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003815/0.3546, allocations: 148 kB / 421.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002371/0.357, allocations: 0.9087 MB / 422.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001328/0.3583, allocations: 1.056 MB / 423.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.3599, allocations: 1.254 MB / 424.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005649/0.3656, allocations: 4.119 MB / 428.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3656, allocations: 0 / 428.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3656, allocations: 0 / 428.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.39e-05/0.3657, allocations: 0 / 428.7 MB, free: 13.42 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.006333/0.372, allocations: 3.006 MB / 431.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3721, allocations: 12.02 kB / 431.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005386/0.3775, allocations: 1.561 MB / 433.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002646/0.3802, allocations: 1.417 MB / 434.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.3803, allocations: 131 kB / 434.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000341/0.3806, allocations: 159.8 kB / 435 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009467/0.3901, allocations: 6.534 MB / 441.5 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.044e-05/0.3902, allocations: 27.86 kB / 441.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002304/0.3905, allocations: 79.91 kB / 441.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002499/0.393, allocations: 1.472 MB / 443.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01044/0.4034, allocations: 5.83 MB / 448.9 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0291/0.4326, allocations: 25.65 MB / 474.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005541/0.4382, allocations: 2.56 MB / 477.1 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.4397, allocations: 1.215 MB / 478.3 MB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006953/0.4466, allocations: 4.811 MB / 483.2 MB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.4467, allocations: 46.5 kB / 483.2 MB, free: 5.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.917e-06/0.4467, allocations: 0 / 483.2 MB, free: 5.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02366/0.4704, allocations: 9.787 MB / 493 MB, free: 11.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/0.4705, allocations: 141 kB / 493.1 MB, free: 11.19 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003416/0.4739, allocations: 2.71 MB / 495.8 MB, free: 8.461 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001548/0.4741, allocations: 37.7 kB / 495.9 MB, free: 8.418 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.4753, allocations: 2.044 MB / 497.9 MB, free: 6.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003781/0.4757, allocations: 430.6 kB / 498.3 MB, free: 5.918 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009228/0.4766, allocations: 0.8332 MB / 499.2 MB, free: 5.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.627e-05/0.4767, allocations: 305.1 kB / 499.5 MB, free: 4.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/0.4787, allocations: 1.452 MB / 0.4892 GB, free: 3.309 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003895/0.4826, allocations: 4.073 MB / 0.4932 GB, free: 13.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006853/0.4895, allocations: 5.951 MB / 0.499 GB, free: 6.648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.382e-05/0.4896, allocations: 28 kB / 0.499 GB, free: 6.621 MB / 430.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01031/0.4999, allocations: 6.041 MB / 0.5049 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/0.5, allocations: 44 kB / 0.5049 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.567e-05/0.5001, allocations: 92 kB / 0.505 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002312/0.5024, allocations: 0.8264 MB / 0.5058 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/0.5052, allocations: 0.9435 MB / 0.5068 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00577/0.511, allocations: 4.648 MB / 0.5113 GB, free: 9.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003106/0.5141, allocations: 243.6 kB / 0.5115 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005291/0.5147, allocations: 264 kB / 0.5118 GB, free: 9.379 MB / 446.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.002015/0.5167, allocations: 1.368 MB / 0.5131 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004736/0.5172, allocations: 229.6 kB / 0.5133 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004251/0.5215, allocations: 2.136 MB / 0.5154 GB, free: 5.625 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/0.5215, allocations: 12 kB / 0.5154 GB, free: 5.613 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.5215, allocations: 4 kB / 0.5154 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.659e-06/0.5215, allocations: 7.984 kB / 0.5154 GB, free: 5.602 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009015/0.5305, allocations: 5.07 MB / 0.5204 GB, free: 468 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.5306, allocations: 3.938 kB / 0.5204 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007879/0.5314, allocations: 155.8 kB / 0.5205 GB, free: 308 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002122/0.5335, allocations: 0.6795 MB / 0.5212 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.5336, allocations: 16.06 kB / 0.5212 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004993/0.5386, allocations: 4.155 MB / 0.5253 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5387, allocations: 3.938 kB / 0.5253 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006339/0.545, allocations: 4.055 MB / 0.5292 GB, free: 7.211 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007494/0.5458, allocations: 282.1 kB / 0.5295 GB, free: 6.914 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.546, allocations: 16 kB / 0.5295 GB, free: 6.898 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009404/0.547, allocations: 71.83 kB / 0.5296 GB, free: 6.828 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.5472, allocations: 60.3 kB / 0.5297 GB, free: 6.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.344e-05/0.5473, allocations: 28 kB / 0.5297 GB, free: 6.742 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00259/0.5499, allocations: 1.697 MB / 0.5313 GB, free: 5.035 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5499, allocations: 0 / 0.5313 GB, free: 5.035 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003719/0.5536, allocations: 0.676 MB / 0.532 GB, free: 4.359 MB / 462.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.0005407/0.5542, allocations: 206.8 kB / 0.5322 GB, free: 4.145 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005505/0.5597, allocations: 3.492 MB / 0.5356 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.5597, allocations: 0 / 0.5356 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2215/0.7812, allocations: 1.034 MB / 0.5366 GB, free: 133.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002485/0.7838, allocations: 260.2 kB / 0.5369 GB, free: 133.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009998/0.7938, allocations: 5.889 MB / 0.5426 GB, free: 132 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002183/0.796, allocations: 2.232 MB / 0.5448 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006416/0.7967, allocations: 197 kB / 0.545 GB, free: 131 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7967, allocations: 0 / 0.545 GB, free: 131 MB / 462.1 MB Notification: Performance of Templates: time 0.04941/0.8461, allocations: 48.3 MB / 0.5922 GB, free: 85.99 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches