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.001414/0.001414, allocations: 110.8 kB / 17.06 MB, free: 6.02 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.001359/0.001359, allocations: 189.4 kB / 18 MB, free: 5.102 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.47/1.47, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2945, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009445/0.304, allocations: 7.62 MB / 407.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006579/0.3106, allocations: 3.337 MB / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.3118, allocations: 39.88 kB / 411.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002237/0.3141, allocations: 1.027 MB / 412.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003357/0.3175, allocations: 1.339 MB / 413.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.3188, allocations: 0.5496 MB / 414.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003574/0.3224, allocations: 2.592 MB / 416.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.3243, allocations: 1.385 MB / 418.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.3257, allocations: 0.829 MB / 419 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.3273, allocations: 1.16 MB / 420.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000355/0.3277, allocations: 144 kB / 420.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.3295, allocations: 0.9009 MB / 421.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.3306, allocations: 1.06 MB / 422.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.3319, allocations: 1.25 MB / 423.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005174/0.3371, allocations: 4.153 MB / 427.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3372, allocations: 0 / 427.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3372, allocations: 0 / 427.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.225e-05/0.3373, allocations: 0 / 427.6 MB, free: 13.31 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.005943/0.3432, allocations: 3.084 MB / 430.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.3433, allocations: 19.89 kB / 430.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005614/0.3438, allocations: 458.4 kB / 431.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005379/0.3492, allocations: 1.602 MB / 432.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00313/0.3524, allocations: 1.723 MB / 434.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.3525, allocations: 123 kB / 434.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003366/0.3529, allocations: 163.9 kB / 434.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.3629, allocations: 6.534 MB / 441.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.168e-05/0.3631, allocations: 39.7 kB / 441.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/0.3633, allocations: 79.89 kB / 441.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002547/0.3659, allocations: 1.464 MB / 442.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/0.3765, allocations: 5.838 MB / 448.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03125/0.4077, allocations: 25.69 MB / 474.4 MB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005764/0.4136, allocations: 2.545 MB / 477 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001712/0.4153, allocations: 1.215 MB / 478.2 MB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007717/0.423, allocations: 4.827 MB / 483 MB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/0.4231, allocations: 46.5 kB / 483.1 MB, free: 4.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.216e-06/0.4231, allocations: 0 / 483.1 MB, free: 4.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02664/0.4498, allocations: 9.927 MB / 493 MB, free: 10.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.4499, allocations: 140.9 kB / 493.1 MB, free: 10.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004232/0.4542, allocations: 2.723 MB / 495.8 MB, free: 7.273 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.4544, allocations: 37.7 kB / 495.9 MB, free: 7.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001635/0.456, allocations: 2.144 MB / 498 MB, free: 5.066 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005156/0.4565, allocations: 436.8 kB / 498.5 MB, free: 4.637 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/0.4577, allocations: 0.8415 MB / 499.3 MB, free: 3.785 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4578, allocations: 305.1 kB / 499.6 MB, free: 3.484 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/0.4601, allocations: 1.441 MB / 0.4893 GB, free: 2.039 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004571/0.4647, allocations: 4.057 MB / 0.4933 GB, free: 12.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007603/0.4723, allocations: 5.946 MB / 0.4991 GB, free: 5.414 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.863e-05/0.4724, allocations: 28 kB / 0.4991 GB, free: 5.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01292/0.4853, allocations: 6.022 MB / 0.505 GB, free: 15.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.4855, allocations: 44 kB / 0.505 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001851/0.4857, allocations: 96 kB / 0.5051 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002603/0.4883, allocations: 0.8286 MB / 0.5059 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/0.4916, allocations: 0.9357 MB / 0.5068 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006677/0.4983, allocations: 4.659 MB / 0.5114 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003349/0.5017, allocations: 243.7 kB / 0.5116 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007924/0.5025, allocations: 264.5 kB / 0.5119 GB, free: 8.152 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.00309/0.5056, allocations: 1.368 MB / 0.5132 GB, free: 6.773 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006007/0.5062, allocations: 242.3 kB / 0.5134 GB, free: 6.535 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0049/0.5111, allocations: 2.13 MB / 0.5155 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.469e-05/0.5112, allocations: 12 kB / 0.5155 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/0.5112, allocations: 4 kB / 0.5155 GB, free: 4.371 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5112, allocations: 7.922 kB / 0.5155 GB, free: 4.363 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/0.5229, allocations: 5.07 MB / 0.5205 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.5229, allocations: 4 kB / 0.5205 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008358/0.5238, allocations: 151.8 kB / 0.5206 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002224/0.526, allocations: 0.6835 MB / 0.5213 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.5262, allocations: 23.94 kB / 0.5213 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005983/0.5322, allocations: 4.148 MB / 0.5254 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5322, allocations: 4.031 kB / 0.5254 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007266/0.5395, allocations: 4.071 MB / 0.5294 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006926/0.5402, allocations: 295.4 kB / 0.5296 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004786/0.5407, allocations: 16 kB / 0.5296 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.5419, allocations: 79.89 kB / 0.5297 GB, free: 5.562 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.5421, allocations: 52.36 kB / 0.5298 GB, free: 5.512 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.5423, allocations: 35.98 kB / 0.5298 GB, free: 5.477 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003602/0.5459, allocations: 1.698 MB / 0.5315 GB, free: 3.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5459, allocations: 0 / 0.5315 GB, free: 3.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003926/0.5498, allocations: 0.6677 MB / 0.5321 GB, free: 3.102 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.2352/0.7851, allocations: 4.754 MB / 0.5368 GB, free: 131.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005451/0.7906, allocations: 3.477 MB / 0.5402 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.7906, allocations: 0 / 0.5402 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.7917, allocations: 1.043 MB / 0.5412 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.7934, allocations: 256.2 kB / 0.5414 GB, free: 129.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03184/0.8252, allocations: 29.93 MB / 0.5707 GB, free: 103.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.8269, allocations: 2.242 MB / 0.5728 GB, free: 100.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00229/0.8292, allocations: 1.308 MB / 0.5741 GB, free: 99.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.8303, allocations: 1.105 MB / 0.5752 GB, free: 98.39 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.8303, allocations: 0 / 0.5752 GB, free: 98.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07495/0.9052, allocations: 44.7 MB / 0.6189 GB, free: 54.03 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.67/18.58, allocations: 23.16 kB / 0.6189 GB, free: 54.01 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