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.002263/0.002262, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002124/0.002125, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.332/2.332, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 51.92 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1822, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.018/0.2003, allocations: 7.612 MB / 357.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.2137, allocations: 3.337 MB / 361.1 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002476/0.2163, allocations: 39.88 kB / 361.2 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004098/0.2205, allocations: 1.031 MB / 362.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006578/0.2271, allocations: 1.344 MB / 363.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00236/0.2295, allocations: 0.5418 MB / 364.1 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004934/0.2345, allocations: 2.581 MB / 366.7 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002228/0.2367, allocations: 1.386 MB / 368 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001427/0.2382, allocations: 0.8368 MB / 368.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.2397, allocations: 1.145 MB / 370 MB, free: 356 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003683/0.2401, allocations: 151.9 kB / 370.2 MB, free: 204 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3426/0.5827, allocations: 0.9035 MB / 371.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003092/0.5859, allocations: 1.047 MB / 372.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0033/0.5892, allocations: 1.256 MB / 373.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.6, allocations: 3.957 MB / 377.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.107e-05/0.6, allocations: 3.562 kB / 377.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6001, allocations: 1.375 kB / 377.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002234/0.6003, allocations: 0 / 377.3 MB, free: 10.89 MB / 302.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.01888/0.6192, allocations: 3.001 MB / 380.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.057e-05/0.6193, allocations: 13.92 kB / 380.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002807/0.6221, allocations: 462.5 kB / 380.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.6339, allocations: 1.579 MB / 382.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008295/0.6423, allocations: 1.701 MB / 384.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003681/0.6428, allocations: 128.8 kB / 384.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001762/0.6446, allocations: 167.6 kB / 384.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01956/0.6642, allocations: 6.533 MB / 390.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/0.6644, allocations: 34.22 kB / 390.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006727/0.6651, allocations: 82.14 kB / 391 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004887/0.67, allocations: 1.467 MB / 392.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02028/0.6903, allocations: 5.832 MB / 398.3 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05981/0.7502, allocations: 25.77 MB / 424.1 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/0.7608, allocations: 2.536 MB / 426.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004758/0.7657, allocations: 1.223 MB / 427.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/0.7816, allocations: 4.823 MB / 432.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.652e-05/0.7818, allocations: 42.56 kB / 432.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 7.564e-06/0.7818, allocations: 0 / 432.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.0449/0.8267, allocations: 9.782 MB / 442.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.8269, allocations: 141 kB / 442.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007587/0.8345, allocations: 2.722 MB / 445.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004923/0.835, allocations: 37.7 kB / 445.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003098/0.8381, allocations: 2.044 MB / 447.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001242/0.8394, allocations: 433.6 kB / 447.9 MB, free: 316 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002321/0.8418, allocations: 0.8285 MB / 448.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.842, allocations: 301.1 kB / 449 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004245/0.8463, allocations: 1.441 MB / 450.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007683/0.854, allocations: 4.064 MB / 454.5 MB, free: 8.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/0.8671, allocations: 5.942 MB / 460.4 MB, free: 1.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001308/0.8673, allocations: 35.56 kB / 460.5 MB, free: 1.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.02806/0.8954, allocations: 6.001 MB / 466.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.8956, allocations: 52.03 kB / 466.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002032/0.8958, allocations: 95.94 kB / 466.6 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00495/0.9008, allocations: 0.8201 MB / 467.4 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006876/0.9077, allocations: 0.9396 MB / 468.4 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/0.9192, allocations: 4.669 MB / 473 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007959/0.9272, allocations: 243.6 kB / 473.3 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001707/0.929, allocations: 256 kB / 473.5 MB, free: 4.32 MB / 382.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.005625/0.9347, allocations: 1.372 MB / 474.9 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/0.9357, allocations: 225.1 kB / 475.1 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008152/0.9439, allocations: 2.13 MB / 477.3 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.741e-05/0.944, allocations: 23.86 kB / 477.3 MB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/0.944, allocations: 4 kB / 477.3 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.361e-05/0.9441, allocations: 7.984 kB / 477.3 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01975/0.9638, allocations: 5.064 MB / 482.4 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-05/0.9639, allocations: 3.844 kB / 482.4 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/0.9655, allocations: 159.7 kB / 482.5 MB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004001/0.9695, allocations: 0.6873 MB / 483.2 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002624/0.9698, allocations: 16 kB / 483.2 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009298/0.9792, allocations: 4.159 MB / 487.4 MB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.9792, allocations: 4.062 kB / 487.4 MB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/0.9908, allocations: 4.058 MB / 491.4 MB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.992, allocations: 286 kB / 491.7 MB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005774/0.9926, allocations: 19.98 kB / 491.7 MB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001749/0.9944, allocations: 71.83 kB / 491.8 MB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/0.9948, allocations: 56.31 kB / 491.9 MB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001628/0.995, allocations: 31.98 kB / 491.9 MB, free: 1.688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005863/1.001, allocations: 1.694 MB / 493.6 MB, free: 15.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.62e-07/1.001, allocations: 5.75 kB / 493.6 MB, free: 15.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.008467/1.009, allocations: 0.6749 MB / 494.3 MB, free: 15.31 MB / 414.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.01482/1.024, allocations: 4.728 MB / 499 MB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01126/1.036, allocations: 3.695 MB / 0.4909 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/1.036, allocations: 0 / 0.4909 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002346/1.038, allocations: 1.033 MB / 0.4919 GB, free: 5.805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/1.041, allocations: 264.1 kB / 0.4922 GB, free: 5.547 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.096/1.137, allocations: 32.03 MB / 0.5234 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3037/1.44, allocations: 2.234 MB / 0.5256 GB, free: 155.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004822/1.445, allocations: 1.32 MB / 0.5269 GB, free: 155.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002574/1.448, allocations: 1.1 MB / 0.528 GB, free: 155.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.973e-06/1.448, allocations: 0 / 0.528 GB, free: 155.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1442/1.592, allocations: 45.48 MB / 0.5724 GB, free: 123.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.48/19.07, allocations: 15.89 kB / 0.5724 GB, free: 123.6 MB / 446.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