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.0011/0.0011, allocations: 108.4 kB / 17.74 MB, free: 5.188 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.001156/0.001156, allocations: 188.3 kB / 18.67 MB, free: 4.266 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.452/1.452, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 43.92 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2804, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008841/0.2892, allocations: 7.62 MB / 409 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006492/0.2958, allocations: 3.337 MB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001272/0.2971, allocations: 39.88 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002248/0.2994, allocations: 1.016 MB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003349/0.3028, allocations: 1.35 MB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.3041, allocations: 0.5418 MB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004171/0.3083, allocations: 2.592 MB / 417.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00217/0.3105, allocations: 1.389 MB / 419.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001598/0.3121, allocations: 0.829 MB / 420.1 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.314, allocations: 1.148 MB / 421.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005376/0.3145, allocations: 151.9 kB / 421.4 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001934/0.3165, allocations: 0.9087 MB / 422.3 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001184/0.3177, allocations: 1.063 MB / 423.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001857/0.3195, allocations: 1.246 MB / 424.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004913/0.3245, allocations: 4.123 MB / 428.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.3245, allocations: 7.984 kB / 428.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3245, allocations: 0 / 428.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001308/0.3247, allocations: 0 / 428.8 MB, free: 13.37 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.005932/0.3306, allocations: 2.999 MB / 431.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3306, allocations: 8.031 kB / 431.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005222/0.3359, allocations: 1.569 MB / 433.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/0.3384, allocations: 1.41 MB / 434.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-05/0.3385, allocations: 123 kB / 434.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003281/0.3388, allocations: 167.8 kB / 435 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/0.3499, allocations: 6.538 MB / 441.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.3501, allocations: 31.69 kB / 441.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003165/0.3504, allocations: 83.89 kB / 441.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00259/0.353, allocations: 1.46 MB / 443.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01099/0.364, allocations: 5.834 MB / 449 MB, free: 8.562 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03055/0.3946, allocations: 25.65 MB / 474.6 MB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005687/0.4004, allocations: 2.56 MB / 477.2 MB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/0.4022, allocations: 1.215 MB / 478.4 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008736/0.411, allocations: 4.815 MB / 483.2 MB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.4111, allocations: 46.5 kB / 483.3 MB, free: 5.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.998e-06/0.4111, allocations: 0 / 483.3 MB, free: 5.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.0254/0.4365, allocations: 9.78 MB / 493.1 MB, free: 11.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.535e-05/0.4366, allocations: 145.2 kB / 493.2 MB, free: 11.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004578/0.4412, allocations: 2.706 MB / 495.9 MB, free: 8.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002696/0.4415, allocations: 41.7 kB / 495.9 MB, free: 8.363 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001662/0.4432, allocations: 2.044 MB / 498 MB, free: 6.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006876/0.4439, allocations: 430.6 kB / 498.4 MB, free: 5.863 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001652/0.4455, allocations: 0.8409 MB / 499.3 MB, free: 5.008 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.645e-05/0.4457, allocations: 309.1 kB / 499.6 MB, free: 4.703 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002291/0.448, allocations: 1.445 MB / 0.4893 GB, free: 3.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003975/0.4519, allocations: 4.073 MB / 0.4932 GB, free: 13.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006969/0.4589, allocations: 5.95 MB / 0.499 GB, free: 6.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.193e-05/0.4591, allocations: 28 kB / 0.4991 GB, free: 6.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01241/0.4715, allocations: 6.031 MB / 0.505 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.4717, allocations: 44 kB / 0.505 GB, free: 488 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000151/0.4718, allocations: 92 kB / 0.5051 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002481/0.4743, allocations: 0.8269 MB / 0.5059 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003204/0.4775, allocations: 0.9474 MB / 0.5068 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006334/0.4839, allocations: 4.651 MB / 0.5114 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003248/0.4872, allocations: 247.6 kB / 0.5116 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007849/0.488, allocations: 260 kB / 0.5119 GB, free: 9.328 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.002663/0.4907, allocations: 1.372 MB / 0.5132 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005433/0.4912, allocations: 225 kB / 0.5134 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004578/0.4958, allocations: 2.13 MB / 0.5155 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/0.4959, allocations: 12 kB / 0.5155 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.4959, allocations: 4 kB / 0.5155 GB, free: 5.562 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.4959, allocations: 3.984 kB / 0.5155 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/0.5065, allocations: 5.081 MB / 0.5205 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/0.5066, allocations: 0 / 0.5205 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008688/0.5075, allocations: 155.8 kB / 0.5206 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002144/0.5096, allocations: 0.6796 MB / 0.5213 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/0.5098, allocations: 23.98 kB / 0.5213 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005228/0.5151, allocations: 4.148 MB / 0.5254 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5151, allocations: 0 / 0.5254 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006609/0.5217, allocations: 4.055 MB / 0.5293 GB, free: 7.164 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007069/0.5225, allocations: 282 kB / 0.5296 GB, free: 6.867 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004996/0.523, allocations: 19.98 kB / 0.5296 GB, free: 6.848 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.5242, allocations: 75.89 kB / 0.5297 GB, free: 6.773 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.5245, allocations: 60.36 kB / 0.5297 GB, free: 6.715 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.5246, allocations: 31.98 kB / 0.5298 GB, free: 6.684 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003031/0.5276, allocations: 1.689 MB / 0.5314 GB, free: 4.984 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5276, allocations: 3.938 kB / 0.5314 GB, free: 4.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00369/0.5313, allocations: 0.6718 MB / 0.5321 GB, free: 4.309 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.0006782/0.532, allocations: 206.9 kB / 0.5323 GB, free: 4.094 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005885/0.5379, allocations: 3.489 MB / 0.5357 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.538, allocations: 4.656 kB / 0.5357 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2228/0.7607, allocations: 1.04 MB / 0.5367 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.002259/0.763, allocations: 247.5 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.009734/0.7728, allocations: 5.894 MB / 0.5427 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.7745, allocations: 2.237 MB / 0.5449 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006797/0.7752, allocations: 193.3 kB / 0.5451 GB, free: 131 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7753, allocations: 2 kB / 0.5451 GB, free: 131 MB / 462.1 MB Notification: Performance of Templates: time 0.05407/0.8293, allocations: 48.71 MB / 0.5926 GB, free: 85.54 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