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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 106.5 kB / 17.73 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 191 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 51.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1291, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.296/0.4252, allocations: 7.955 MB / 382.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006088/0.4314, allocations: 2.552 MB / 385.2 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/0.4327, allocations: 40.06 kB / 385.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002984/0.4357, allocations: 1.425 MB / 386.6 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.4389, allocations: 0.9804 MB / 387.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008942/0.4398, allocations: 273 kB / 387.9 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004588/0.4444, allocations: 2.187 MB / 390.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002273/0.4467, allocations: 1.553 MB / 391.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.4483, allocations: 0.8434 MB / 392.5 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/0.4508, allocations: 1.184 MB / 393.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008003/0.4516, allocations: 159.6 kB / 393.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002348/0.454, allocations: 0.6462 MB / 394.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002058/0.4561, allocations: 1.165 MB / 395.6 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001767/0.4579, allocations: 1.376 MB / 397 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007249/0.4651, allocations: 4.31 MB / 401.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.4652, allocations: 1.406 kB / 401.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.4652, allocations: 0 / 401.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.792e-05/0.4653, allocations: 3.938 kB / 401.3 MB, free: 0.5781 MB / 318.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.006247/0.4715, allocations: 2.955 MB / 404.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.4716, allocations: 18.2 kB / 404.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007729/0.4724, allocations: 0.5237 MB / 404.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007243/0.4796, allocations: 1.771 MB / 406.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003545/0.4832, allocations: 1.165 MB / 407.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.4834, allocations: 149.9 kB / 407.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005055/0.4839, allocations: 209.8 kB / 408.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/0.5064, allocations: 8.594 MB / 416.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001978/0.5066, allocations: 39.66 kB / 416.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008768/0.5075, allocations: 107.8 kB / 416.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003358/0.5109, allocations: 1.663 MB / 418.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02015/0.5311, allocations: 7.179 MB / 425.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05048/0.5816, allocations: 30.1 MB / 455.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02308/0.6048, allocations: 5.029 MB / 460.8 MB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002001/0.6068, allocations: 1.248 MB / 462 MB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007728/0.6146, allocations: 3.738 MB / 465.8 MB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.343e-05/0.6147, allocations: 62.75 kB / 465.8 MB, free: 2.672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.198e-06/0.6147, allocations: 0 / 465.8 MB, free: 2.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04583/0.6605, allocations: 9.255 MB / 475.1 MB, free: 9.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.6607, allocations: 203.8 kB / 475.3 MB, free: 9.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00777/0.6685, allocations: 3.043 MB / 478.3 MB, free: 6.023 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002231/0.6688, allocations: 37.7 kB / 478.4 MB, free: 5.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002496/0.6713, allocations: 2.418 MB / 480.8 MB, free: 3.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008736/0.6722, allocations: 0.494 MB / 481.3 MB, free: 3.023 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002558/0.6747, allocations: 1.087 MB / 482.4 MB, free: 1.926 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.6749, allocations: 305.1 kB / 482.7 MB, free: 1.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002716/0.6776, allocations: 1.603 MB / 484.3 MB, free: 16 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005793/0.6834, allocations: 5.169 MB / 489.4 MB, free: 9.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009546/0.693, allocations: 7.328 MB / 496.8 MB, free: 15.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001586/0.6932, allocations: 36 kB / 496.8 MB, free: 15.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0131/0.7063, allocations: 6.431 MB / 0.4914 GB, free: 9.457 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.7065, allocations: 63.98 kB / 0.4915 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002183/0.7067, allocations: 128 kB / 0.4916 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001892/0.7069, allocations: 168 kB / 0.4918 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005018/0.7119, allocations: 1.458 MB / 0.4932 GB, free: 7.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002044/0.7122, allocations: 255 kB / 0.4935 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00436/0.7165, allocations: 0.7421 MB / 0.4942 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008172/0.7174, allocations: 340 kB / 0.4945 GB, free: 6.312 MB / 430.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.003133/0.7205, allocations: 1.583 MB / 0.496 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006783/0.7212, allocations: 248.8 kB / 0.4963 GB, free: 4.469 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001625/0.7228, allocations: 0.8249 MB / 0.4971 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.523e-05/0.7229, allocations: 15.98 kB / 0.4971 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/0.7229, allocations: 3.938 kB / 0.4971 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.7229, allocations: 7.984 kB / 0.4971 GB, free: 3.605 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007783/0.7307, allocations: 3.396 MB / 0.5004 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.7308, allocations: 7.938 kB / 0.5004 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002287/0.733, allocations: 403.5 kB / 0.5008 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.759e-05/0.7331, allocations: 4 kB / 0.5008 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/0.7332, allocations: 39.97 kB / 0.5009 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-05/0.7332, allocations: 4 kB / 0.5009 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.7332, allocations: 1.562 kB / 0.5009 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003338/0.7366, allocations: 2.781 MB / 0.5036 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007995/0.7374, allocations: 310 kB / 0.5039 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005336/0.7379, allocations: 31.97 kB / 0.5039 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.7391, allocations: 39.95 kB / 0.504 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.7393, allocations: 59.8 kB / 0.504 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.559e-05/0.7394, allocations: 43.92 kB / 0.5041 GB, free: 12.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003453/0.7428, allocations: 1.841 MB / 0.5058 GB, free: 10.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7429, allocations: 0 / 0.5058 GB, free: 10.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004849/0.7477, allocations: 0.8338 MB / 0.5067 GB, free: 9.715 MB / 446.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.00388/0.7516, allocations: 3.425 MB / 0.51 GB, free: 6.258 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005697/0.7573, allocations: 3.608 MB / 0.5135 GB, free: 2.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.7574, allocations: 4 kB / 0.5135 GB, free: 2.676 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009168/0.7583, allocations: 0.7155 MB / 0.5142 GB, free: 1.961 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002317/0.7606, allocations: 257.5 kB / 0.5145 GB, free: 1.711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05407/0.8147, allocations: 34.17 MB / 0.5479 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003185/0.8179, allocations: 2.394 MB / 0.5502 GB, free: 7.742 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004014/0.822, allocations: 1.629 MB / 0.5518 GB, free: 6.105 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001942/0.8239, allocations: 1.218 MB / 0.553 GB, free: 4.887 MB / 494.1 MB Notification: Performance of SimCode: time 1.583e-06/0.824, allocations: 0 / 0.553 GB, free: 4.887 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.311/4.135, allocations: 44.01 MB / 0.5959 GB, free: 152 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/20.44, allocations: 4.062 kB / 0.5959 GB, free: 152 MB / 494.1 MB (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 --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) 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) Reference file matches