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.0009311/0.0009311, allocations: 88.05 kB / 20.67 MB, free: 3.871 MB / 18.57 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.0008748/0.0008748, allocations: 145.1 kB / 23.93 MB, free: 0.6172 MB / 18.57 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 0.867/0.867, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 1.223e-06/1.223e-06, allocations: 0 / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.077e-06/1.03e-05, allocations: 2.281 kB / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.005222/0.005233, allocations: 6.787 MB / 325.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003406/0.008638, allocations: 3.134 MB / 328.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002987/0.008937, allocations: 43.81 kB / 328.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.01008, allocations: 1.066 MB / 329.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.01151, allocations: 1.426 MB / 330.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.01206, allocations: 0.5922 MB / 331.5 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001603/0.01367, allocations: 2.905 MB / 334.4 MB, free: 6.223 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.01482, allocations: 1.478 MB / 335.9 MB, free: 4.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008807/0.0157, allocations: 1.286 MB / 337.2 MB, free: 3.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009123/0.01661, allocations: 1.337 MB / 338.5 MB, free: 2.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.01675, allocations: 148 kB / 338.6 MB, free: 1.945 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007408/0.01749, allocations: 0.8344 MB / 339.5 MB, free: 1.109 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005626/0.01806, allocations: 1.145 MB / 340.6 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004267/0.01848, allocations: 0.6929 MB / 341.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002554/0.02104, allocations: 4.142 MB / 345.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.02104, allocations: 0 / 345.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.02104, allocations: 0 / 345.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.02106, allocations: 0 / 345.5 MB, free: 11.11 MB / 314.7 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.002871/0.02393, allocations: 3.048 MB / 348.5 MB, free: 8.012 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.02397, allocations: 8.922 kB / 348.5 MB, free: 8.004 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003182/0.02429, allocations: 454.4 kB / 349 MB, free: 7.551 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002964/0.02725, allocations: 1.664 MB / 350.6 MB, free: 5.883 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.02863, allocations: 1.4 MB / 352 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.732e-05/0.0287, allocations: 123.1 kB / 352.1 MB, free: 4.328 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002117/0.02891, allocations: 167.8 kB / 352.3 MB, free: 4.164 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005891/0.0348, allocations: 6.538 MB / 358.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.633e-05/0.03485, allocations: 31.75 kB / 358.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.03501, allocations: 79.89 kB / 358.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001367/0.03638, allocations: 1.468 MB / 360.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006718/0.04309, allocations: 5.837 MB / 366.3 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01678/0.05987, allocations: 24.89 MB / 391.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003192/0.06307, allocations: 2.079 MB / 393.2 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009269/0.06399, allocations: 1.129 MB / 394.4 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004358/0.06835, allocations: 4.395 MB / 398.7 MB, free: 4.371 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.06838, allocations: 46.5 kB / 398.8 MB, free: 4.316 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 2.795e-06/0.06838, allocations: 0 / 398.8 MB, free: 4.316 MB / 362.7 MB Notification: Performance of matching and sorting (n=105): time 0.01419/0.08257, allocations: 10.03 MB / 408.8 MB, free: 10.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.08262, allocations: 145 kB / 409 MB, free: 10.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002455/0.08508, allocations: 3.03 MB / 412 MB, free: 7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.08514, allocations: 45.7 kB / 412 MB, free: 6.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.08626, allocations: 2.112 MB / 414.2 MB, free: 4.816 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.08651, allocations: 440.7 kB / 414.6 MB, free: 4.383 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006547/0.08716, allocations: 0.8298 MB / 415.4 MB, free: 3.543 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.41e-05/0.08723, allocations: 301.1 kB / 415.7 MB, free: 3.246 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.08858, allocations: 1.448 MB / 417.2 MB, free: 1.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002897/0.09148, allocations: 4.069 MB / 421.2 MB, free: 12.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004586/0.09606, allocations: 5.961 MB / 427.2 MB, free: 5.137 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.743e-05/0.09609, allocations: 32 kB / 427.2 MB, free: 5.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.006268/0.1024, allocations: 6.022 MB / 433.2 MB, free: 15.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.1024, allocations: 48.94 kB / 433.3 MB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-05/0.1024, allocations: 92 kB / 433.4 MB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.1037, allocations: 0.8277 MB / 434.2 MB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.1051, allocations: 0.9474 MB / 435.1 MB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003793/0.1089, allocations: 4.538 MB / 439.7 MB, free: 8.512 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.1105, allocations: 299.5 kB / 440 MB, free: 8.219 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/0.1107, allocations: 260 kB / 440.2 MB, free: 7.965 MB / 410.7 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.001567/0.1123, allocations: 1.372 MB / 441.6 MB, free: 6.582 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.1125, allocations: 238.4 kB / 441.8 MB, free: 6.348 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002452/0.115, allocations: 2.116 MB / 444 MB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.115, allocations: 19.92 kB / 444 MB, free: 4.195 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.115, allocations: 4 kB / 444 MB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.115, allocations: 3.984 kB / 444 MB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1591/0.2741, allocations: 4.849 MB / 448.8 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.2741, allocations: 2.203 kB / 448.8 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005999/0.2747, allocations: 160.5 kB / 449 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.2759, allocations: 0.6787 MB / 449.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.05e-05/0.276, allocations: 23.44 kB / 449.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002828/0.2788, allocations: 4.036 MB / 453.7 MB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2788, allocations: 14.58 kB / 453.7 MB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003333/0.2822, allocations: 4.062 MB / 457.8 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.2825, allocations: 244.2 kB / 458 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.2826, allocations: 21.08 kB / 458.1 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005546/0.2831, allocations: 111 kB / 458.2 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.886e-05/0.2832, allocations: 69.88 kB / 458.2 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-05/0.2833, allocations: 29.38 kB / 458.3 MB, free: 115.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001557/0.2849, allocations: 1.825 MB / 460.1 MB, free: 114.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2849, allocations: 0 / 460.1 MB, free: 114.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001757/0.2866, allocations: 0.7566 MB / 460.8 MB, free: 114.5 MB / 410.7 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.003334/0.2899, allocations: 4.767 MB / 465.6 MB, free: 110.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002414/0.2924, allocations: 3.352 MB / 469 MB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2924, allocations: 0 / 469 MB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006181/0.293, allocations: 0.9559 MB / 469.9 MB, free: 106.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008619/0.2938, allocations: 260 kB / 470.2 MB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01984/0.3137, allocations: 30.34 MB / 0.4888 GB, free: 72.87 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.3147, allocations: 1.665 MB / 0.4904 GB, free: 71.18 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001438/0.3162, allocations: 1.33 MB / 0.4917 GB, free: 69.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006953/0.3169, allocations: 1.106 MB / 0.4928 GB, free: 68.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.283e-06/0.3169, allocations: 0 / 0.4928 GB, free: 68.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04484/0.3617, allocations: 46.83 MB / 0.5385 GB, free: 22.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.682/9.043, allocations: 3.984 kB / 0.5385 GB, free: 22.36 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/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: 10.833765515126288]