Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001347/0.001347, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 59.91 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3215, allocations: 50.53 MB / 408.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009885/0.3315, allocations: 7.602 MB / 416.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006962/0.3385, allocations: 3.348 MB / 419.7 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009849/0.3395, allocations: 43.88 kB / 419.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.3419, allocations: 1.028 MB / 420.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003492/0.3454, allocations: 1.315 MB / 422.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001582/0.347, allocations: 0.5418 MB / 422.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004152/0.3511, allocations: 2.614 MB / 425.3 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001952/0.3531, allocations: 1.378 MB / 426.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.3543, allocations: 0.8251 MB / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.3563, allocations: 1.152 MB / 428.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003174/0.3566, allocations: 144 kB / 428.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001787/0.3584, allocations: 0.8853 MB / 429.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001059/0.3595, allocations: 1.044 MB / 430.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001258/0.3607, allocations: 1.242 MB / 431.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005688/0.3664, allocations: 4.111 MB / 436 MB, free: 6.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.3665, allocations: 4 kB / 436 MB, free: 6.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3665, allocations: 0 / 436 MB, free: 6.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001028/0.3666, allocations: 0 / 436 MB, free: 6.102 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.006496/0.3731, allocations: 3.069 MB / 439.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3732, allocations: 8.031 kB / 439.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006116/0.3738, allocations: 462.4 kB / 439.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005242/0.379, allocations: 1.602 MB / 441.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003173/0.3822, allocations: 1.609 MB / 442.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.3824, allocations: 126.9 kB / 442.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004103/0.3828, allocations: 163.8 kB / 443.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.3929, allocations: 6.538 MB / 449.6 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.595e-05/0.393, allocations: 27.75 kB / 449.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.3932, allocations: 83.89 kB / 449.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002529/0.3958, allocations: 1.468 MB / 451.2 MB, free: 6.355 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.4066, allocations: 5.826 MB / 457 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03245/0.4391, allocations: 25.7 MB / 482.7 MB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005776/0.4449, allocations: 2.552 MB / 485.2 MB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.4467, allocations: 1.215 MB / 486.5 MB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008437/0.4551, allocations: 4.824 MB / 491.3 MB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/0.4552, allocations: 50.55 kB / 491.3 MB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.178e-06/0.4552, allocations: 0 / 491.3 MB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02572/0.481, allocations: 9.924 MB / 0.4895 GB, free: 3.105 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.4811, allocations: 145 kB / 0.4896 GB, free: 2.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003937/0.485, allocations: 2.711 MB / 0.4923 GB, free: 208 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001757/0.4852, allocations: 41.7 kB / 0.4923 GB, free: 160 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/0.487, allocations: 2.128 MB / 0.4944 GB, free: 14.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004964/0.4875, allocations: 452.6 kB / 0.4948 GB, free: 13.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001072/0.4885, allocations: 0.8338 MB / 0.4957 GB, free: 12.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4887, allocations: 305.1 kB / 0.4959 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/0.4909, allocations: 1.441 MB / 0.4974 GB, free: 10.97 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004448/0.4954, allocations: 4.061 MB / 0.5013 GB, free: 5.594 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00756/0.5029, allocations: 5.946 MB / 0.5071 GB, free: 14.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.577e-05/0.503, allocations: 24 kB / 0.5072 GB, free: 14.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01166/0.5147, allocations: 6.019 MB / 0.513 GB, free: 8.289 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.452e-05/0.5148, allocations: 47.98 kB / 0.5131 GB, free: 8.242 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/0.5149, allocations: 92 kB / 0.5132 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/0.5173, allocations: 0.8236 MB / 0.514 GB, free: 7.328 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002853/0.5202, allocations: 0.9474 MB / 0.5149 GB, free: 6.379 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006256/0.5265, allocations: 4.648 MB / 0.5194 GB, free: 1.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/0.5293, allocations: 247.6 kB / 0.5197 GB, free: 1.348 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004549/0.5298, allocations: 260 kB / 0.5199 GB, free: 1.094 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.00222/0.532, allocations: 1.368 MB / 0.5213 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004125/0.5325, allocations: 242.3 kB / 0.5215 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00431/0.5368, allocations: 2.13 MB / 0.5236 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.502e-05/0.5368, allocations: 12 kB / 0.5236 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.5368, allocations: 4 kB / 0.5236 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/0.5369, allocations: 11.98 kB / 0.5236 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009302/0.5462, allocations: 5.078 MB / 0.5285 GB, free: 8.152 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.5462, allocations: 4 kB / 0.5286 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007543/0.547, allocations: 155.8 kB / 0.5287 GB, free: 7.996 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/0.5491, allocations: 0.6756 MB / 0.5294 GB, free: 7.316 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.512e-05/0.5492, allocations: 27.98 kB / 0.5294 GB, free: 7.289 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005753/0.5549, allocations: 4.144 MB / 0.5334 GB, free: 3.004 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.555, allocations: 3.938 kB / 0.5334 GB, free: 3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2634/0.8184, allocations: 4.063 MB / 0.5374 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007367/0.8192, allocations: 294.1 kB / 0.5377 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002946/0.8195, allocations: 18.41 kB / 0.5377 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009984/0.8205, allocations: 71.16 kB / 0.5378 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.8207, allocations: 55.52 kB / 0.5378 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.8209, allocations: 35.94 kB / 0.5379 GB, free: 124.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00283/0.8237, allocations: 1.695 MB / 0.5395 GB, free: 123.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8237, allocations: 0 / 0.5395 GB, free: 123.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002875/0.8266, allocations: 0.6613 MB / 0.5402 GB, free: 123.7 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.005745/0.8323, allocations: 4.748 MB / 0.5448 GB, free: 121.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004508/0.8369, allocations: 3.472 MB / 0.5482 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.8369, allocations: 0 / 0.5482 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.8379, allocations: 1.044 MB / 0.5492 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.8394, allocations: 259.5 kB / 0.5495 GB, free: 120.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03234/0.8717, allocations: 29.91 MB / 0.5787 GB, free: 89.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/0.8737, allocations: 2.24 MB / 0.5809 GB, free: 87.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002424/0.8762, allocations: 1.317 MB / 0.5821 GB, free: 86.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/0.8773, allocations: 1.089 MB / 0.5832 GB, free: 85.21 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.8773, allocations: 0 / 0.5832 GB, free: 85.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08008/0.9574, allocations: 44.69 MB / 0.6268 GB, free: 40.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.93/19.89, allocations: 7.812 kB / 0.6269 GB, free: 40.81 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches