Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.001594/0.001594, 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.001876/0.001876, 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.324/1.324, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",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.002259/0.002259, allocations: 51.92 kB / 347.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2676, allocations: 49.16 MB / 396.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007661/0.2753, allocations: 8.021 MB / 404.4 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004934/0.2802, allocations: 2.587 MB / 407 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.2814, allocations: 47.91 kB / 407 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002835/0.2842, allocations: 1.446 MB / 408.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002581/0.2868, allocations: 1.023 MB / 409.5 MB, free: 480 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006523/0.2875, allocations: 264 kB / 409.7 MB, free: 340 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003228/0.2907, allocations: 2.185 MB / 411.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.2924, allocations: 1.351 MB / 413.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001305/0.2937, allocations: 0.8531 MB / 414.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001767/0.2955, allocations: 1.307 MB / 415.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003227/0.2958, allocations: 158.7 kB / 415.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.2971, allocations: 0.6768 MB / 416.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.2982, allocations: 1.186 MB / 417.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00141/0.2996, allocations: 1.378 MB / 418.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004764/0.3044, allocations: 4.328 MB / 423.2 MB, free: 8.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3044, allocations: 0 / 423.2 MB, free: 8.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3044, allocations: 4.969 kB / 423.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.256e-05/0.3045, allocations: 0 / 423.2 MB, free: 8.164 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.004934/0.3094, allocations: 2.96 MB / 426.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.3094, allocations: 15.98 kB / 426.1 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006297/0.3101, allocations: 0.526 MB / 426.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006651/0.3167, allocations: 1.793 MB / 428.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.3195, allocations: 1.105 MB / 429.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.3196, allocations: 151.8 kB / 429.7 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004175/0.32, allocations: 207.8 kB / 429.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01965/0.3396, allocations: 8.6 MB / 438.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000132/0.3398, allocations: 43.64 kB / 438.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003765/0.3402, allocations: 99.89 kB / 438.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00311/0.3433, allocations: 1.667 MB / 440.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.3621, allocations: 7.178 MB / 447.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04046/0.4026, allocations: 30.05 MB / 477.6 MB, free: 456 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02317/0.4257, allocations: 4.507 MB / 482.1 MB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/0.4275, allocations: 1.197 MB / 483.3 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006215/0.4337, allocations: 3.302 MB / 486.6 MB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/0.4338, allocations: 46.89 kB / 486.6 MB, free: 7.266 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 3.647e-06/0.4338, allocations: 0 / 486.6 MB, free: 7.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.04625/0.48, allocations: 8.984 MB / 495.6 MB, free: 14.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.4802, allocations: 187.9 kB / 495.8 MB, free: 14.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006039/0.4862, allocations: 3.04 MB / 498.8 MB, free: 10.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002262/0.4864, allocations: 45.7 kB / 498.9 MB, free: 10.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002425/0.4888, allocations: 2.535 MB / 0.4896 GB, free: 8.367 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008591/0.4897, allocations: 0.5158 MB / 0.4901 GB, free: 7.848 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002183/0.4919, allocations: 1.088 MB / 0.4912 GB, free: 6.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.492, allocations: 301.1 kB / 0.4915 GB, free: 6.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002771/0.4948, allocations: 1.607 MB / 0.4931 GB, free: 4.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005626/0.5004, allocations: 5.161 MB / 0.4981 GB, free: 13.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008936/0.5093, allocations: 7.332 MB / 0.5053 GB, free: 4.758 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/0.5095, allocations: 40 kB / 0.5053 GB, free: 4.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01191/0.5214, allocations: 6.455 MB / 0.5116 GB, free: 14.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/0.5215, allocations: 56 kB / 0.5117 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/0.5217, allocations: 128 kB / 0.5118 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002371/0.5219, allocations: 172.7 kB / 0.5119 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005188/0.5271, allocations: 1.45 MB / 0.5134 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002561/0.5274, allocations: 251 kB / 0.5136 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/0.5317, allocations: 0.7717 MB / 0.5144 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008274/0.5326, allocations: 343.9 kB / 0.5147 GB, free: 11.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00315/0.5357, allocations: 1.571 MB / 0.5162 GB, free: 9.516 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005863/0.5363, allocations: 258.3 kB / 0.5165 GB, free: 9.262 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.5379, allocations: 0.8366 MB / 0.5173 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.431e-05/0.5379, allocations: 15.94 kB / 0.5173 GB, free: 8.402 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/0.5379, allocations: 4 kB / 0.5173 GB, free: 8.398 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.538, allocations: 7.969 kB / 0.5173 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007541/0.5455, allocations: 3.364 MB / 0.5206 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.5455, allocations: 4 kB / 0.5206 GB, free: 4.969 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/0.5479, allocations: 407.5 kB / 0.521 GB, free: 4.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.808e-05/0.5479, allocations: 4.047 kB / 0.521 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/0.5481, allocations: 47.94 kB / 0.521 GB, free: 4.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.5481, allocations: 7.938 kB / 0.521 GB, free: 4.512 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.5481, allocations: 4 kB / 0.521 GB, free: 4.508 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003836/0.5519, allocations: 2.795 MB / 0.5238 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008744/0.5528, allocations: 238 kB / 0.524 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005858/0.5534, allocations: 27.98 kB / 0.524 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.5546, allocations: 39.95 kB / 0.5241 GB, free: 1.387 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.5548, allocations: 55.89 kB / 0.5241 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.836e-05/0.5549, allocations: 35.98 kB / 0.5242 GB, free: 1.297 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003855/0.5587, allocations: 1.845 MB / 0.526 GB, free: 15.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5587, allocations: 0 / 0.526 GB, free: 15.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005233/0.5639, allocations: 0.8383 MB / 0.5268 GB, free: 14.61 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004873/0.5688, allocations: 3.446 MB / 0.5301 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007187/0.576, allocations: 3.48 MB / 0.5335 GB, free: 7.684 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/0.576, allocations: 0 / 0.5335 GB, free: 7.684 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.5771, allocations: 0.6797 MB / 0.5342 GB, free: 7.004 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/0.5798, allocations: 267.6 kB / 0.5345 GB, free: 6.742 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3042/0.8841, allocations: 34.3 MB / 0.568 GB, free: 139.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003372/0.8874, allocations: 2.39 MB / 0.5703 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004033/0.8915, allocations: 1.636 MB / 0.5719 GB, free: 138.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001832/0.8933, allocations: 1.215 MB / 0.5731 GB, free: 137.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.884e-06/0.8933, allocations: 0 / 0.5731 GB, free: 137.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6983/1.592, allocations: 48.04 MB / 0.62 GB, free: 97.14 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.31/20.9, allocations: 7.938 kB / 0.62 GB, free: 97.13 MB / 478.1 MB " [Timeout remaining time 639] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.842299017123878]