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.001709/0.001708, allocations: 113.7 kB / 17.07 MB, free: 5.965 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.002182/0.002183, allocations: 193.3 kB / 18.01 MB, free: 5.051 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.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 47.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.259, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009389/0.2685, allocations: 7.618 MB / 407.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006112/0.2746, allocations: 3.341 MB / 411.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006803/0.2753, allocations: 39.88 kB / 411.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002063/0.2774, allocations: 1.02 MB / 412.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003052/0.2805, allocations: 1.35 MB / 413.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.2817, allocations: 0.5418 MB / 414.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003318/0.285, allocations: 2.592 MB / 416.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001726/0.2868, allocations: 1.385 MB / 418.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.288, allocations: 0.829 MB / 419 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.2895, allocations: 1.148 MB / 420.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002956/0.2898, allocations: 152 kB / 420.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.2915, allocations: 0.9086 MB / 421.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009858/0.2925, allocations: 1.048 MB / 422.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.2938, allocations: 1.262 MB / 423.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004612/0.2984, allocations: 4.15 MB / 427.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2984, allocations: 3.984 kB / 427.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2984, allocations: 0 / 427.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.348e-05/0.2985, allocations: 0 / 427.6 MB, free: 13.26 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.005297/0.3038, allocations: 3.08 MB / 430.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.3038, allocations: 12.03 kB / 430.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005511/0.3044, allocations: 462.3 kB / 431.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005419/0.3098, allocations: 1.598 MB / 432.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003039/0.3129, allocations: 1.727 MB / 434.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.313, allocations: 123 kB / 434.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003448/0.3134, allocations: 163.9 kB / 434.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.3239, allocations: 6.534 MB / 441.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-05/0.324, allocations: 39.7 kB / 441.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002769/0.3243, allocations: 79.89 kB / 441.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002643/0.3269, allocations: 1.476 MB / 442.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.3388, allocations: 5.822 MB / 448.7 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0328/0.3717, allocations: 25.7 MB / 474.4 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0059/0.3776, allocations: 2.541 MB / 477 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/0.3794, allocations: 1.218 MB / 478.2 MB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007663/0.3871, allocations: 4.819 MB / 483 MB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.3871, allocations: 50.48 kB / 483.1 MB, free: 4.203 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.456e-06/0.3872, allocations: 0 / 483.1 MB, free: 4.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02345/0.4106, allocations: 9.923 MB / 493 MB, free: 10.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.149e-05/0.4107, allocations: 141.2 kB / 493.1 MB, free: 9.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00373/0.4145, allocations: 2.727 MB / 495.8 MB, free: 7.234 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.4146, allocations: 37.7 kB / 495.9 MB, free: 7.191 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001607/0.4162, allocations: 2.144 MB / 498 MB, free: 5.027 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004498/0.4167, allocations: 440.7 kB / 498.5 MB, free: 4.594 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/0.4178, allocations: 0.8337 MB / 499.3 MB, free: 3.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.418, allocations: 313.1 kB / 499.6 MB, free: 3.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002164/0.4201, allocations: 1.437 MB / 0.4893 GB, free: 2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00433/0.4245, allocations: 4.057 MB / 0.4933 GB, free: 12.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007284/0.4318, allocations: 5.939 MB / 0.4991 GB, free: 5.379 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-05/0.4318, allocations: 28 kB / 0.4991 GB, free: 5.352 MB / 430.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01061/0.4424, allocations: 6.027 MB / 0.505 GB, free: 15.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.398e-05/0.4425, allocations: 44 kB / 0.505 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.34e-05/0.4426, allocations: 92 kB / 0.5051 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/0.445, allocations: 0.8248 MB / 0.5059 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/0.4476, allocations: 0.9435 MB / 0.5068 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006162/0.4538, allocations: 4.662 MB / 0.5114 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002816/0.4566, allocations: 247.7 kB / 0.5116 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004239/0.4571, allocations: 260 kB / 0.5119 GB, free: 8.113 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.002131/0.4592, allocations: 1.368 MB / 0.5132 GB, free: 6.734 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004296/0.4596, allocations: 238.3 kB / 0.5134 GB, free: 6.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004498/0.4641, allocations: 2.134 MB / 0.5155 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-05/0.4642, allocations: 16 kB / 0.5155 GB, free: 4.332 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/0.4642, allocations: 4 kB / 0.5155 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.4642, allocations: 3.984 kB / 0.5155 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009292/0.4735, allocations: 5.07 MB / 0.5205 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.4736, allocations: 0 / 0.5205 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007613/0.4743, allocations: 159.8 kB / 0.5206 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002119/0.4765, allocations: 0.6796 MB / 0.5213 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.391e-05/0.4766, allocations: 19.94 kB / 0.5213 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00556/0.4821, allocations: 4.152 MB / 0.5254 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4822, allocations: 0 / 0.5254 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00667/0.4888, allocations: 4.076 MB / 0.5294 GB, free: 5.922 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/0.4895, allocations: 299.4 kB / 0.5296 GB, free: 5.609 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002481/0.4898, allocations: 12 kB / 0.5296 GB, free: 5.598 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009026/0.4907, allocations: 79.89 kB / 0.5297 GB, free: 5.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.4909, allocations: 52.36 kB / 0.5298 GB, free: 5.469 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.966e-05/0.491, allocations: 32 kB / 0.5298 GB, free: 5.438 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002533/0.4935, allocations: 1.694 MB / 0.5315 GB, free: 3.734 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4936, allocations: 4 kB / 0.5315 GB, free: 3.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002968/0.4965, allocations: 0.6677 MB / 0.5321 GB, free: 3.062 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.2024/0.6989, allocations: 4.749 MB / 0.5368 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005143/0.7041, allocations: 3.48 MB / 0.5402 GB, free: 130.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.7041, allocations: 0 / 0.5402 GB, free: 130.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.7052, allocations: 1.044 MB / 0.5412 GB, free: 129.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.7067, allocations: 259.4 kB / 0.5414 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02987/0.7366, allocations: 29.93 MB / 0.5707 GB, free: 102.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001555/0.7382, allocations: 2.235 MB / 0.5728 GB, free: 100.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002248/0.7405, allocations: 1.315 MB / 0.5741 GB, free: 99.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/0.7415, allocations: 1.101 MB / 0.5752 GB, free: 98.22 MB / 462.1 MB Notification: Performance of SimCode: time 1.153e-06/0.7415, allocations: 4 kB / 0.5752 GB, free: 98.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0749/0.8164, allocations: 44.71 MB / 0.6189 GB, free: 53.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.47/18.28, allocations: 15.3 kB / 0.6189 GB, free: 53.83 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