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.001335/0.001335, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001309/0.001309, allocations: 191 kB / 18.67 MB, free: 4.414 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.294/1.294, 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.001079/0.001079, allocations: 55.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08588/0.08697, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2036/0.2906, allocations: 7.672 MB / 382.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005793/0.2964, allocations: 3.296 MB / 385.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008529/0.2973, allocations: 38.94 kB / 385.7 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00195/0.2993, allocations: 1.022 MB / 386.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002922/0.3022, allocations: 1.347 MB / 388 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.3035, allocations: 0.541 MB / 388.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003533/0.3071, allocations: 2.603 MB / 391.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/0.309, allocations: 1.391 MB / 392.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001679/0.3107, allocations: 0.8414 MB / 393.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001891/0.3126, allocations: 1.151 MB / 394.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003882/0.313, allocations: 147.1 kB / 394.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00203/0.315, allocations: 0.9018 MB / 395.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009681/0.316, allocations: 1.07 MB / 396.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001057/0.317, allocations: 1.252 MB / 397.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004008/0.3211, allocations: 4.132 MB / 402.1 MB, free: 296 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3211, allocations: 0 / 402.1 MB, free: 296 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3211, allocations: 4 kB / 402.1 MB, free: 292 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.002e-05/0.3212, allocations: 1.062 kB / 402.1 MB, free: 292 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.005483/0.3266, allocations: 3.029 MB / 405.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3267, allocations: 9.562 kB / 405.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005739/0.3273, allocations: 461.7 kB / 405.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005297/0.3326, allocations: 1.581 MB / 407.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003377/0.336, allocations: 1.861 MB / 409 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.3361, allocations: 128.6 kB / 409.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003216/0.3364, allocations: 161.8 kB / 409.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009865/0.3463, allocations: 6.535 MB / 415.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.529e-05/0.3464, allocations: 31.66 kB / 415.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000297/0.3467, allocations: 79.89 kB / 415.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002343/0.3491, allocations: 1.472 MB / 417.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01006/0.3591, allocations: 5.831 MB / 423.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0296/0.3888, allocations: 25.68 MB / 448.9 MB, free: 4.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005566/0.3944, allocations: 2.549 MB / 451.5 MB, free: 1.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001523/0.3959, allocations: 1.211 MB / 452.7 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007552/0.4035, allocations: 4.807 MB / 457.5 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.4035, allocations: 38.56 kB / 457.5 MB, free: 11.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.587e-06/0.4035, allocations: 3.938 kB / 457.5 MB, free: 11.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02344/0.427, allocations: 9.866 MB / 467.4 MB, free: 1.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.4271, allocations: 145 kB / 467.5 MB, free: 1.109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003638/0.4308, allocations: 2.727 MB / 470.2 MB, free: 14.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001768/0.4309, allocations: 41.7 kB / 470.3 MB, free: 14.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.4322, allocations: 2.056 MB / 472.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004445/0.4327, allocations: 426.7 kB / 472.8 MB, free: 11.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000998/0.4337, allocations: 0.8369 MB / 473.6 MB, free: 10.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.734e-05/0.4338, allocations: 305.1 kB / 473.9 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/0.4357, allocations: 1.437 MB / 475.3 MB, free: 9.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003744/0.4395, allocations: 4.065 MB / 479.4 MB, free: 3.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006314/0.4458, allocations: 5.946 MB / 485.3 MB, free: 12.58 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-05/0.4459, allocations: 28 kB / 485.4 MB, free: 12.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009934/0.4559, allocations: 6.002 MB / 491.4 MB, free: 6.543 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.356e-05/0.456, allocations: 51.94 kB / 491.4 MB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.251e-05/0.456, allocations: 92 kB / 491.5 MB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.4583, allocations: 0.8206 MB / 492.3 MB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002601/0.4609, allocations: 0.9396 MB / 493.3 MB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005468/0.4664, allocations: 4.66 MB / 497.9 MB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002965/0.4694, allocations: 243.6 kB / 498.2 MB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000441/0.4698, allocations: 260 kB / 498.4 MB, free: 15.34 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.002224/0.4721, allocations: 1.372 MB / 499.8 MB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004/0.4725, allocations: 229.1 kB / 0.4883 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003979/0.4764, allocations: 2.134 MB / 0.4904 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.4765, allocations: 16 kB / 0.4904 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.4765, allocations: 4 kB / 0.4904 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/0.4765, allocations: 7.922 kB / 0.4904 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008763/0.4853, allocations: 5.066 MB / 0.4954 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.4853, allocations: 4 kB / 0.4954 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007345/0.4861, allocations: 160.3 kB / 0.4955 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/0.4881, allocations: 0.6795 MB / 0.4962 GB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.369e-05/0.4882, allocations: 27.97 kB / 0.4962 GB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004897/0.4931, allocations: 4.14 MB / 0.5002 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.4931, allocations: 3.938 kB / 0.5003 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006041/0.4991, allocations: 4.055 MB / 0.5042 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009583/0.5001, allocations: 453.8 kB / 0.5046 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.5004, allocations: 16 kB / 0.5047 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008761/0.5013, allocations: 67.89 kB / 0.5047 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.5014, allocations: 72.28 kB / 0.5048 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/0.5015, allocations: 28 kB / 0.5048 GB, free: 12.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002404/0.5039, allocations: 1.706 MB / 0.5065 GB, free: 10.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.504, allocations: 3.938 kB / 0.5065 GB, free: 10.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002953/0.5069, allocations: 0.6757 MB / 0.5072 GB, free: 10.13 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.006318/0.5132, allocations: 4.728 MB / 0.5118 GB, free: 5.352 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00515/0.5184, allocations: 3.485 MB / 0.5152 GB, free: 1.875 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5184, allocations: 0 / 0.5152 GB, free: 1.875 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.5197, allocations: 1.04 MB / 0.5162 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/0.5214, allocations: 264.6 kB / 0.5164 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2187/0.7401, allocations: 29.9 MB / 0.5456 GB, free: 157.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002493/0.7427, allocations: 2.241 MB / 0.5478 GB, free: 156.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003233/0.7459, allocations: 1.313 MB / 0.5491 GB, free: 156.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.7473, allocations: 1.099 MB / 0.5502 GB, free: 156.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7473, allocations: 1.094 kB / 0.5502 GB, free: 156.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0938/0.8411, allocations: 45.58 MB / 0.5947 GB, free: 126.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.32/17.16, allocations: 11.81 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