Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00212/0.00212, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00249/0.00249, allocations: 203.8 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.595/1.595, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 67.91 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.358, allocations: 53.41 MB / 431.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01222/0.3702, allocations: 6.751 MB / 437.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009163/0.3794, allocations: 3.15 MB / 441.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001937/0.3813, allocations: 43.81 kB / 441.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003226/0.3846, allocations: 1.016 MB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.3895, allocations: 1.35 MB / 443.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002128/0.3916, allocations: 0.5418 MB / 444 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005038/0.3966, allocations: 2.614 MB / 446.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002941/0.3996, allocations: 1.219 MB / 447.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002568/0.4021, allocations: 0.8446 MB / 448.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003014/0.4052, allocations: 1.211 MB / 449.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007412/0.4059, allocations: 148 kB / 450 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002518/0.4084, allocations: 0.7877 MB / 450.8 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001939/0.4103, allocations: 1.071 MB / 451.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002609/0.413, allocations: 0.8962 MB / 452.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007926/0.4209, allocations: 4.116 MB / 456.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4209, allocations: 4 kB / 456.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4209, allocations: 0 / 456.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001959/0.4211, allocations: 0 / 456.9 MB, free: 12.56 MB / 366.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.009576/0.4307, allocations: 2.99 MB / 459.9 MB, free: 9.523 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.4307, allocations: 15.98 kB / 459.9 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009873/0.4317, allocations: 458.4 kB / 460.4 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005691/0.4374, allocations: 1.606 MB / 462 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004562/0.442, allocations: 1.555 MB / 463.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.4421, allocations: 127 kB / 463.7 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003814/0.4425, allocations: 159.8 kB / 463.8 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.4568, allocations: 6.534 MB / 470.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.4569, allocations: 35.73 kB / 470.4 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/0.4572, allocations: 83.89 kB / 470.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003424/0.4606, allocations: 1.464 MB / 471.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.4737, allocations: 5.822 MB / 477.7 MB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04032/0.514, allocations: 24.73 MB / 0.4907 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006201/0.5202, allocations: 2.012 MB / 0.4927 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002038/0.5223, allocations: 1.133 MB / 0.4938 GB, free: 10.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01077/0.533, allocations: 4.299 MB / 0.498 GB, free: 6.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/0.5331, allocations: 38.56 kB / 0.498 GB, free: 6.078 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.989e-06/0.5331, allocations: 0 / 0.498 GB, free: 6.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02689/0.56, allocations: 9.741 MB / 0.5075 GB, free: 12.26 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.5601, allocations: 141.2 kB / 0.5076 GB, free: 12.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004914/0.565, allocations: 2.865 MB / 0.5104 GB, free: 9.207 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002661/0.5653, allocations: 49.64 kB / 0.5105 GB, free: 9.152 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002048/0.5673, allocations: 2.14 MB / 0.5126 GB, free: 6.992 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007947/0.5681, allocations: 440.7 kB / 0.513 GB, free: 6.559 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001348/0.5695, allocations: 0.8415 MB / 0.5138 GB, free: 5.707 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.5697, allocations: 301.1 kB / 0.5141 GB, free: 5.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0028/0.5725, allocations: 1.437 MB / 0.5155 GB, free: 3.969 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00584/0.5783, allocations: 4.061 MB / 0.5195 GB, free: 14.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/0.5886, allocations: 5.948 MB / 0.5253 GB, free: 7.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/0.5888, allocations: 24 kB / 0.5253 GB, free: 7.316 MB / 446.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01569/0.6044, allocations: 6.011 MB / 0.5312 GB, free: 1.293 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.26e-05/0.6045, allocations: 44 kB / 0.5312 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001368/0.6047, allocations: 96 kB / 0.5313 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002672/0.6073, allocations: 0.8236 MB / 0.5321 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003347/0.6107, allocations: 0.9436 MB / 0.533 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007571/0.6183, allocations: 4.525 MB / 0.5375 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004303/0.6226, allocations: 239.7 kB / 0.5377 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006598/0.6232, allocations: 256 kB / 0.5379 GB, free: 10.26 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.003018/0.6262, allocations: 1.376 MB / 0.5393 GB, free: 8.871 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006211/0.6269, allocations: 242.3 kB / 0.5395 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004913/0.6318, allocations: 2.118 MB / 0.5416 GB, free: 6.504 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.421e-05/0.6318, allocations: 23.92 kB / 0.5416 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.6318, allocations: 0 / 0.5416 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.6318, allocations: 7.984 kB / 0.5416 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.6431, allocations: 4.781 MB / 0.5463 GB, free: 1.637 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/0.6431, allocations: 0 / 0.5463 GB, free: 1.637 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008488/0.644, allocations: 155.8 kB / 0.5464 GB, free: 1.484 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002311/0.6463, allocations: 0.6796 MB / 0.5471 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.6464, allocations: 16 kB / 0.5471 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2942/0.9406, allocations: 4.019 MB / 0.551 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.9406, allocations: 1.219 kB / 0.551 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007032/0.9476, allocations: 4.062 MB / 0.555 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007305/0.9483, allocations: 228.8 kB / 0.5552 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.9486, allocations: 15.88 kB / 0.5552 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008941/0.9495, allocations: 69.64 kB / 0.5553 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.9496, allocations: 55.31 kB / 0.5554 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.172e-05/0.9497, allocations: 44.25 kB / 0.5554 GB, free: 112.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002268/0.952, allocations: 1.692 MB / 0.557 GB, free: 111.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.952, allocations: 0 / 0.557 GB, free: 111.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002941/0.9549, allocations: 0.6675 MB / 0.5577 GB, free: 111.6 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.005926/0.9609, allocations: 4.729 MB / 0.5623 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004421/0.9653, allocations: 3.352 MB / 0.5656 GB, free: 107.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.9653, allocations: 0 / 0.5656 GB, free: 107.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.9664, allocations: 0.9638 MB / 0.5665 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.9679, allocations: 252.1 kB / 0.5668 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03904/1.007, allocations: 29.95 MB / 0.596 GB, free: 74.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001672/1.009, allocations: 1.662 MB / 0.5976 GB, free: 72.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002508/1.011, allocations: 1.327 MB / 0.5989 GB, free: 71.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.012, allocations: 1.096 MB / 0.6 GB, free: 70.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/1.012, allocations: 0 / 0.6 GB, free: 70.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09478/1.107, allocations: 45.13 MB / 0.6441 GB, free: 25.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/15.05, allocations: 3.938 kB / 0.6441 GB, free: 25.34 MB / 462.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 17.923604485113174]