Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001306/0.001306, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001085/0.001085, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8723/0.8723, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.455e-05, allocations: 9.312 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.005888/0.005913, allocations: 6.764 MB / 331.4 MB, free: 9.133 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004572/0.01048, allocations: 3.169 MB / 334.5 MB, free: 5.953 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009418/0.01143, allocations: 43.81 kB / 334.6 MB, free: 5.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001879/0.0133, allocations: 1.055 MB / 335.6 MB, free: 4.852 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002316/0.01562, allocations: 1.396 MB / 337 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009362/0.01656, allocations: 0.5766 MB / 337.6 MB, free: 2.871 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.01906, allocations: 2.971 MB / 340.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001888/0.02094, allocations: 1.466 MB / 342 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001656/0.0226, allocations: 1.278 MB / 343.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.02396, allocations: 1.34 MB / 344.6 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000267/0.02423, allocations: 152 kB / 344.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.02535, allocations: 0.8227 MB / 345.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007072/0.02605, allocations: 1.122 MB / 346.7 MB, free: 9.676 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006187/0.02667, allocations: 0.6734 MB / 347.4 MB, free: 9 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00339/0.03006, allocations: 4.1 MB / 351.5 MB, free: 4.887 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.03006, allocations: 0 / 351.5 MB, free: 4.887 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.03007, allocations: 4 kB / 351.5 MB, free: 4.883 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.06e-05/0.03013, allocations: 0 / 351.5 MB, free: 4.883 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.003628/0.03375, allocations: 3.028 MB / 354.5 MB, free: 1.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.0338, allocations: 8.031 kB / 354.6 MB, free: 1.801 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003452/0.03414, allocations: 462.4 kB / 355 MB, free: 1.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003084/0.03723, allocations: 1.656 MB / 356.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/0.03883, allocations: 1.391 MB / 358.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.844e-05/0.03889, allocations: 123.1 kB / 358.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.03911, allocations: 163.9 kB / 358.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005849/0.04496, allocations: 6.549 MB / 364.9 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.447e-05/0.045, allocations: 27.77 kB / 364.9 MB, free: 6.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001497/0.04515, allocations: 79.89 kB / 365 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001328/0.04648, allocations: 1.476 MB / 366.5 MB, free: 5.359 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007005/0.05349, allocations: 5.833 MB / 372.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/0.07253, allocations: 24.89 MB / 397.2 MB, free: 5.859 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.07561, allocations: 2.067 MB / 399.3 MB, free: 3.758 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.07683, allocations: 1.137 MB / 400.4 MB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00461/0.08144, allocations: 4.395 MB / 404.8 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.08146, allocations: 38.56 kB / 404.8 MB, free: 14.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 2.886e-06/0.08146, allocations: 0 / 404.8 MB, free: 14.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.01469/0.09616, allocations: 10.05 MB / 414.9 MB, free: 4.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.09621, allocations: 137 kB / 415 MB, free: 3.855 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002845/0.09906, allocations: 3.029 MB / 418 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.313e-05/0.09915, allocations: 37.7 kB / 418.1 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009858/0.1001, allocations: 2.113 MB / 420.2 MB, free: 14.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003211/0.1005, allocations: 436.7 kB / 420.6 MB, free: 14.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009399/0.1014, allocations: 0.8298 MB / 421.4 MB, free: 13.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.1015, allocations: 301.1 kB / 421.7 MB, free: 13.06 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.1029, allocations: 1.445 MB / 423.2 MB, free: 11.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002664/0.1056, allocations: 4.073 MB / 427.2 MB, free: 6.219 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004578/0.1101, allocations: 5.958 MB / 433.2 MB, free: 14.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.621e-05/0.1102, allocations: 28 kB / 433.2 MB, free: 14.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.006636/0.1168, allocations: 6.038 MB / 439.3 MB, free: 8.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/0.1169, allocations: 47.94 kB / 439.3 MB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.782e-05/0.117, allocations: 95.94 kB / 439.4 MB, free: 8.746 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.1182, allocations: 0.8166 MB / 440.2 MB, free: 7.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.1198, allocations: 0.9552 MB / 441.2 MB, free: 6.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003816/0.1236, allocations: 4.525 MB / 445.7 MB, free: 2.336 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001852/0.1255, allocations: 299.6 kB / 446 MB, free: 2.043 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/0.1257, allocations: 256 kB / 446.3 MB, free: 1.793 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.001467/0.1272, allocations: 1.376 MB / 447.6 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003339/0.1275, allocations: 238.3 kB / 447.9 MB, free: 176 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1522/0.2798, allocations: 2.125 MB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.252e-05/0.2798, allocations: 11.88 kB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.2798, allocations: 3.719 kB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.2798, allocations: 6.812 kB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006431/0.2862, allocations: 4.838 MB / 454.8 MB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.2862, allocations: 0 / 454.8 MB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000393/0.2866, allocations: 159.5 kB / 455 MB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001034/0.2877, allocations: 0.682 MB / 455.7 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.856e-05/0.2877, allocations: 21.3 kB / 455.7 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002818/0.2906, allocations: 4.046 MB / 459.7 MB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2906, allocations: 1.25 kB / 459.7 MB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003411/0.294, allocations: 4.05 MB / 463.8 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004369/0.2944, allocations: 253.6 kB / 464 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001883/0.2946, allocations: 14.62 kB / 464.1 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005994/0.2952, allocations: 111.8 kB / 464.2 MB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.2953, allocations: 60.33 kB / 464.2 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.034e-05/0.2954, allocations: 36.44 kB / 464.3 MB, free: 106.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001585/0.2969, allocations: 1.814 MB / 466.1 MB, free: 104.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2969, allocations: 0 / 466.1 MB, free: 104.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002054/0.299, allocations: 0.7469 MB / 466.8 MB, free: 104.2 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.003617/0.3026, allocations: 4.766 MB / 471.6 MB, free: 99.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003257/0.3059, allocations: 3.361 MB / 475 MB, free: 96.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3059, allocations: 0 / 475 MB, free: 96.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007168/0.3066, allocations: 0.9574 MB / 475.9 MB, free: 95.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/0.3078, allocations: 264.3 kB / 476.2 MB, free: 95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02416/0.332, allocations: 30.31 MB / 0.4946 GB, free: 61.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001128/0.3331, allocations: 1.675 MB / 0.4962 GB, free: 59.73 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001582/0.3347, allocations: 1.324 MB / 0.4975 GB, free: 58.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009056/0.3356, allocations: 1.098 MB / 0.4986 GB, free: 57.31 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3356, allocations: 0 / 0.4986 GB, free: 57.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04987/0.3855, allocations: 46.71 MB / 0.5442 GB, free: 11.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.415/8.8, allocations: 0 / 0.5442 GB, free: 11.05 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-08 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.594045824371278]