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.001446/0.001446, allocations: 118.4 kB / 17.78 MB, free: 5.254 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.001803/0.001803, allocations: 179.8 kB / 18.71 MB, free: 4.336 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.286/1.286, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.1941/0.1941, allocations: 44.17 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3072, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Bodies): time 0.01401/0.3212, allocations: 14.68 MB / 0.5327 GB, free: 8.777 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.3317, allocations: 4.666 MB / 0.5373 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002859/0.3346, allocations: 99.44 kB / 0.5374 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005919/0.3405, allocations: 3.114 MB / 0.5404 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00547/0.3461, allocations: 2.104 MB / 0.5425 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00212/0.3482, allocations: 1.016 MB / 0.5435 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008612/0.3568, allocations: 6.68 MB / 0.55 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00407/0.361, allocations: 3.63 MB / 0.5536 GB, free: 7.996 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002864/0.3638, allocations: 1.83 MB / 0.5553 GB, free: 6.16 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003433/0.3673, allocations: 2.633 MB / 0.5579 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000816/0.3681, allocations: 356 kB / 0.5583 GB, free: 3.172 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.3699, allocations: 0.917 MB / 0.5591 GB, free: 2.254 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.3721, allocations: 2.303 MB / 0.5614 GB, free: 15.94 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00276/0.3749, allocations: 2.39 MB / 0.5637 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007211/0.3821, allocations: 6.989 MB / 0.5706 GB, free: 6.531 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3821, allocations: 0 / 0.5706 GB, free: 6.531 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3821, allocations: 0 / 0.5706 GB, free: 6.531 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001716/0.3823, allocations: 0 / 0.5706 GB, free: 6.531 MB / 430.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.01294/0.3953, allocations: 5.443 MB / 0.5759 GB, free: 1.016 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.3953, allocations: 8.031 kB / 0.5759 GB, free: 1.008 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009479/0.3963, allocations: 0.512 MB / 0.5764 GB, free: 500 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08446/0.4808, allocations: 8.2 MB / 0.5844 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01087/0.4917, allocations: 5.722 MB / 0.59 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001788/0.4919, allocations: 209.6 kB / 0.5902 GB, free: 2.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007806/0.4927, allocations: 299.6 kB / 0.5905 GB, free: 1.977 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01157/0.5043, allocations: 6.914 MB / 0.5972 GB, free: 10.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001705/0.5045, allocations: 55.55 kB / 0.5973 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003745/0.5049, allocations: 127.9 kB / 0.5974 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001474/0.5063, allocations: 0.9939 MB / 0.5984 GB, free: 9.328 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.5165, allocations: 4.939 MB / 0.6032 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03129/0.5478, allocations: 27.25 MB / 0.6298 GB, free: 8.383 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.5502, allocations: 0.7349 MB / 0.6305 GB, free: 7.602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.5505, allocations: 216.3 kB / 0.6307 GB, free: 7.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.5506, allocations: 12.14 kB / 0.6307 GB, free: 7.363 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.5506, allocations: 46.5 kB / 0.6308 GB, free: 7.309 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.335e-06/0.5506, allocations: 0 / 0.6308 GB, free: 7.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.00641/0.557, allocations: 1.941 MB / 0.6327 GB, free: 5.355 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.5572, allocations: 243.3 kB / 0.6329 GB, free: 5.062 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006329/0.5635, allocations: 4.765 MB / 0.6376 GB, free: 304 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.159e-05/0.5636, allocations: 38.08 kB / 0.6376 GB, free: 260 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001991/0.5656, allocations: 2.758 MB / 0.6403 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.5658, allocations: 190.1 kB / 0.6405 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007548/0.5665, allocations: 0.7179 MB / 0.6412 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.735e-05/0.5666, allocations: 305.1 kB / 0.6415 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.5678, allocations: 0.7954 MB / 0.6422 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002661/0.5705, allocations: 3.418 MB / 0.6456 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004273/0.5747, allocations: 4.55 MB / 0.65 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.663e-05/0.5748, allocations: 24 kB / 0.65 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of matching and sorting (n=449) (initialization): time 0.006659/0.5815, allocations: 4.054 MB / 0.654 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.949e-05/0.5816, allocations: 44 kB / 0.654 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/0.5817, allocations: 96 kB / 0.6541 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000123/0.5818, allocations: 120 kB / 0.6542 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.5841, allocations: 0.8584 MB / 0.6551 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001385/0.5843, allocations: 183.3 kB / 0.6553 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003283/0.5876, allocations: 0.5413 MB / 0.6558 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003122/0.5879, allocations: 232 kB / 0.656 GB, free: 10.68 MB / 0.5137 GB 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.0027/0.5906, allocations: 1.617 MB / 0.6576 GB, free: 9.051 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008069/0.5914, allocations: 383.2 kB / 0.658 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006572/0.5921, allocations: 401.2 kB / 0.6583 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.5921, allocations: 4 kB / 0.6583 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.5921, allocations: 4 kB / 0.6583 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.5921, allocations: 3.984 kB / 0.6583 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006566/0.5987, allocations: 4.761 MB / 0.663 GB, free: 3.242 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.5987, allocations: 12 kB / 0.663 GB, free: 3.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002979/0.599, allocations: 115.8 kB / 0.6631 GB, free: 3.117 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.721e-05/0.5991, allocations: 16 kB / 0.6631 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.5991, allocations: 28 kB / 0.6632 GB, free: 3.074 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.825e-05/0.5991, allocations: 27.86 kB / 0.6632 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/0.5992, allocations: 19.94 kB / 0.6632 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.6005, allocations: 1.243 MB / 0.6644 GB, free: 1.566 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008314/0.6014, allocations: 480.2 kB / 0.6649 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003383/0.6017, allocations: 35.98 kB / 0.6649 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008973/0.6026, allocations: 35.97 kB / 0.6649 GB, free: 1.004 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.297e-05/0.6027, allocations: 87.58 kB / 0.665 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/0.6028, allocations: 32 kB / 0.6651 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0043/0.6071, allocations: 3.137 MB / 0.6681 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6071, allocations: 0 / 0.6681 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003306/0.6104, allocations: 0.8376 MB / 0.6689 GB, free: 12.92 MB / 0.5294 GB 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.001648/0.6121, allocations: 1.825 MB / 0.6707 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002884/0.615, allocations: 1.93 MB / 0.6726 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/0.615, allocations: 4.938 kB / 0.6726 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.6153, allocations: 267 kB / 0.6729 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003042/0.6184, allocations: 0.6641 MB / 0.6735 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04565/0.664, allocations: 34.59 MB / 0.7073 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003992/0.6681, allocations: 2.854 MB / 0.7101 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002931/0.671, allocations: 1.154 MB / 0.7112 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002291/0.6734, allocations: 1.698 MB / 0.7129 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/0.6734, allocations: 0 / 0.7129 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3098/0.9832, allocations: 66.33 MB / 0.7776 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.39/17.38, allocations: 12.7 kB / 0.7777 GB, free: 150.4 MB / 0.5762 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