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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 112 kB / 20.43 MB, free: 1.305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 182 kB / 23.72 MB, free: 4.555 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 51.91 kB / 370.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2522, allocations: 52.19 MB / 422.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009877/0.262, allocations: 7.684 MB / 430.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006497/0.2685, allocations: 3.372 MB / 433.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008807/0.2694, allocations: 43.81 kB / 433.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002072/0.2715, allocations: 1.047 MB / 434.8 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003203/0.2747, allocations: 1.38 MB / 436.2 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.2759, allocations: 0.5456 MB / 436.7 MB, free: 440 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003859/0.2797, allocations: 2.598 MB / 439.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001512/0.2812, allocations: 1.224 MB / 440.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001098/0.2823, allocations: 0.8524 MB / 441.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001658/0.284, allocations: 1.265 MB / 442.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002855/0.2843, allocations: 148 kB / 442.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001825/0.2861, allocations: 0.9437 MB / 443.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.2872, allocations: 1.09 MB / 444.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.2883, allocations: 1.25 MB / 446.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004611/0.2929, allocations: 4.144 MB / 450.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2929, allocations: 4 kB / 450.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2929, allocations: 0 / 450.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.394e-05/0.293, allocations: 0 / 450.2 MB, free: 2.844 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.005058/0.2981, allocations: 3.017 MB / 453.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2981, allocations: 12.03 kB / 453.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005126/0.2986, allocations: 458.4 kB / 453.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005203/0.3038, allocations: 1.594 MB / 455.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003411/0.3072, allocations: 1.669 MB / 457 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.3073, allocations: 123 kB / 457.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003077/0.3076, allocations: 163.9 kB / 457.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009671/0.3173, allocations: 6.534 MB / 463.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.93e-05/0.3174, allocations: 31.77 kB / 463.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002238/0.3176, allocations: 83.89 kB / 463.9 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002573/0.3202, allocations: 1.468 MB / 465.4 MB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009952/0.3301, allocations: 5.834 MB / 471.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03155/0.3617, allocations: 25.62 MB / 496.8 MB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005454/0.3671, allocations: 2.004 MB / 498.8 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001652/0.3688, allocations: 1.136 MB / 500 MB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008059/0.3768, allocations: 4.548 MB / 0.4927 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.3769, allocations: 46.55 kB / 0.4927 GB, free: 11.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.156e-06/0.3769, allocations: 0 / 0.4927 GB, free: 11.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02474/0.4016, allocations: 9.709 MB / 0.5022 GB, free: 1.289 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.4017, allocations: 137 kB / 0.5023 GB, free: 1.125 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00445/0.4062, allocations: 2.727 MB / 0.505 GB, free: 14.38 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/0.4063, allocations: 37.64 kB / 0.505 GB, free: 14.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001723/0.408, allocations: 2.136 MB / 0.5071 GB, free: 12.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005361/0.4085, allocations: 448.7 kB / 0.5076 GB, free: 11.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/0.4098, allocations: 0.8416 MB / 0.5084 GB, free: 10.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.41, allocations: 301.1 kB / 0.5087 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002428/0.4124, allocations: 1.437 MB / 0.5101 GB, free: 9.148 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00476/0.4172, allocations: 4.061 MB / 0.514 GB, free: 3.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00778/0.4249, allocations: 5.946 MB / 0.5198 GB, free: 12.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/0.425, allocations: 28 kB / 0.5199 GB, free: 12.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01175/0.4368, allocations: 6.014 MB / 0.5257 GB, free: 6.469 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.4369, allocations: 44 kB / 0.5258 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/0.4371, allocations: 92.19 kB / 0.5259 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/0.4394, allocations: 0.8206 MB / 0.5267 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002953/0.4424, allocations: 0.9473 MB / 0.5276 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006696/0.4491, allocations: 4.556 MB / 0.532 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002867/0.4519, allocations: 243.7 kB / 0.5323 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005651/0.4525, allocations: 260 kB / 0.5325 GB, free: 15.41 MB / 462.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.002465/0.455, allocations: 1.372 MB / 0.5339 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005101/0.4555, allocations: 238.3 kB / 0.5341 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004802/0.4603, allocations: 2.13 MB / 0.5362 GB, free: 11.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-05/0.4603, allocations: 15.98 kB / 0.5362 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/0.4603, allocations: 8 kB / 0.5362 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.4604, allocations: 3.984 kB / 0.5362 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/0.4712, allocations: 5.026 MB / 0.5411 GB, free: 6.527 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.4712, allocations: 4 kB / 0.5411 GB, free: 6.523 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/0.472, allocations: 155.8 kB / 0.5413 GB, free: 6.371 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00214/0.4742, allocations: 0.6795 MB / 0.5419 GB, free: 5.688 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.4743, allocations: 23.98 kB / 0.5419 GB, free: 5.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005905/0.4802, allocations: 4.046 MB / 0.5459 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4802, allocations: 0 / 0.5459 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2199/0.7001, allocations: 4.064 MB / 0.5499 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006462/0.7007, allocations: 217.8 kB / 0.5501 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002837/0.701, allocations: 18.16 kB / 0.5501 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009297/0.702, allocations: 74.72 kB / 0.5502 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.7021, allocations: 56.23 kB / 0.5502 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.593e-05/0.7022, allocations: 34.72 kB / 0.5502 GB, free: 121.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002167/0.7044, allocations: 1.696 MB / 0.5519 GB, free: 121 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7044, allocations: 3.719 kB / 0.5519 GB, free: 121 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002876/0.7073, allocations: 0.673 MB / 0.5526 GB, free: 120.9 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.005543/0.7128, allocations: 4.743 MB / 0.5572 GB, free: 119 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004449/0.7173, allocations: 3.338 MB / 0.5605 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.7173, allocations: 0 / 0.5605 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.7184, allocations: 0.9675 MB / 0.5614 GB, free: 117.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.7199, allocations: 259.7 kB / 0.5616 GB, free: 117.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03139/0.7513, allocations: 29.97 MB / 0.5909 GB, free: 86.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/0.7529, allocations: 2.236 MB / 0.5931 GB, free: 83.99 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002235/0.7551, allocations: 1.32 MB / 0.5944 GB, free: 82.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.7561, allocations: 1.101 MB / 0.5955 GB, free: 81.57 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/0.7561, allocations: 0 / 0.5955 GB, free: 81.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0785/0.8346, allocations: 48.35 MB / 0.6427 GB, free: 33.51 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.57/19.4, allocations: 3.938 kB / 0.6427 GB, free: 33.5 MB / 462.1 MB " [Timeout remaining time 640] (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 --stepSize=0.0019992 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.947112133027986]