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.006396/0.006396, allocations: 114 kB / 21.97 MB, free: 5.227 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.001852/0.001852, allocations: 212.3 kB / 25.28 MB, free: 3.25 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.312/1.312, allocations: 207.6 MB / 236 MB, free: 9.977 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",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.001587/0.001587, allocations: 43.94 kB / 348 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2197, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006713/0.2265, allocations: 8.012 MB / 405.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004407/0.2309, allocations: 2.591 MB / 407.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006086/0.2315, allocations: 38.94 kB / 407.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002341/0.2338, allocations: 1.443 MB / 409.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001768/0.2356, allocations: 1.027 MB / 410.3 MB, free: 484 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.2361, allocations: 268.6 kB / 410.5 MB, free: 340 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002426/0.2385, allocations: 2.193 MB / 412.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.24, allocations: 1.359 MB / 414.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009951/0.241, allocations: 0.8502 MB / 414.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.2425, allocations: 1.309 MB / 416.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002521/0.2427, allocations: 159.3 kB / 416.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.2439, allocations: 0.6726 MB / 417.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009717/0.2449, allocations: 1.194 MB / 418.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001195/0.2461, allocations: 1.376 MB / 419.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004443/0.2505, allocations: 4.323 MB / 424 MB, free: 8.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2505, allocations: 0 / 424 MB, free: 8.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2505, allocations: 3.938 kB / 424 MB, free: 8.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.579e-05/0.2506, allocations: 0.875 kB / 424 MB, free: 8.156 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.004226/0.2548, allocations: 2.96 MB / 426.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2549, allocations: 15.98 kB / 426.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.526e-05/0.2549, allocations: 68.12 kB / 427 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005511/0.2555, allocations: 0.5298 MB / 427.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006339/0.2618, allocations: 1.8 MB / 429.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.2638, allocations: 1.097 MB / 430.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.2639, allocations: 155.8 kB / 430.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003507/0.2642, allocations: 207.8 kB / 430.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01678/0.281, allocations: 8.596 MB / 439.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.542e-05/0.2811, allocations: 35.7 kB / 439.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000264/0.2814, allocations: 107.9 kB / 439.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002804/0.2842, allocations: 1.663 MB / 441.2 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01678/0.3009, allocations: 7.182 MB / 448.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03301/0.3339, allocations: 30.06 MB / 478.4 MB, free: 364 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02115/0.3551, allocations: 4.511 MB / 482.9 MB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/0.3568, allocations: 1.204 MB / 484.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005318/0.3621, allocations: 3.286 MB / 487.4 MB, free: 7.234 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.3622, allocations: 50.83 kB / 487.5 MB, free: 7.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 2.725e-06/0.3622, allocations: 0 / 487.5 MB, free: 7.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.0432/0.4054, allocations: 8.972 MB / 496.4 MB, free: 14.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.4055, allocations: 191.9 kB / 496.6 MB, free: 13.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003905/0.4094, allocations: 3.044 MB / 499.7 MB, free: 10.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.71e-05/0.4095, allocations: 37.7 kB / 499.7 MB, free: 10.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001718/0.4112, allocations: 2.536 MB / 0.4905 GB, free: 8.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004644/0.4117, allocations: 0.5158 MB / 0.491 GB, free: 7.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/0.4129, allocations: 1.092 MB / 0.492 GB, free: 6.668 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4131, allocations: 305.1 kB / 0.4923 GB, free: 6.367 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002126/0.4152, allocations: 1.599 MB / 0.4939 GB, free: 4.762 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004827/0.42, allocations: 5.169 MB / 0.4989 GB, free: 13.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008156/0.4282, allocations: 7.335 MB / 0.5061 GB, free: 4.668 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.955e-05/0.4283, allocations: 36 kB / 0.5061 GB, free: 4.633 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01015/0.4384, allocations: 6.447 MB / 0.5124 GB, free: 14.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.608e-05/0.4385, allocations: 60 kB / 0.5125 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001319/0.4386, allocations: 128 kB / 0.5126 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001611/0.4388, allocations: 171.9 kB / 0.5128 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00443/0.4432, allocations: 1.454 MB / 0.5142 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001962/0.4434, allocations: 251 kB / 0.5144 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003072/0.4465, allocations: 0.7682 MB / 0.5152 GB, free: 11.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003961/0.4469, allocations: 343.9 kB / 0.5155 GB, free: 11.02 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.002078/0.4489, allocations: 1.571 MB / 0.5171 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000396/0.4493, allocations: 262.3 kB / 0.5173 GB, free: 9.176 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/0.4506, allocations: 0.8365 MB / 0.5181 GB, free: 8.332 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.172e-05/0.4506, allocations: 16.38 kB / 0.5181 GB, free: 8.316 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4506, allocations: 4 kB / 0.5181 GB, free: 8.312 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.4506, allocations: 7.969 kB / 0.5182 GB, free: 8.305 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005298/0.4559, allocations: 3.367 MB / 0.5214 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.4559, allocations: 7.938 kB / 0.5214 GB, free: 4.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002177/0.4581, allocations: 403.5 kB / 0.5218 GB, free: 4.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.4581, allocations: 4 kB / 0.5218 GB, free: 4.477 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.483e-05/0.4582, allocations: 43.97 kB / 0.5219 GB, free: 4.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.298e-06/0.4582, allocations: 4 kB / 0.5219 GB, free: 4.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4582, allocations: 0 / 0.5219 GB, free: 4.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003168/0.4614, allocations: 2.799 MB / 0.5246 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003869/0.4618, allocations: 242 kB / 0.5248 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.462, allocations: 27.98 kB / 0.5249 GB, free: 1.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008514/0.4629, allocations: 43.95 kB / 0.5249 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.463, allocations: 55.83 kB / 0.525 GB, free: 1.242 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.778e-05/0.4631, allocations: 39.97 kB / 0.525 GB, free: 1.203 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.4654, allocations: 1.841 MB / 0.5268 GB, free: 15.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4654, allocations: 0 / 0.5268 GB, free: 15.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003265/0.4686, allocations: 0.8459 MB / 0.5276 GB, free: 14.51 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.00364/0.4723, allocations: 3.435 MB / 0.531 GB, free: 11.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005032/0.4773, allocations: 3.489 MB / 0.5344 GB, free: 7.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4773, allocations: 4 kB / 0.5344 GB, free: 7.586 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008736/0.4782, allocations: 0.6802 MB / 0.5351 GB, free: 6.906 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.4797, allocations: 249.9 kB / 0.5353 GB, free: 6.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1866/0.6663, allocations: 34.3 MB / 0.5688 GB, free: 139.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/0.6684, allocations: 2.382 MB / 0.5711 GB, free: 138.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002963/0.6714, allocations: 1.634 MB / 0.5727 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.6724, allocations: 1.221 MB / 0.5739 GB, free: 137.2 MB / 478.1 MB Notification: Performance of SimCode: time 8.02e-07/0.6724, allocations: 0 / 0.5739 GB, free: 137.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06693/0.7394, allocations: 48.08 MB / 0.6209 GB, free: 97.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.24/17.98, allocations: 11.94 kB / 0.6209 GB, free: 97.02 MB / 478.1 MB " [Timeout remaining time 642] (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: 21.01827958202921]