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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005793/0.005793, allocations: 101.1 kB / 21.96 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 217.5 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 51.92 kB / 348 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2417, allocations: 49.16 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00692/0.2486, allocations: 6.795 MB / 403.9 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005359/0.2539, allocations: 3.09 MB / 407 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009623/0.2549, allocations: 41.94 kB / 407.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002/0.2569, allocations: 1.019 MB / 408.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003061/0.26, allocations: 1.378 MB / 409.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.2612, allocations: 0.5359 MB / 410 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003161/0.2644, allocations: 2.599 MB / 412.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002001/0.2664, allocations: 1.234 MB / 413.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.268, allocations: 0.861 MB / 414.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002101/0.2701, allocations: 1.27 MB / 416 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005644/0.2707, allocations: 147.7 kB / 416.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.2728, allocations: 0.8103 MB / 416.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.2742, allocations: 1.094 MB / 418 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.2757, allocations: 0.9086 MB / 418.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005259/0.281, allocations: 4.162 MB / 423.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.281, allocations: 0 / 423.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.281, allocations: 0 / 423.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.05e-05/0.2811, allocations: 0 / 423.1 MB, free: 9.125 MB / 334.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.006059/0.2872, allocations: 3.032 MB / 426.1 MB, free: 6.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.2872, allocations: 15.98 kB / 426.1 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.803e-05/0.2873, allocations: 59.31 kB / 426.2 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006103/0.2879, allocations: 462.4 kB / 426.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.2932, allocations: 1.602 MB / 428.2 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003455/0.2966, allocations: 1.825 MB / 430.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.2967, allocations: 123 kB / 430.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003746/0.2971, allocations: 155.9 kB / 430.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/0.3071, allocations: 6.534 MB / 436.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.028e-05/0.3072, allocations: 27.77 kB / 436.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002462/0.3074, allocations: 87.88 kB / 437 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002489/0.3099, allocations: 1.464 MB / 438.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00996/0.3199, allocations: 5.834 MB / 444.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02958/0.3495, allocations: 24.76 MB / 469 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005416/0.3549, allocations: 2.016 MB / 471.1 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.3565, allocations: 1.129 MB / 472.2 MB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007928/0.3644, allocations: 4.299 MB / 476.5 MB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.3644, allocations: 42.56 kB / 476.5 MB, free: 2.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.138e-06/0.3644, allocations: 0 / 476.5 MB, free: 2.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02433/0.3888, allocations: 9.809 MB / 486.3 MB, free: 8.352 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.949e-05/0.3889, allocations: 141 kB / 486.5 MB, free: 8.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/0.3929, allocations: 2.732 MB / 489.2 MB, free: 5.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000197/0.3931, allocations: 37.7 kB / 489.2 MB, free: 5.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001756/0.3948, allocations: 2.148 MB / 491.4 MB, free: 3.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006162/0.3954, allocations: 440.8 kB / 491.8 MB, free: 2.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/0.3966, allocations: 0.8454 MB / 492.7 MB, free: 1.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3968, allocations: 313 kB / 493 MB, free: 1.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/0.399, allocations: 1.441 MB / 494.4 MB, free: 184 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004499/0.4035, allocations: 4.057 MB / 498.5 MB, free: 10.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007431/0.4109, allocations: 5.945 MB / 0.4926 GB, free: 3.551 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-05/0.411, allocations: 28 kB / 0.4926 GB, free: 3.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01144/0.4225, allocations: 6.014 MB / 0.4985 GB, free: 13.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.534e-05/0.4225, allocations: 44 kB / 0.4985 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-05/0.4226, allocations: 96 kB / 0.4986 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/0.425, allocations: 0.8207 MB / 0.4994 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/0.4281, allocations: 0.9396 MB / 0.5003 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006195/0.4343, allocations: 4.525 MB / 0.5048 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/0.4375, allocations: 243.7 kB / 0.505 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005937/0.4381, allocations: 256 kB / 0.5052 GB, free: 6.465 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.002429/0.4405, allocations: 1.368 MB / 0.5066 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004544/0.441, allocations: 238.3 kB / 0.5068 GB, free: 4.848 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004319/0.4453, allocations: 2.13 MB / 0.5089 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.939e-05/0.4453, allocations: 15.98 kB / 0.5089 GB, free: 2.688 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4453, allocations: 4 kB / 0.5089 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.4453, allocations: 3.984 kB / 0.5089 GB, free: 2.68 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009751/0.4551, allocations: 4.786 MB / 0.5136 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.4551, allocations: 0 / 0.5136 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007967/0.4559, allocations: 155.8 kB / 0.5137 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/0.458, allocations: 0.6873 MB / 0.5144 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.4581, allocations: 19.98 kB / 0.5144 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005501/0.4636, allocations: 4.013 MB / 0.5183 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4636, allocations: 0 / 0.5183 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006669/0.4703, allocations: 4.068 MB / 0.5223 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.4714, allocations: 394.3 kB / 0.5227 GB, free: 4.355 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003053/0.4717, allocations: 19.94 kB / 0.5227 GB, free: 4.336 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009219/0.4726, allocations: 71.89 kB / 0.5228 GB, free: 4.266 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/0.4728, allocations: 56.33 kB / 0.5228 GB, free: 4.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.665e-05/0.4729, allocations: 32 kB / 0.5229 GB, free: 4.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002738/0.4757, allocations: 1.706 MB / 0.5245 GB, free: 2.465 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4757, allocations: 0 / 0.5245 GB, free: 2.465 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003177/0.4788, allocations: 0.6716 MB / 0.5252 GB, free: 1.793 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.007331/0.4862, allocations: 4.745 MB / 0.5298 GB, free: 13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005811/0.492, allocations: 3.356 MB / 0.5331 GB, free: 9.656 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/0.492, allocations: 4 kB / 0.5331 GB, free: 9.652 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.4935, allocations: 0.9585 MB / 0.534 GB, free: 8.684 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/0.4953, allocations: 256.8 kB / 0.5343 GB, free: 8.43 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2158/0.711, allocations: 30.04 MB / 0.5636 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002055/0.7131, allocations: 1.673 MB / 0.5652 GB, free: 142.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002665/0.7158, allocations: 1.322 MB / 0.5665 GB, free: 142.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0012/0.717, allocations: 1.095 MB / 0.5676 GB, free: 141.7 MB / 478.1 MB Notification: Performance of SimCode: time 9.11e-07/0.717, allocations: 0 / 0.5676 GB, free: 141.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07317/0.7901, allocations: 46.77 MB / 0.6133 GB, free: 103.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.31/19.1, allocations: 4.062 kB / 0.6133 GB, free: 103.5 MB / 478.1 MB " [Timeout remaining time 641] (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 --stepSize=0.0019992 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.945564360008575]