Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.001451/0.001451, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001545/0.001545, allocations: 212.2 kB / 24.53 MB, free: 4.066 MB / 14.72 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 1.321/1.321, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 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.PointGravity,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 47.92 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2033, allocations: 53.36 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007777/0.2111, allocations: 7.015 MB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004796/0.2159, allocations: 3.154 MB / 442.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003241/0.2162, allocations: 35.88 kB / 442.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.2175, allocations: 0.6808 MB / 442.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002333/0.2198, allocations: 1.393 MB / 444.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007582/0.2205, allocations: 0.4951 MB / 444.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003327/0.2239, allocations: 3.203 MB / 447.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005679/0.2244, allocations: 494.3 kB / 448.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007959/0.2252, allocations: 0.8095 MB / 449.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001489/0.2267, allocations: 1.332 MB / 450.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002049/0.2269, allocations: 132 kB / 450.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.2283, allocations: 0.9787 MB / 451.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009198/0.2292, allocations: 1.094 MB / 452.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.2303, allocations: 1.215 MB / 453.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003824/0.2341, allocations: 4.027 MB / 458 MB, free: 12.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2341, allocations: 4 kB / 458 MB, free: 12.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2341, allocations: 0 / 458 MB, free: 12.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.054e-05/0.2341, allocations: 0 / 458 MB, free: 12.7 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.005863/0.24, allocations: 3.207 MB / 461.2 MB, free: 9.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.24, allocations: 8.031 kB / 461.2 MB, free: 9.438 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.159e-05/0.2401, allocations: 54.94 kB / 461.2 MB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004654/0.2405, allocations: 437.4 kB / 461.7 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008326/0.2489, allocations: 2.043 MB / 463.7 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003619/0.2525, allocations: 1.998 MB / 465.7 MB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.966e-05/0.2526, allocations: 114.6 kB / 465.8 MB, free: 4.754 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008553/0.2534, allocations: 303.5 kB / 466.1 MB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.2669, allocations: 8.219 MB / 474.3 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.61e-05/0.267, allocations: 35.7 kB / 474.4 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.2673, allocations: 83.83 kB / 474.5 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002146/0.2694, allocations: 1.397 MB / 475.9 MB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01693/0.2863, allocations: 9.585 MB / 485.4 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03315/0.3195, allocations: 30.44 MB / 0.5038 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/0.3307, allocations: 3.892 MB / 0.5076 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00268/0.3333, allocations: 2.082 MB / 0.5096 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.477e-05/0.3334, allocations: 11.94 kB / 0.5096 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.3334, allocations: 46.5 kB / 0.5097 GB, free: 11.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 2.895e-06/0.3334, allocations: 0 / 0.5097 GB, free: 11.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.04416/0.3776, allocations: 17.86 MB / 0.5271 GB, free: 9.172 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002393/0.38, allocations: 3.036 MB / 0.5301 GB, free: 5.848 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004012/0.384, allocations: 3 MB / 0.533 GB, free: 2.828 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005209/0.3845, allocations: 41.7 kB / 0.5331 GB, free: 2.781 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.3861, allocations: 2.163 MB / 0.5352 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008506/0.387, allocations: 0.5893 MB / 0.5357 GB, free: 4 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1632/0.5502, allocations: 1.006 MB / 0.5367 GB, free: 102.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.097e-05/0.5502, allocations: 307.8 kB / 0.537 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003361/0.5535, allocations: 2.576 MB / 0.5395 GB, free: 102 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004048/0.5576, allocations: 5.527 MB / 0.5449 GB, free: 97.24 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006285/0.5639, allocations: 8.514 MB / 0.5532 GB, free: 90.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.061e-05/0.5639, allocations: 27.06 kB / 0.5533 GB, free: 90.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.01569/0.5796, allocations: 9.878 MB / 0.5629 GB, free: 84.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.71e-05/0.5797, allocations: 48 kB / 0.563 GB, free: 84.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009722/0.5894, allocations: 5.091 MB / 0.5679 GB, free: 79.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00773/0.5971, allocations: 2.358 MB / 0.5702 GB, free: 76.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00328/0.6004, allocations: 1.236 MB / 0.5714 GB, free: 75.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00581/0.6062, allocations: 8.267 MB / 0.5795 GB, free: 66.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/0.6103, allocations: 0.5637 MB / 0.5801 GB, free: 66.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004966/0.6108, allocations: 311.9 kB / 0.5804 GB, free: 66.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001569/0.6124, allocations: 1.418 MB / 0.5818 GB, free: 64.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004009/0.6128, allocations: 264.7 kB / 0.582 GB, free: 64.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006935/0.6135, allocations: 421.5 kB / 0.5824 GB, free: 64.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009755/0.6232, allocations: 4.999 MB / 0.5873 GB, free: 59.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.6233, allocations: 7.938 kB / 0.5873 GB, free: 59.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.6233, allocations: 3.984 kB / 0.5873 GB, free: 59.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006295/0.6296, allocations: 5.287 MB / 0.5925 GB, free: 53.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.6296, allocations: 0 / 0.5925 GB, free: 53.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/0.6311, allocations: 367.4 kB / 0.5928 GB, free: 53.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007452/0.6386, allocations: 2.378 MB / 0.5951 GB, free: 51.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002526/0.6388, allocations: 51.88 kB / 0.5952 GB, free: 51.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006575/0.6454, allocations: 9.03 MB / 0.604 GB, free: 41.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001181/0.6466, allocations: 2.868 MB / 0.6068 GB, free: 38.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01317/0.6597, allocations: 8.764 MB / 0.6154 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005323/0.6603, allocations: 263.3 kB / 0.6156 GB, free: 29.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003678/0.6606, allocations: 35.58 kB / 0.6156 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/0.6625, allocations: 323.4 kB / 0.616 GB, free: 29.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003559/0.6629, allocations: 111.7 kB / 0.6161 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001587/0.663, allocations: 51.95 kB / 0.6161 GB, free: 28.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001906/0.6649, allocations: 1.867 MB / 0.6179 GB, free: 27.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6649, allocations: 0 / 0.6179 GB, free: 27.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003299/0.6682, allocations: 0.9476 MB / 0.6189 GB, free: 26.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01343/0.6817, allocations: 9.422 MB / 0.6281 GB, free: 16.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009064/0.6907, allocations: 6.767 MB / 0.6347 GB, free: 9.789 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6907, allocations: 192 / 0.6347 GB, free: 9.789 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005053/0.6958, allocations: 3.258 MB / 0.6379 GB, free: 6.465 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/0.6978, allocations: 310.6 kB / 0.6381 GB, free: 6.164 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07286/0.7706, allocations: 45.23 MB / 0.6823 GB, free: 4.605 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002353/0.773, allocations: 2.29 MB / 0.6846 GB, free: 2.285 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003499/0.7765, allocations: 1.663 MB / 0.6862 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001851/0.7783, allocations: 1.174 MB / 0.6873 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of SimCode: time 8.42e-07/0.7783, allocations: 0 / 0.6873 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.163/1.941, allocations: 67.28 MB / 0.753 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.77/20.71, allocations: 7.031 kB / 0.753 GB, free: 181.6 MB / 0.5294 GB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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: 23.753745494002942]