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.001114/0.001114, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 55.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2813, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008349/0.2896, allocations: 7.591 MB / 416.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00658/0.2963, allocations: 3.352 MB / 419.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.2977, allocations: 39.88 kB / 419.7 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.3001, allocations: 1.028 MB / 420.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003557/0.3037, allocations: 1.342 MB / 422.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001536/0.3052, allocations: 0.5379 MB / 422.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003849/0.3091, allocations: 2.618 MB / 425.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.3109, allocations: 1.385 MB / 426.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.3123, allocations: 0.8251 MB / 427.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/0.3137, allocations: 1.145 MB / 428.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002869/0.314, allocations: 151.9 kB / 428.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001567/0.3156, allocations: 0.897 MB / 429.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008201/0.3164, allocations: 1.044 MB / 430.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.3174, allocations: 1.25 MB / 432 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004185/0.3216, allocations: 4.103 MB / 436.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3217, allocations: 0 / 436.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3217, allocations: 0 / 436.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.701e-05/0.3218, allocations: 0 / 436.1 MB, free: 6.105 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.005626/0.3274, allocations: 3.065 MB / 439.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3275, allocations: 12.03 kB / 439.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004926/0.328, allocations: 462.4 kB / 439.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00512/0.3331, allocations: 1.602 MB / 441.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003153/0.3363, allocations: 1.609 MB / 442.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.539e-05/0.3364, allocations: 123 kB / 442.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003819/0.3368, allocations: 167.8 kB / 443.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00971/0.3465, allocations: 6.534 MB / 449.6 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.527e-05/0.3466, allocations: 31.75 kB / 449.7 MB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/0.3469, allocations: 79.89 kB / 449.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002428/0.3493, allocations: 1.464 MB / 451.2 MB, free: 6.367 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01006/0.3594, allocations: 5.845 MB / 457 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0316/0.391, allocations: 25.68 MB / 482.7 MB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005409/0.3965, allocations: 2.545 MB / 485.3 MB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.398, allocations: 1.215 MB / 486.5 MB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007828/0.4058, allocations: 4.827 MB / 491.3 MB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.4059, allocations: 46.5 kB / 491.4 MB, free: 13.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.388e-06/0.4059, allocations: 0 / 491.4 MB, free: 13.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02526/0.4312, allocations: 9.931 MB / 0.4895 GB, free: 3.109 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.832e-05/0.4313, allocations: 137 kB / 0.4897 GB, free: 2.945 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004764/0.4361, allocations: 2.719 MB / 0.4923 GB, free: 212 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001717/0.4363, allocations: 41.64 kB / 0.4924 GB, free: 164 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001538/0.4378, allocations: 2.132 MB / 0.4944 GB, free: 14.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000551/0.4384, allocations: 448.6 kB / 0.4949 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.4397, allocations: 0.8377 MB / 0.4957 GB, free: 12.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4398, allocations: 305.1 kB / 0.496 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002174/0.442, allocations: 1.433 MB / 0.4974 GB, free: 10.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004194/0.4462, allocations: 4.057 MB / 0.5013 GB, free: 5.605 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006712/0.4529, allocations: 5.953 MB / 0.5072 GB, free: 14.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.601e-05/0.453, allocations: 28 kB / 0.5072 GB, free: 14.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01138/0.4644, allocations: 6.023 MB / 0.5131 GB, free: 8.285 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.4646, allocations: 46.97 kB / 0.5131 GB, free: 8.242 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/0.4647, allocations: 92 kB / 0.5132 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002344/0.4671, allocations: 0.8235 MB / 0.514 GB, free: 7.328 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002951/0.47, allocations: 0.9357 MB / 0.5149 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00609/0.4761, allocations: 4.664 MB / 0.5195 GB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003049/0.4792, allocations: 243.7 kB / 0.5197 GB, free: 1.348 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005779/0.4798, allocations: 256 kB / 0.5199 GB, free: 1.098 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.002051/0.4819, allocations: 1.376 MB / 0.5213 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004641/0.4823, allocations: 242.3 kB / 0.5215 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004196/0.4866, allocations: 2.13 MB / 0.5236 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/0.4866, allocations: 12 kB / 0.5236 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.4866, allocations: 4 kB / 0.5236 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.4866, allocations: 3.984 kB / 0.5236 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.4967, allocations: 5.082 MB / 0.5286 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.4967, allocations: 0 / 0.5286 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007753/0.4975, allocations: 155.8 kB / 0.5287 GB, free: 7.996 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/0.4996, allocations: 0.6796 MB / 0.5294 GB, free: 7.312 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.4997, allocations: 20.28 kB / 0.5294 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005267/0.505, allocations: 4.148 MB / 0.5335 GB, free: 3.004 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.505, allocations: 4.031 kB / 0.5335 GB, free: 3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2342/0.7392, allocations: 4.066 MB / 0.5374 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007889/0.7401, allocations: 293.7 kB / 0.5377 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003372/0.7404, allocations: 17.27 kB / 0.5377 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.7415, allocations: 75.92 kB / 0.5378 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.7418, allocations: 53.05 kB / 0.5379 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.7419, allocations: 33.5 kB / 0.5379 GB, free: 124.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002797/0.7447, allocations: 1.694 MB / 0.5395 GB, free: 123.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7447, allocations: 0 / 0.5395 GB, free: 123.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003252/0.748, allocations: 0.6623 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.005876/0.7538, allocations: 4.742 MB / 0.5448 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005083/0.7589, allocations: 3.476 MB / 0.5482 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.759, allocations: 0 / 0.5482 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.7601, allocations: 1.038 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.001628/0.7617, allocations: 266 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.03365/0.7954, allocations: 29.92 MB / 0.5787 GB, free: 89.92 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/0.7971, allocations: 2.229 MB / 0.5809 GB, free: 87.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00225/0.7994, allocations: 1.316 MB / 0.5822 GB, free: 86.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/0.8004, allocations: 1.101 MB / 0.5832 GB, free: 85.24 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/0.8004, allocations: 3.938 kB / 0.5832 GB, free: 85.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06715/0.8676, allocations: 44.69 MB / 0.6269 GB, free: 40.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.4/17.27, allocations: 7.562 kB / 0.6269 GB, free: 40.84 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.0.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