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.001346/0.001346, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001466/0.001466, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.401/1.401, allocations: 207.6 MB / 235.3 MB, free: 10 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",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.001946/0.001946, allocations: 47.92 kB / 347.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2785, allocations: 49.16 MB / 396.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.007587/0.2861, allocations: 7.75 MB / 404.1 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005765/0.2918, allocations: 3.338 MB / 407.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.2931, allocations: 42.72 kB / 407.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002167/0.2952, allocations: 1.053 MB / 408.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003221/0.2985, allocations: 1.376 MB / 409.9 MB, free: 324 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.2997, allocations: 0.5391 MB / 410.5 MB, free: 128 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003868/0.3036, allocations: 2.598 MB / 413.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001728/0.3053, allocations: 1.239 MB / 414.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.3067, allocations: 0.8604 MB / 415.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00176/0.3084, allocations: 1.27 MB / 416.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003521/0.3088, allocations: 147.8 kB / 416.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.3107, allocations: 0.9287 MB / 417.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.3118, allocations: 1.1 MB / 418.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.3132, allocations: 1.258 MB / 419.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005279/0.3185, allocations: 4.146 MB / 424 MB, free: 7.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3185, allocations: 4 kB / 424 MB, free: 7.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3185, allocations: 0 / 424 MB, free: 7.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001155/0.3186, allocations: 0 / 424 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.006531/0.3252, allocations: 3.036 MB / 427 MB, free: 4.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.3252, allocations: 11.98 kB / 427 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006688/0.3259, allocations: 462.4 kB / 427.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005431/0.3313, allocations: 1.602 MB / 429.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004017/0.3353, allocations: 1.809 MB / 430.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.3354, allocations: 123 kB / 431 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000385/0.3358, allocations: 159.9 kB / 431.2 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01122/0.347, allocations: 6.53 MB / 437.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.403e-05/0.3471, allocations: 31.7 kB / 437.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.3474, allocations: 83.89 kB / 437.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002542/0.35, allocations: 1.472 MB / 439.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01101/0.361, allocations: 5.834 MB / 445.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03253/0.3935, allocations: 25.64 MB / 470.8 MB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005428/0.3989, allocations: 2.011 MB / 472.8 MB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.4006, allocations: 1.137 MB / 473.9 MB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008153/0.4087, allocations: 4.541 MB / 478.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.4088, allocations: 42.5 kB / 478.5 MB, free: 15.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.557e-06/0.4088, allocations: 4 kB / 478.5 MB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02452/0.4333, allocations: 9.763 MB / 488.3 MB, free: 5.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.744e-05/0.4334, allocations: 144.9 kB / 488.4 MB, free: 5.629 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004136/0.4375, allocations: 2.736 MB / 491.2 MB, free: 2.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001898/0.4377, allocations: 37.7 kB / 491.2 MB, free: 2.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001643/0.4394, allocations: 2.147 MB / 493.3 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005547/0.4399, allocations: 440.8 kB / 493.8 MB, free: 236 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/0.4411, allocations: 0.8415 MB / 494.6 MB, free: 15.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4412, allocations: 301.1 kB / 494.9 MB, free: 15.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002299/0.4435, allocations: 1.441 MB / 496.3 MB, free: 13.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004407/0.448, allocations: 4.057 MB / 0.4887 GB, free: 8.262 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007303/0.4553, allocations: 5.952 MB / 0.4945 GB, free: 1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.886e-05/0.4553, allocations: 28 kB / 0.4945 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01127/0.4666, allocations: 6.015 MB / 0.5004 GB, free: 10.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.976e-05/0.4667, allocations: 48.22 kB / 0.5004 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001148/0.4668, allocations: 92 kB / 0.5005 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/0.4691, allocations: 0.8201 MB / 0.5013 GB, free: 9.984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/0.472, allocations: 0.9357 MB / 0.5022 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006306/0.4783, allocations: 4.56 MB / 0.5067 GB, free: 4.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002966/0.4813, allocations: 239.7 kB / 0.5069 GB, free: 4.137 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004933/0.4818, allocations: 256 kB / 0.5072 GB, free: 3.887 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.0024/0.4842, allocations: 1.376 MB / 0.5085 GB, free: 2.496 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.4846, allocations: 238.3 kB / 0.5087 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004403/0.489, allocations: 2.122 MB / 0.5108 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/0.489, allocations: 12.56 kB / 0.5108 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.489, allocations: 4 kB / 0.5108 GB, free: 112 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.489, allocations: 3.984 kB / 0.5108 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.4994, allocations: 5.038 MB / 0.5157 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.4994, allocations: 4 kB / 0.5157 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000817/0.5002, allocations: 163.8 kB / 0.5159 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/0.5023, allocations: 0.6794 MB / 0.5166 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.5024, allocations: 20 kB / 0.5166 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005498/0.5079, allocations: 4.044 MB / 0.5205 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.5079, allocations: 64 / 0.5205 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006636/0.5146, allocations: 4.064 MB / 0.5245 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.5158, allocations: 390.2 kB / 0.5249 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004983/0.5163, allocations: 23.92 kB / 0.5249 GB, free: 1.465 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.5174, allocations: 67.89 kB / 0.525 GB, free: 1.398 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.5176, allocations: 56.33 kB / 0.525 GB, free: 1.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.953e-05/0.5177, allocations: 39.92 kB / 0.5251 GB, free: 1.305 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003115/0.5208, allocations: 1.706 MB / 0.5267 GB, free: 15.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5208, allocations: 8.062 kB / 0.5267 GB, free: 15.58 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003495/0.5243, allocations: 0.6677 MB / 0.5274 GB, free: 14.91 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.007147/0.5315, allocations: 4.738 MB / 0.532 GB, free: 10.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005684/0.5371, allocations: 3.363 MB / 0.5353 GB, free: 6.777 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5371, allocations: 0 / 0.5353 GB, free: 6.777 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.5385, allocations: 0.9575 MB / 0.5362 GB, free: 5.809 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.5405, allocations: 253.8 kB / 0.5365 GB, free: 5.559 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2241/0.7646, allocations: 30.05 MB / 0.5658 GB, free: 143.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002242/0.7668, allocations: 2.246 MB / 0.568 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002807/0.7696, allocations: 1.315 MB / 0.5693 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.7708, allocations: 1.102 MB / 0.5704 GB, free: 141.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.192e-06/0.7708, allocations: 0 / 0.5704 GB, free: 141.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0865/0.8573, allocations: 48.47 MB / 0.6177 GB, free: 101.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/19.65, allocations: 0 / 0.6177 GB, free: 101.4 MB / 478.1 MB " [Timeout remaining time 640] (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: 22.2851302230265]