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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001575/0.001575, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 47.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2837, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009742/0.2935, allocations: 7.611 MB / 407.9 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006608/0.3001, allocations: 3.341 MB / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0012/0.3014, allocations: 39.88 kB / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002314/0.3038, allocations: 1.031 MB / 412.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00352/0.3073, allocations: 1.366 MB / 413.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.3087, allocations: 0.5417 MB / 414.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003349/0.3121, allocations: 2.597 MB / 416.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.3142, allocations: 1.381 MB / 418.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.3157, allocations: 0.8407 MB / 419 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001776/0.3175, allocations: 1.145 MB / 420.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005532/0.3181, allocations: 148 kB / 420.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002051/0.3201, allocations: 0.9126 MB / 421.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.3215, allocations: 1.063 MB / 422.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001856/0.3233, allocations: 1.246 MB / 423.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005173/0.3285, allocations: 4.153 MB / 427.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3286, allocations: 0 / 427.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3286, allocations: 0 / 427.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001026/0.3287, allocations: 0 / 427.7 MB, free: 13.28 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.005992/0.3347, allocations: 3.088 MB / 430.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.3348, allocations: 16.02 kB / 430.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006166/0.3354, allocations: 454.4 kB / 431.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005457/0.3409, allocations: 1.598 MB / 432.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003591/0.3445, allocations: 1.731 MB / 434.5 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.3446, allocations: 123 kB / 434.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003968/0.345, allocations: 163.8 kB / 434.8 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01055/0.3556, allocations: 6.538 MB / 441.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.827e-05/0.3557, allocations: 31.77 kB / 441.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002703/0.356, allocations: 79.89 kB / 441.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002482/0.3585, allocations: 1.472 MB / 442.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/0.3687, allocations: 5.834 MB / 448.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02837/0.3971, allocations: 25.69 MB / 474.5 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005486/0.4027, allocations: 2.551 MB / 477 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.4042, allocations: 1.211 MB / 478.2 MB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007831/0.4121, allocations: 4.82 MB / 483 MB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.4122, allocations: 46.56 kB / 483.1 MB, free: 4.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 4.058e-06/0.4122, allocations: 4 kB / 483.1 MB, free: 4.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02366/0.4358, allocations: 9.928 MB / 493 MB, free: 10.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.344e-05/0.4359, allocations: 145 kB / 493.2 MB, free: 9.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003435/0.4394, allocations: 2.719 MB / 495.9 MB, free: 7.242 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001912/0.4396, allocations: 37.7 kB / 495.9 MB, free: 7.199 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00133/0.4409, allocations: 2.144 MB / 498.1 MB, free: 5.035 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005273/0.4415, allocations: 444.7 kB / 498.5 MB, free: 4.598 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001028/0.4425, allocations: 0.8376 MB / 499.3 MB, free: 3.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.4426, allocations: 305.1 kB / 499.6 MB, free: 3.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/0.4447, allocations: 1.441 MB / 0.4893 GB, free: 2.004 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003474/0.4482, allocations: 4.057 MB / 0.4933 GB, free: 12.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006261/0.4545, allocations: 5.946 MB / 0.4991 GB, free: 5.379 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.648e-05/0.4546, allocations: 24 kB / 0.4991 GB, free: 5.355 MB / 430.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01066/0.4652, allocations: 6.03 MB / 0.505 GB, free: 15.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.167e-05/0.4653, allocations: 44 kB / 0.505 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001098/0.4654, allocations: 96 kB / 0.5051 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00233/0.4678, allocations: 0.8242 MB / 0.5059 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/0.4708, allocations: 0.9396 MB / 0.5069 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006088/0.4769, allocations: 4.658 MB / 0.5114 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/0.4802, allocations: 235.7 kB / 0.5116 GB, free: 8.379 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007344/0.4809, allocations: 263.9 kB / 0.5119 GB, free: 8.125 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 (498): * Single equations (assignments): 494 * 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.002732/0.4837, allocations: 1.372 MB / 0.5132 GB, free: 6.742 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000608/0.4843, allocations: 242.3 kB / 0.5135 GB, free: 6.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00458/0.4889, allocations: 2.13 MB / 0.5155 GB, free: 4.355 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-05/0.489, allocations: 16 kB / 0.5156 GB, free: 4.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.489, allocations: 4.562 kB / 0.5156 GB, free: 4.336 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.489, allocations: 7.984 kB / 0.5156 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/0.5006, allocations: 5.07 MB / 0.5205 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.015e-05/0.5007, allocations: 0 / 0.5205 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008446/0.5015, allocations: 159.8 kB / 0.5207 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002079/0.5036, allocations: 0.6833 MB / 0.5213 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.5038, allocations: 24.06 kB / 0.5214 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005286/0.5091, allocations: 4.144 MB / 0.5254 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.5091, allocations: 4.031 kB / 0.5254 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006569/0.5157, allocations: 4.068 MB / 0.5294 GB, free: 5.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007478/0.5165, allocations: 295.4 kB / 0.5297 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005273/0.517, allocations: 16 kB / 0.5297 GB, free: 5.605 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.5183, allocations: 75.83 kB / 0.5298 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.5185, allocations: 52.36 kB / 0.5298 GB, free: 5.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.844e-05/0.5186, allocations: 32 kB / 0.5298 GB, free: 5.449 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003012/0.5217, allocations: 1.701 MB / 0.5315 GB, free: 3.738 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5217, allocations: 0 / 0.5315 GB, free: 3.738 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003719/0.5254, allocations: 0.6716 MB / 0.5322 GB, free: 3.066 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.2214/0.7469, allocations: 4.757 MB / 0.5368 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005101/0.752, allocations: 3.481 MB / 0.5402 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.7521, allocations: 0 / 0.5402 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.7532, allocations: 1.04 MB / 0.5412 GB, free: 130.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/0.7548, allocations: 258 kB / 0.5415 GB, free: 130.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03231/0.7872, allocations: 29.93 MB / 0.5707 GB, free: 103.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001813/0.789, allocations: 2.24 MB / 0.5729 GB, free: 101.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002277/0.7913, allocations: 1.322 MB / 0.5742 GB, free: 100.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/0.7924, allocations: 1.093 MB / 0.5752 GB, free: 99.09 MB / 462.1 MB Notification: Performance of SimCode: time 1.944e-06/0.7925, allocations: 0 / 0.5752 GB, free: 99.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06448/0.8569, allocations: 44.71 MB / 0.6189 GB, free: 54.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.68/18.54, allocations: 18.16 kB / 0.6189 GB, free: 54.7 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > 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.csv","/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