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.005852/0.005852, allocations: 114.2 kB / 21.97 MB, free: 5.223 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.001674/0.001674, allocations: 214.9 kB / 25.28 MB, free: 3.246 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.32/1.32, allocations: 207.6 MB / 236.1 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] 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.001681/0.001681, allocations: 55.92 kB / 348 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2413, allocations: 49.15 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.007443/0.2487, allocations: 7.747 MB / 404.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006041/0.2548, allocations: 3.338 MB / 408.2 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.2563, allocations: 44.03 kB / 408.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002175/0.2584, allocations: 1.056 MB / 409.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.2618, allocations: 1.372 MB / 410.7 MB, free: 320 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.2632, allocations: 0.5394 MB / 411.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004339/0.2675, allocations: 2.596 MB / 413.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001786/0.2693, allocations: 1.239 MB / 415.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001661/0.271, allocations: 0.8556 MB / 415.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002129/0.2731, allocations: 1.271 MB / 417.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004144/0.2735, allocations: 147.8 kB / 417.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.2755, allocations: 0.9308 MB / 418.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.2767, allocations: 1.102 MB / 419.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001493/0.2782, allocations: 1.261 MB / 420.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005493/0.2837, allocations: 4.147 MB / 424.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2837, allocations: 0 / 424.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2837, allocations: 0 / 424.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.174e-05/0.2838, allocations: 0 / 424.8 MB, free: 7.602 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.006093/0.2899, allocations: 3.032 MB / 427.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.2899, allocations: 11.98 kB / 427.8 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.18e-05/0.29, allocations: 59.31 kB / 427.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005766/0.2906, allocations: 466.4 kB / 428.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005462/0.296, allocations: 1.602 MB / 429.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003448/0.2995, allocations: 1.805 MB / 431.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.2996, allocations: 127 kB / 431.9 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003566/0.3, allocations: 163.8 kB / 432 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/0.3108, allocations: 6.538 MB / 438.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-05/0.3109, allocations: 31.7 kB / 438.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002605/0.3112, allocations: 75.91 kB / 438.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002661/0.3138, allocations: 1.472 MB / 440.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01268/0.3265, allocations: 5.826 MB / 446 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03308/0.3596, allocations: 25.64 MB / 471.6 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005668/0.3653, allocations: 2.015 MB / 473.6 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.3668, allocations: 1.133 MB / 474.8 MB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007639/0.3745, allocations: 4.537 MB / 479.3 MB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.3745, allocations: 46.48 kB / 479.3 MB, free: 15.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.257e-06/0.3745, allocations: 4 kB / 479.3 MB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02577/0.4003, allocations: 9.77 MB / 489.1 MB, free: 5.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.896e-05/0.4004, allocations: 141.2 kB / 489.3 MB, free: 5.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00531/0.4057, allocations: 2.736 MB / 492 MB, free: 2.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001634/0.4059, allocations: 37.7 kB / 492 MB, free: 2.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001877/0.4077, allocations: 2.155 MB / 494.2 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000617/0.4084, allocations: 440.7 kB / 494.6 MB, free: 172 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001596/0.4099, allocations: 0.8376 MB / 495.5 MB, free: 15.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4101, allocations: 309.1 kB / 495.8 MB, free: 15.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002349/0.4124, allocations: 1.433 MB / 497.2 MB, free: 13.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004568/0.417, allocations: 4.057 MB / 0.4895 GB, free: 8.203 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007486/0.4245, allocations: 5.949 MB / 0.4953 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.792e-05/0.4246, allocations: 28 kB / 0.4953 GB, free: 0.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.012/0.4366, allocations: 6.015 MB / 0.5012 GB, free: 10.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.627e-05/0.4367, allocations: 44.22 kB / 0.5012 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/0.4368, allocations: 99.98 kB / 0.5013 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002491/0.4393, allocations: 0.8279 MB / 0.5022 GB, free: 9.918 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/0.4425, allocations: 0.9357 MB / 0.5031 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006555/0.449, allocations: 4.557 MB / 0.5075 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0033/0.4523, allocations: 239.7 kB / 0.5077 GB, free: 4.074 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008187/0.4532, allocations: 263.9 kB / 0.508 GB, free: 3.816 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.002939/0.4561, allocations: 1.372 MB / 0.5093 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006005/0.4567, allocations: 242.3 kB / 0.5096 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004706/0.4614, allocations: 2.115 MB / 0.5116 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/0.4614, allocations: 12 kB / 0.5116 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.4614, allocations: 4 kB / 0.5116 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.4615, allocations: 7.984 kB / 0.5117 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.4718, allocations: 5.042 MB / 0.5166 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.894e-06/0.4718, allocations: 0 / 0.5166 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000769/0.4726, allocations: 163.8 kB / 0.5167 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00218/0.4748, allocations: 0.6717 MB / 0.5174 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.4749, allocations: 23.98 kB / 0.5174 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005502/0.4804, allocations: 4.041 MB / 0.5214 GB, free: 5.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.4804, allocations: 4 kB / 0.5214 GB, free: 5.906 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006599/0.487, allocations: 4.064 MB / 0.5253 GB, free: 1.809 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.4881, allocations: 390.2 kB / 0.5257 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004276/0.4885, allocations: 23.92 kB / 0.5257 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.4896, allocations: 67.89 kB / 0.5258 GB, free: 1.336 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.4897, allocations: 60.33 kB / 0.5258 GB, free: 1.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-05/0.4898, allocations: 28 kB / 0.5259 GB, free: 1.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003132/0.493, allocations: 1.706 MB / 0.5275 GB, free: 15.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.493, allocations: 4.062 kB / 0.5275 GB, free: 15.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003481/0.4965, allocations: 0.6794 MB / 0.5282 GB, free: 14.85 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.007382/0.5038, allocations: 4.741 MB / 0.5328 GB, free: 10.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005928/0.5098, allocations: 3.364 MB / 0.5361 GB, free: 6.711 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5098, allocations: 0 / 0.5361 GB, free: 6.711 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.5112, allocations: 0.9617 MB / 0.5371 GB, free: 5.738 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/0.5132, allocations: 257 kB / 0.5373 GB, free: 5.484 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2175/0.7307, allocations: 30.04 MB / 0.5666 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/0.7329, allocations: 2.245 MB / 0.5688 GB, free: 142.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002748/0.7356, allocations: 1.328 MB / 0.5701 GB, free: 142.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/0.7368, allocations: 1.098 MB / 0.5712 GB, free: 141.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.433e-06/0.7368, allocations: 0 / 0.5712 GB, free: 141.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07742/0.8142, allocations: 48.5 MB / 0.6186 GB, free: 101.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.94/18.76, allocations: 8 kB / 0.6186 GB, free: 101.1 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.598500343970954]