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.001381/0.00138, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.001403/0.001403, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.493/1.493, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001358/0.001359, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09888, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2267/0.3256, allocations: 7.676 MB / 382.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006521/0.3322, allocations: 3.302 MB / 385.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001156/0.3334, allocations: 35.38 kB / 385.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002344/0.3358, allocations: 1.026 MB / 386.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004278/0.3401, allocations: 1.347 MB / 388 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.3417, allocations: 0.5381 MB / 388.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004946/0.3466, allocations: 2.6 MB / 391.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002087/0.3487, allocations: 1.39 MB / 392.6 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.3504, allocations: 0.8377 MB / 393.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001731/0.3521, allocations: 1.155 MB / 394.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004136/0.3525, allocations: 147.2 kB / 394.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002423/0.355, allocations: 0.8969 MB / 395.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.3564, allocations: 1.074 MB / 396.7 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001678/0.3581, allocations: 1.261 MB / 397.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005562/0.3637, allocations: 4.129 MB / 402.1 MB, free: 308 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.3637, allocations: 1.188 kB / 402.1 MB, free: 308 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3637, allocations: 0 / 402.1 MB, free: 308 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.536e-05/0.3638, allocations: 0 / 402.1 MB, free: 308 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.00721/0.371, allocations: 3.03 MB / 405.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3711, allocations: 9.406 kB / 405.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007515/0.3718, allocations: 460.6 kB / 405.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006065/0.3779, allocations: 1.586 MB / 407.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004401/0.3823, allocations: 1.855 MB / 409 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.3825, allocations: 130.7 kB / 409.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003832/0.3829, allocations: 165.9 kB / 409.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.394, allocations: 6.535 MB / 415.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.097e-05/0.3941, allocations: 31.66 kB / 415.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002627/0.3944, allocations: 79.89 kB / 415.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002576/0.397, allocations: 1.468 MB / 417.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/0.4078, allocations: 5.834 MB / 423.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03323/0.4411, allocations: 25.68 MB / 448.9 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005862/0.447, allocations: 2.537 MB / 451.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/0.4489, allocations: 1.219 MB / 452.7 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009065/0.458, allocations: 4.803 MB / 457.5 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.377e-05/0.4581, allocations: 50.5 kB / 457.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.118e-06/0.4581, allocations: 0 / 457.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02427/0.4824, allocations: 9.848 MB / 467.4 MB, free: 1.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/0.4825, allocations: 141.2 kB / 467.5 MB, free: 1.148 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00386/0.4864, allocations: 2.735 MB / 470.2 MB, free: 14.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002273/0.4866, allocations: 37.7 kB / 470.3 MB, free: 14.35 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.488, allocations: 2.064 MB / 472.3 MB, free: 12.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005585/0.4886, allocations: 434.7 kB / 472.8 MB, free: 11.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001164/0.4897, allocations: 0.8252 MB / 473.6 MB, free: 10.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.62e-05/0.4898, allocations: 301.1 kB / 473.9 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/0.492, allocations: 1.441 MB / 475.3 MB, free: 9.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003724/0.4957, allocations: 4.069 MB / 479.4 MB, free: 3.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006719/0.5025, allocations: 5.95 MB / 485.3 MB, free: 12.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.236e-05/0.5026, allocations: 28 kB / 485.4 MB, free: 12.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.0123/0.5149, allocations: 6.006 MB / 491.4 MB, free: 6.559 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.281e-05/0.515, allocations: 47.94 kB / 491.4 MB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/0.5152, allocations: 92 kB / 491.5 MB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002482/0.5177, allocations: 0.8124 MB / 492.3 MB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003239/0.5209, allocations: 0.9474 MB / 493.3 MB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006508/0.5274, allocations: 4.668 MB / 497.9 MB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003741/0.5312, allocations: 243.6 kB / 498.2 MB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008795/0.5321, allocations: 256 kB / 498.4 MB, free: 15.36 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.003352/0.5355, allocations: 1.376 MB / 499.8 MB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007273/0.5362, allocations: 221.1 kB / 0.4883 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005097/0.5413, allocations: 2.13 MB / 0.4904 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.532e-05/0.5414, allocations: 15.98 kB / 0.4904 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.5414, allocations: 4 kB / 0.4904 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.5414, allocations: 7.984 kB / 0.4904 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/0.5542, allocations: 5.074 MB / 0.4954 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/0.5543, allocations: 4 kB / 0.4954 GB, free: 6.426 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009158/0.5552, allocations: 155.8 kB / 0.4955 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002305/0.5575, allocations: 0.6756 MB / 0.4962 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002001/0.5577, allocations: 20.03 kB / 0.4962 GB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005675/0.5634, allocations: 4.156 MB / 0.5003 GB, free: 1.277 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.758e-06/0.5635, allocations: 0 / 0.5003 GB, free: 1.277 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007003/0.5705, allocations: 4.059 MB / 0.5042 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001543/0.5721, allocations: 457.9 kB / 0.5047 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006575/0.5727, allocations: 12 kB / 0.5047 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/0.5742, allocations: 71.89 kB / 0.5047 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002337/0.5744, allocations: 64.23 kB / 0.5048 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.5745, allocations: 28 kB / 0.5048 GB, free: 12.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003793/0.5783, allocations: 1.71 MB / 0.5065 GB, free: 10.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5784, allocations: 3.938 kB / 0.5065 GB, free: 10.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004579/0.5829, allocations: 0.6679 MB / 0.5071 GB, free: 10.16 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.007554/0.5905, allocations: 4.736 MB / 0.5118 GB, free: 5.371 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006041/0.5966, allocations: 3.481 MB / 0.5152 GB, free: 1.898 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.5966, allocations: 4 kB / 0.5152 GB, free: 1.895 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.5981, allocations: 1.037 MB / 0.5162 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/0.6007, allocations: 261 kB / 0.5164 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.258/0.8587, allocations: 29.9 MB / 0.5456 GB, free: 157.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002867/0.8617, allocations: 2.238 MB / 0.5478 GB, free: 156.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003383/0.8651, allocations: 1.319 MB / 0.5491 GB, free: 156.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001309/0.8664, allocations: 1.101 MB / 0.5502 GB, free: 156.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8664, allocations: 0 / 0.5502 GB, free: 156.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07781/0.9442, allocations: 45.57 MB / 0.5947 GB, free: 126.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.95/17.89, allocations: 11.88 kB / 0.5947 GB, free: 126.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 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.mat","/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