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.001163/0.001163, allocations: 106.2 kB / 17.06 MB, free: 6.016 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.001209/0.001209, allocations: 195 kB / 18 MB, free: 5.094 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.438/1.438, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 55.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2961, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009131/0.3053, allocations: 7.611 MB / 407.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006785/0.3121, allocations: 3.341 MB / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.3135, allocations: 35.94 kB / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002526/0.3162, allocations: 1.027 MB / 412.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003435/0.3196, allocations: 1.35 MB / 413.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001503/0.3211, allocations: 0.5457 MB / 414.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003814/0.325, allocations: 2.598 MB / 416.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001979/0.327, allocations: 1.375 MB / 418.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.3283, allocations: 0.8329 MB / 419 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001523/0.3299, allocations: 1.152 MB / 420.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003368/0.3302, allocations: 148 kB / 420.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.332, allocations: 0.9125 MB / 421.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000941/0.333, allocations: 1.06 MB / 422.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001197/0.3342, allocations: 1.254 MB / 423.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004184/0.3384, allocations: 4.134 MB / 427.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3384, allocations: 0 / 427.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3384, allocations: 0 / 427.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.345e-05/0.3385, allocations: 0 / 427.6 MB, free: 13.32 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.005826/0.3444, allocations: 3.003 MB / 430.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.3444, allocations: 19.88 kB / 430.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005557/0.345, allocations: 466.4 kB / 431.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005336/0.3503, allocations: 1.58 MB / 432.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004071/0.3544, allocations: 1.718 MB / 434.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.3546, allocations: 123 kB / 434.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004122/0.355, allocations: 163.9 kB / 434.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/0.3663, allocations: 6.526 MB / 441.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.627e-05/0.3664, allocations: 39.66 kB / 441.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002486/0.3667, allocations: 83.89 kB / 441.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002529/0.3692, allocations: 1.468 MB / 442.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01109/0.3803, allocations: 5.834 MB / 448.6 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03176/0.4121, allocations: 25.65 MB / 474.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005523/0.4177, allocations: 2.545 MB / 476.8 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.4192, allocations: 1.211 MB / 478 MB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00777/0.427, allocations: 4.823 MB / 482.9 MB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.4271, allocations: 42.56 kB / 482.9 MB, free: 4.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.026e-06/0.4271, allocations: 0 / 482.9 MB, free: 4.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02346/0.4505, allocations: 9.787 MB / 492.7 MB, free: 10.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/0.4507, allocations: 141 kB / 492.8 MB, free: 10.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003408/0.4541, allocations: 2.719 MB / 495.5 MB, free: 7.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.4543, allocations: 37.7 kB / 495.6 MB, free: 7.527 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001334/0.4556, allocations: 2.048 MB / 497.6 MB, free: 5.449 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000449/0.4561, allocations: 434.6 kB / 498 MB, free: 5.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001005/0.4571, allocations: 0.8291 MB / 498.9 MB, free: 4.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.4572, allocations: 305.1 kB / 499.2 MB, free: 3.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.4593, allocations: 1.437 MB / 0.4889 GB, free: 2.438 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003733/0.463, allocations: 4.061 MB / 0.4928 GB, free: 13.06 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00689/0.4699, allocations: 5.943 MB / 0.4986 GB, free: 5.809 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.844e-05/0.47, allocations: 24 kB / 0.4987 GB, free: 5.785 MB / 430.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01127/0.4813, allocations: 6.007 MB / 0.5045 GB, free: 15.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.005e-05/0.4814, allocations: 44 kB / 0.5046 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.199e-05/0.4815, allocations: 96 kB / 0.5047 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/0.4838, allocations: 0.8247 MB / 0.5055 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.4866, allocations: 0.9435 MB / 0.5064 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00591/0.4926, allocations: 4.656 MB / 0.5109 GB, free: 9.062 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/0.4958, allocations: 243.6 kB / 0.5112 GB, free: 8.824 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005475/0.4964, allocations: 260 kB / 0.5114 GB, free: 8.57 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.002321/0.4987, allocations: 1.368 MB / 0.5128 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004797/0.4992, allocations: 228.9 kB / 0.513 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004293/0.5035, allocations: 2.134 MB / 0.5151 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.26e-05/0.5036, allocations: 16.55 kB / 0.5151 GB, free: 4.797 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.5036, allocations: 4 kB / 0.5151 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.5036, allocations: 3.984 kB / 0.5151 GB, free: 4.789 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.5138, allocations: 5.07 MB / 0.52 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.5138, allocations: 3.938 kB / 0.52 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007977/0.5146, allocations: 159.8 kB / 0.5202 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/0.5167, allocations: 0.6834 MB / 0.5209 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.5169, allocations: 20 kB / 0.5209 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005136/0.522, allocations: 4.14 MB / 0.5249 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.522, allocations: 4 kB / 0.5249 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006755/0.5288, allocations: 4.065 MB / 0.5289 GB, free: 6.398 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007899/0.5296, allocations: 286.1 kB / 0.5292 GB, free: 6.098 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/0.5299, allocations: 12 kB / 0.5292 GB, free: 6.086 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009736/0.5309, allocations: 79.89 kB / 0.5293 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.5311, allocations: 56.3 kB / 0.5293 GB, free: 5.953 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.392e-05/0.5312, allocations: 32 kB / 0.5293 GB, free: 5.922 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002558/0.5338, allocations: 1.698 MB / 0.531 GB, free: 4.215 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5338, allocations: 0 / 0.531 GB, free: 4.215 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003573/0.5374, allocations: 0.664 MB / 0.5316 GB, free: 3.551 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.2433/0.7807, allocations: 4.732 MB / 0.5363 GB, free: 131.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005985/0.7868, allocations: 3.487 MB / 0.5397 GB, free: 130.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.7868, allocations: 0 / 0.5397 GB, free: 130.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.7881, allocations: 1.04 MB / 0.5407 GB, free: 130 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.7899, allocations: 265.7 kB / 0.5409 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03569/0.8256, allocations: 29.82 MB / 0.5701 GB, free: 103.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001644/0.8273, allocations: 2.233 MB / 0.5722 GB, free: 101.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002343/0.8297, allocations: 1.317 MB / 0.5735 GB, free: 99.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/0.8309, allocations: 1.101 MB / 0.5746 GB, free: 98.72 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8309, allocations: 0 / 0.5746 GB, free: 98.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.648/1.479, allocations: 45.44 MB / 0.619 GB, free: 53.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.84/20.32, allocations: 21.73 kB / 0.619 GB, free: 53.6 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 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.mat","/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