Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002298/0.002298, allocations: 213.6 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 43.94 kB / 377.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2978, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01069/0.3084, allocations: 7.651 MB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00737/0.3158, allocations: 3.403 MB / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.3172, allocations: 43.81 kB / 442.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002351/0.3195, allocations: 1.055 MB / 443.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003918/0.3234, allocations: 1.346 MB / 444.6 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001328/0.3248, allocations: 0.5418 MB / 445.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003942/0.3287, allocations: 2.625 MB / 447.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001728/0.3304, allocations: 1.22 MB / 449 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.3318, allocations: 0.8407 MB / 449.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001841/0.3337, allocations: 1.257 MB / 451.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003072/0.334, allocations: 148 kB / 451.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.3359, allocations: 0.932 MB / 452.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.337, allocations: 1.067 MB / 453.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.3382, allocations: 1.242 MB / 454.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005246/0.3435, allocations: 4.101 MB / 458.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3435, allocations: 7.938 kB / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.3435, allocations: 0 / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000113/0.3436, allocations: 0 / 458.6 MB, free: 11.25 MB / 366.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.00623/0.3498, allocations: 2.993 MB / 461.6 MB, free: 8.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.3499, allocations: 15.97 kB / 461.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006026/0.3505, allocations: 462.4 kB / 462.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005302/0.3558, allocations: 1.598 MB / 463.7 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004212/0.36, allocations: 1.551 MB / 465.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.3602, allocations: 123 kB / 465.4 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008001/0.361, allocations: 167.8 kB / 465.5 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01153/0.3725, allocations: 6.538 MB / 472.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-05/0.3726, allocations: 23.81 kB / 472.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000262/0.3728, allocations: 79.91 kB / 472.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002563/0.3754, allocations: 1.472 MB / 473.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01115/0.3866, allocations: 5.837 MB / 479.5 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03338/0.4199, allocations: 25.61 MB / 0.4932 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005593/0.4255, allocations: 2.034 MB / 0.4952 GB, free: 9.379 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.4273, allocations: 1.129 MB / 0.4963 GB, free: 8.238 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008357/0.4356, allocations: 4.533 MB / 0.5008 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.4357, allocations: 46.56 kB / 0.5008 GB, free: 3.621 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.147e-06/0.4357, allocations: 0 / 0.5008 GB, free: 3.621 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02425/0.4599, allocations: 9.702 MB / 0.5103 GB, free: 9.844 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.456e-05/0.46, allocations: 141 kB / 0.5104 GB, free: 9.676 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003823/0.4638, allocations: 2.719 MB / 0.5131 GB, free: 6.938 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002219/0.464, allocations: 41.64 kB / 0.5131 GB, free: 6.891 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00169/0.4657, allocations: 2.132 MB / 0.5152 GB, free: 4.738 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000588/0.4663, allocations: 444.6 kB / 0.5156 GB, free: 4.301 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.4674, allocations: 0.8416 MB / 0.5164 GB, free: 3.449 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4676, allocations: 301.1 kB / 0.5167 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002262/0.4698, allocations: 1.441 MB / 0.5181 GB, free: 1.707 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004321/0.4742, allocations: 4.061 MB / 0.5221 GB, free: 12.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00744/0.4816, allocations: 5.941 MB / 0.5279 GB, free: 5.082 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.824e-05/0.4817, allocations: 28 kB / 0.5279 GB, free: 5.055 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01235/0.494, allocations: 6.025 MB / 0.5338 GB, free: 15.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.641e-05/0.4941, allocations: 44 kB / 0.5338 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001336/0.4942, allocations: 92 kB / 0.5339 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/0.4967, allocations: 0.8165 MB / 0.5347 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003157/0.4998, allocations: 0.9474 MB / 0.5357 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00686/0.5067, allocations: 4.545 MB / 0.5401 GB, free: 8.461 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003438/0.5101, allocations: 243.7 kB / 0.5403 GB, free: 8.223 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007148/0.5108, allocations: 260 kB / 0.5406 GB, free: 7.969 MB / 462.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.002607/0.5135, allocations: 1.368 MB / 0.5419 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004941/0.5139, allocations: 242.3 kB / 0.5421 GB, free: 6.352 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004534/0.5185, allocations: 2.122 MB / 0.5442 GB, free: 4.219 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/0.5185, allocations: 12 kB / 0.5442 GB, free: 4.207 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/0.5185, allocations: 8 kB / 0.5442 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.5185, allocations: 3.984 kB / 0.5442 GB, free: 4.195 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2162/0.7348, allocations: 5.034 MB / 0.5491 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/0.7348, allocations: 2.297 kB / 0.5492 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009408/0.7357, allocations: 157.8 kB / 0.5493 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002254/0.738, allocations: 0.683 MB / 0.55 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001907/0.7382, allocations: 19.95 kB / 0.55 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004585/0.7428, allocations: 4.046 MB / 0.5539 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.7428, allocations: 8.875 kB / 0.5539 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005624/0.7484, allocations: 4.057 MB / 0.5579 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006368/0.749, allocations: 217.1 kB / 0.5581 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002496/0.7493, allocations: 16.81 kB / 0.5581 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008835/0.7502, allocations: 77.61 kB / 0.5582 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.7503, allocations: 61.75 kB / 0.5583 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.051e-05/0.7504, allocations: 31.38 kB / 0.5583 GB, free: 111 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002029/0.7524, allocations: 1.7 MB / 0.56 GB, free: 110.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7524, allocations: 0 / 0.56 GB, free: 110.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002733/0.7552, allocations: 0.6604 MB / 0.5606 GB, free: 110.3 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.00543/0.7606, allocations: 4.738 MB / 0.5652 GB, free: 108.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004188/0.7648, allocations: 3.339 MB / 0.5685 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.7648, allocations: 4 kB / 0.5685 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.7659, allocations: 0.9609 MB / 0.5694 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.7675, allocations: 245.8 kB / 0.5697 GB, free: 105.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03368/0.8011, allocations: 29.96 MB / 0.5989 GB, free: 72.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001508/0.8026, allocations: 2.238 MB / 0.6011 GB, free: 70.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002228/0.8049, allocations: 1.312 MB / 0.6024 GB, free: 68.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.8059, allocations: 1.097 MB / 0.6035 GB, free: 67.62 MB / 462.1 MB Notification: Performance of SimCode: time 1.292e-06/0.8059, allocations: 2.188 kB / 0.6035 GB, free: 67.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0835/0.8894, allocations: 48.34 MB / 0.6507 GB, free: 19.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.55/20.44, allocations: 14.27 kB / 0.6507 GB, free: 19.55 MB / 462.1 MB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.0019992 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.142647861001024]