Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.MultiBody.Parts.Bodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Bodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Bodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Bodies",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.001104/0.001104, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.00112/0.00112, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2019/0.2019, allocations: 44.19 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 58.92 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.108, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Bodies): time 0.01707/0.1251, allocations: 14.68 MB / 484 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009615/0.1348, allocations: 4.664 MB / 488.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002165/0.137, allocations: 99.69 kB / 488.8 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005946/0.1429, allocations: 3.119 MB / 491.9 MB, free: 7.609 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005852/0.1489, allocations: 2.058 MB / 494 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002257/0.1511, allocations: 1.01 MB / 495 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008209/0.1594, allocations: 6.687 MB / 0.4899 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004652/0.1641, allocations: 3.638 MB / 0.4935 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003116/0.1672, allocations: 1.815 MB / 0.4952 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003865/0.1711, allocations: 2.621 MB / 0.4978 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001158/0.1723, allocations: 356 kB / 0.4981 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002212/0.1745, allocations: 0.917 MB / 0.499 GB, free: 4.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002561/0.1771, allocations: 2.268 MB / 0.5012 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2148/0.3919, allocations: 2.39 MB / 0.5036 GB, free: 21.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.4024, allocations: 6.855 MB / 0.5103 GB, free: 20.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.4025, allocations: 0.6875 kB / 0.5103 GB, free: 20.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.4025, allocations: 1.094 kB / 0.5103 GB, free: 20.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002854/0.4028, allocations: 0.5938 kB / 0.5103 GB, free: 20.96 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1021 * Number of variables: 1021 Notification: Performance of Generate backend data structure: time 0.01696/0.4197, allocations: 5.453 MB / 0.5156 GB, free: 18.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.4198, allocations: 9.219 kB / 0.5156 GB, free: 18.87 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001338/0.4211, allocations: 0.5078 MB / 0.5161 GB, free: 18.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1044/0.5255, allocations: 8.199 MB / 0.5241 GB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01234/0.5379, allocations: 5.632 MB / 0.5296 GB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.5381, allocations: 209.7 kB / 0.5298 GB, free: 16.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001023/0.5391, allocations: 288.4 kB / 0.5301 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0108/0.5499, allocations: 6.913 MB / 0.5368 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001234/0.5501, allocations: 60.39 kB / 0.5369 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003033/0.5504, allocations: 123.8 kB / 0.537 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001293/0.5517, allocations: 0.998 MB / 0.538 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009003/0.5607, allocations: 4.926 MB / 0.5428 GB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03582/0.5965, allocations: 27.28 MB / 0.5694 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/0.5992, allocations: 0.7417 MB / 0.5702 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.5996, allocations: 223 kB / 0.5704 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.5997, allocations: 11.03 kB / 0.5704 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.5997, allocations: 46.55 kB / 0.5704 GB, free: 10.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.434e-06/0.5997, allocations: 0 / 0.5704 GB, free: 10.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=37): time 0.007288/0.607, allocations: 1.951 MB / 0.5723 GB, free: 8.676 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.6072, allocations: 242.8 kB / 0.5726 GB, free: 8.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01004/0.6172, allocations: 4.758 MB / 0.5772 GB, free: 3.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.6174, allocations: 33.7 kB / 0.5772 GB, free: 3.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002717/0.6201, allocations: 2.759 MB / 0.5799 GB, free: 0.832 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002979/0.6204, allocations: 192.5 kB / 0.5801 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/0.6219, allocations: 0.7251 MB / 0.5808 GB, free: 15.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.622, allocations: 301.1 kB / 0.5811 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.6236, allocations: 0.7954 MB / 0.5819 GB, free: 14.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003158/0.6267, allocations: 3.415 MB / 0.5852 GB, free: 10.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004601/0.6313, allocations: 4.548 MB / 0.5897 GB, free: 4.648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.787e-05/0.6314, allocations: 28 kB / 0.5897 GB, free: 4.621 MB / 430.1 MB Notification: Performance of matching and sorting (n=449) (initialization): time 0.007858/0.6393, allocations: 4.051 MB / 0.5937 GB, free: 1.121 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.548e-05/0.6394, allocations: 44 kB / 0.5937 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001229/0.6395, allocations: 96 kB / 0.5938 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/0.6397, allocations: 124 kB / 0.5939 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002333/0.642, allocations: 0.853 MB / 0.5947 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001442/0.6422, allocations: 180.5 kB / 0.5949 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004213/0.6464, allocations: 0.5374 MB / 0.5954 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004024/0.6468, allocations: 236 kB / 0.5957 GB, free: 15.18 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 430 * Number of states: 0 () * Number of discrete variables: 54 (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],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],Fixed2.color[3],Fixed2.color[2],Fixed2.color[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],Fixed5.color[3],Fixed5.color[2],Fixed5.color[1],Fixed4.color[3],Fixed4.color[2],Fixed4.color[1],Fixed3.color[3],Fixed3.color[2],Fixed3.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (449): * Single equations (assignments): 449 * Array equations: 0 * 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.002831/0.6497, allocations: 1.628 MB / 0.5973 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008978/0.6506, allocations: 375.2 kB / 0.5976 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009626/0.6515, allocations: 401.2 kB / 0.598 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.6515, allocations: 7.656 kB / 0.598 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.6516, allocations: 3.984 kB / 0.598 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.6516, allocations: 8.688 kB / 0.598 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00928/0.6609, allocations: 4.753 MB / 0.6027 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.871e-05/0.6609, allocations: 16.94 kB / 0.6027 GB, free: 7.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003049/0.6612, allocations: 114.3 kB / 0.6028 GB, free: 7.809 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-05/0.6613, allocations: 16 kB / 0.6028 GB, free: 7.793 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.6613, allocations: 36 kB / 0.6028 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.792e-05/0.6613, allocations: 23.03 kB / 0.6029 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.448e-05/0.6614, allocations: 19.94 kB / 0.6029 GB, free: 7.727 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.6629, allocations: 1.256 MB / 0.6041 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.6642, allocations: 475.9 kB / 0.6045 GB, free: 5.773 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008356/0.665, allocations: 31.98 kB / 0.6046 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.6665, allocations: 35.98 kB / 0.6046 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.6667, allocations: 91.56 kB / 0.6047 GB, free: 5.617 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.149e-05/0.6667, allocations: 32 kB / 0.6047 GB, free: 5.586 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006561/0.6733, allocations: 3.14 MB / 0.6078 GB, free: 2.453 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6733, allocations: 0 / 0.6078 GB, free: 2.453 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00506/0.6784, allocations: 0.826 MB / 0.6086 GB, free: 1.625 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 61 * Number of states: 0 () * 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 (61): * Single equations (assignments): 61 * Array equations: 0 * 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.002329/0.6807, allocations: 1.827 MB / 0.6104 GB, free: 15.58 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.6842, allocations: 1.937 MB / 0.6123 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.6843, allocations: 0 / 0.6123 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.6846, allocations: 264.3 kB / 0.6125 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004971/0.6896, allocations: 0.6689 MB / 0.6132 GB, free: 12.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0692/0.7588, allocations: 42.86 MB / 0.655 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004472/0.7634, allocations: 2.85 MB / 0.6578 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003286/0.7667, allocations: 1.15 MB / 0.6589 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002379/0.7691, allocations: 1.702 MB / 0.6606 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of SimCode: time 1.203e-06/0.7691, allocations: 0 / 0.6606 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2939/1.063, allocations: 67.8 MB / 0.7268 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.411/10.47, allocations: 15.09 kB / 0.7268 GB, free: 179.8 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Bodies_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Bodies.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Bodies/Bodies.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches