Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_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.00141/0.001411, allocations: 110.6 kB / 17.73 MB, free: 5.301 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.001527/0.001527, allocations: 194.9 kB / 18.67 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 56.56 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08571/0.08703, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1918/0.2788, allocations: 7.67 MB / 382.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006606/0.2855, allocations: 3.304 MB / 385.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.2872, allocations: 39.47 kB / 385.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002195/0.2894, allocations: 1.027 MB / 386.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003745/0.2932, allocations: 1.368 MB / 388.1 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.2947, allocations: 0.5375 MB / 388.6 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004754/0.2995, allocations: 2.603 MB / 391.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00224/0.3018, allocations: 1.389 MB / 392.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001937/0.3037, allocations: 0.8373 MB / 393.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001814/0.3056, allocations: 1.158 MB / 394.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004542/0.306, allocations: 152 kB / 394.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002117/0.3081, allocations: 0.8971 MB / 395.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001172/0.3093, allocations: 1.065 MB / 396.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00144/0.3108, allocations: 1.258 MB / 398 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005926/0.3167, allocations: 4.148 MB / 402.1 MB, free: 268 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.3168, allocations: 3.984 kB / 402.1 MB, free: 264 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3168, allocations: 0 / 402.1 MB, free: 264 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001525/0.3169, allocations: 9.125 kB / 402.1 MB, free: 256 kB / 318.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.007376/0.3243, allocations: 3.103 MB / 405.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3244, allocations: 10.12 kB / 405.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006596/0.325, allocations: 456.9 kB / 405.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005873/0.3309, allocations: 1.603 MB / 407.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004068/0.335, allocations: 1.874 MB / 409.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.3351, allocations: 126.6 kB / 409.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004218/0.3356, allocations: 157.8 kB / 409.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.3461, allocations: 6.536 MB / 416 MB, free: 5.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-05/0.3462, allocations: 31.7 kB / 416 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002527/0.3465, allocations: 79.89 kB / 416.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002505/0.349, allocations: 1.468 MB / 417.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01004/0.359, allocations: 5.834 MB / 423.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02988/0.389, allocations: 25.72 MB / 449.1 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005679/0.3947, allocations: 2.549 MB / 451.6 MB, free: 1.293 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001518/0.3962, allocations: 1.217 MB / 452.9 MB, free: 68 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008296/0.4045, allocations: 4.816 MB / 457.7 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/0.4046, allocations: 46.56 kB / 457.7 MB, free: 11.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.167e-06/0.4046, allocations: 0 / 457.7 MB, free: 11.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02426/0.4289, allocations: 9.996 MB / 467.7 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.17e-05/0.429, allocations: 141.2 kB / 467.9 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003551/0.4326, allocations: 2.74 MB / 470.6 MB, free: 14.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.4327, allocations: 41.7 kB / 470.6 MB, free: 13.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.4339, allocations: 2.147 MB / 472.8 MB, free: 11.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000374/0.4343, allocations: 440.7 kB / 473.2 MB, free: 11.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009701/0.4353, allocations: 0.8415 MB / 474.1 MB, free: 10.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.135e-05/0.4354, allocations: 301.1 kB / 474.4 MB, free: 10.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.4374, allocations: 1.445 MB / 475.8 MB, free: 8.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003433/0.4408, allocations: 4.061 MB / 479.9 MB, free: 3.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00598/0.4468, allocations: 5.946 MB / 485.8 MB, free: 12.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.463e-05/0.4469, allocations: 28 kB / 485.8 MB, free: 12.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009838/0.4567, allocations: 6.015 MB / 491.8 MB, free: 6.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.096e-05/0.4568, allocations: 51.94 kB / 491.9 MB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.729e-05/0.4569, allocations: 92 kB / 492 MB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002263/0.4592, allocations: 0.8203 MB / 492.8 MB, free: 5.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/0.4618, allocations: 0.9396 MB / 493.7 MB, free: 4.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005739/0.4676, allocations: 4.664 MB / 498.4 MB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/0.4707, allocations: 239.7 kB / 498.6 MB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004714/0.4711, allocations: 260 kB / 498.9 MB, free: 14.91 MB / 430.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.002169/0.4733, allocations: 1.372 MB / 0.4885 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004095/0.4737, allocations: 238.4 kB / 0.4888 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/0.4779, allocations: 2.138 MB / 0.4909 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/0.478, allocations: 15.94 kB / 0.4909 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.478, allocations: 8 kB / 0.4909 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.507e-06/0.478, allocations: 7.922 kB / 0.4909 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009754/0.4878, allocations: 5.07 MB / 0.4958 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.4878, allocations: 4 kB / 0.4958 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007812/0.4886, allocations: 159.7 kB / 0.496 GB, free: 5.801 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/0.4907, allocations: 0.6796 MB / 0.4967 GB, free: 5.117 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.4908, allocations: 16 kB / 0.4967 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005314/0.4961, allocations: 4.149 MB / 0.5007 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/0.4962, allocations: 7.922 kB / 0.5007 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006699/0.5029, allocations: 4.068 MB / 0.5047 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/0.5044, allocations: 467.2 kB / 0.5052 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006917/0.5051, allocations: 16 kB / 0.5052 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.5065, allocations: 71.8 kB / 0.5052 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.5068, allocations: 64.23 kB / 0.5053 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.5069, allocations: 36.05 kB / 0.5053 GB, free: 12.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003642/0.5105, allocations: 1.706 MB / 0.507 GB, free: 10.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5105, allocations: 0 / 0.507 GB, free: 10.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004402/0.5149, allocations: 0.6716 MB / 0.5077 GB, free: 9.664 MB / 446.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.007889/0.5228, allocations: 4.749 MB / 0.5123 GB, free: 4.867 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006076/0.5289, allocations: 3.48 MB / 0.5157 GB, free: 1.395 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.529, allocations: 0 / 0.5157 GB, free: 1.395 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.5305, allocations: 1.053 MB / 0.5167 GB, free: 340 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/0.5329, allocations: 258.3 kB / 0.517 GB, free: 80 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2189/0.7518, allocations: 30.01 MB / 0.5463 GB, free: 154.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002213/0.7541, allocations: 2.242 MB / 0.5485 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002912/0.757, allocations: 1.312 MB / 0.5497 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/0.7583, allocations: 1.1 MB / 0.5508 GB, free: 153.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.843e-06/0.7583, allocations: 3.062 kB / 0.5508 GB, free: 153.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07583/0.8341, allocations: 44.83 MB / 0.5946 GB, free: 125.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.39/18.23, allocations: 11.81 kB / 0.5946 GB, free: 125.5 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches