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.000792/0.000792, allocations: 94.17 kB / 17.35 MB, free: 6.344 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.0009993/0.0009994, allocations: 172.1 kB / 18.25 MB, free: 5.504 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.267/1.267, allocations: 223.2 MB / 242.3 MB, free: 14.47 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.2048/0.2048, allocations: 44.25 MB / 337.7 MB, free: 2.426 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003174, allocations: 9.188 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1162, allocations: 61.92 MB / 472.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Bodies): time 0.3181/0.4343, allocations: 68.89 MB / 0.5285 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03136/0.4657, allocations: 13.89 MB / 0.5421 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01522/0.481, allocations: 310.1 kB / 0.5424 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001501/0.4825, allocations: 361.5 kB / 0.5428 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005/0.4875, allocations: 1.948 MB / 0.5447 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002015/0.4896, allocations: 0.9418 MB / 0.5456 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008575/0.4982, allocations: 9.129 MB / 0.5545 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006261/0.5045, allocations: 4.895 MB / 0.5593 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002558/0.507, allocations: 1.393 MB / 0.5606 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003384/0.5105, allocations: 2.526 MB / 0.5631 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004771/0.5109, allocations: 140 kB / 0.5632 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.5125, allocations: 0.7481 MB / 0.564 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.5144, allocations: 2.036 MB / 0.5659 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002218/0.5166, allocations: 2.089 MB / 0.568 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006346/0.523, allocations: 6.552 MB / 0.5744 GB, free: 11.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.523, allocations: 0 / 0.5744 GB, free: 11.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.523, allocations: 0 / 0.5744 GB, free: 11.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001875/0.5232, allocations: 0 / 0.5744 GB, free: 11.73 MB / 414.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.01098/0.5342, allocations: 4.589 MB / 0.5789 GB, free: 7.098 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.5342, allocations: 8.031 kB / 0.5789 GB, free: 7.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001488/0.5357, allocations: 0.5125 MB / 0.5794 GB, free: 6.586 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.107/0.6427, allocations: 8.39 MB / 0.5876 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/0.6551, allocations: 5.62 MB / 0.5931 GB, free: 8.605 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/0.6554, allocations: 208.4 kB / 0.5933 GB, free: 8.418 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009775/0.6564, allocations: 295.7 kB / 0.5935 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.6706, allocations: 6.957 MB / 0.6003 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002203/0.6709, allocations: 59.45 kB / 0.6004 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005946/0.6715, allocations: 127.9 kB / 0.6005 GB, free: 448 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001569/0.673, allocations: 0.9939 MB / 0.6015 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.6834, allocations: 4.986 MB / 0.6064 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03234/0.7157, allocations: 27.27 MB / 0.633 GB, free: 14.42 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/0.7182, allocations: 0.7426 MB / 0.6337 GB, free: 13.63 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003192/0.7185, allocations: 220.2 kB / 0.6339 GB, free: 13.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.7186, allocations: 8.297 kB / 0.6339 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.7186, allocations: 46.5 kB / 0.634 GB, free: 13.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=37): time 1.873e-06/0.7186, allocations: 0 / 0.634 GB, free: 13.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=37): time 0.006666/0.7253, allocations: 1.949 MB / 0.6359 GB, free: 11.38 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.7254, allocations: 239.3 kB / 0.6361 GB, free: 11.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007713/0.7332, allocations: 4.769 MB / 0.6408 GB, free: 6.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.492e-05/0.7333, allocations: 29.7 kB / 0.6408 GB, free: 6.285 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.7355, allocations: 2.75 MB / 0.6435 GB, free: 3.504 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.7358, allocations: 202 kB / 0.6437 GB, free: 3.305 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004301/0.7363, allocations: 313.1 kB / 0.644 GB, free: 2.992 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.7364, allocations: 305.1 kB / 0.6443 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.7377, allocations: 0.7954 MB / 0.645 GB, free: 1.895 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002703/0.7404, allocations: 3.414 MB / 0.6484 GB, free: 13.15 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004313/0.7447, allocations: 4.55 MB / 0.6528 GB, free: 7.277 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.517e-05/0.7448, allocations: 31.94 kB / 0.6528 GB, free: 7.246 MB / 494.1 MB Notification: Performance of matching and sorting (n=449) (initialization): time 0.006429/0.7513, allocations: 4.042 MB / 0.6568 GB, free: 3.195 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.053e-05/0.7513, allocations: 55.92 kB / 0.6568 GB, free: 3.141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-05/0.7514, allocations: 92.16 kB / 0.6569 GB, free: 3.051 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000103/0.7515, allocations: 124 kB / 0.657 GB, free: 2.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/0.7537, allocations: 0.8505 MB / 0.6579 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001269/0.7538, allocations: 191.3 kB / 0.6581 GB, free: 1.891 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002972/0.7568, allocations: 0.5413 MB / 0.6586 GB, free: 1.344 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/0.757, allocations: 232 kB / 0.6588 GB, free: 1.117 MB / 494.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.002106/0.7591, allocations: 1.621 MB / 0.6604 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006802/0.7598, allocations: 383.1 kB / 0.6608 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007169/0.7605, allocations: 405.2 kB / 0.6611 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.7606, allocations: 4 kB / 0.6612 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.7606, allocations: 0 / 0.6612 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.7606, allocations: 4 kB / 0.6612 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006667/0.7673, allocations: 4.76 MB / 0.6658 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/0.7673, allocations: 16 kB / 0.6658 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.7676, allocations: 111.8 kB / 0.6659 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/0.7676, allocations: 16 kB / 0.6659 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.7676, allocations: 28 kB / 0.666 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.151e-05/0.7677, allocations: 27.86 kB / 0.666 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/0.7677, allocations: 19.94 kB / 0.666 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.7689, allocations: 1.243 MB / 0.6672 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007871/0.7697, allocations: 491.9 kB / 0.6677 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004298/0.7702, allocations: 28 kB / 0.6677 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009467/0.7711, allocations: 40.16 kB / 0.6678 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.779e-05/0.7712, allocations: 83.58 kB / 0.6678 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.7712, allocations: 40 kB / 0.6679 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004038/0.7753, allocations: 3.14 MB / 0.6709 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7753, allocations: 0 / 0.6709 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003218/0.7785, allocations: 0.8338 MB / 0.6718 GB, free: 3.336 MB / 0.4981 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.001685/0.7802, allocations: 1.829 MB / 0.6735 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003132/0.7834, allocations: 1.9 MB / 0.6754 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.7834, allocations: 4.25 kB / 0.6754 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003186/0.7837, allocations: 263 kB / 0.6757 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01151/0.7952, allocations: 0.6268 MB / 0.6763 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.258/1.053, allocations: 44.16 MB / 0.7194 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003263/1.057, allocations: 2.852 MB / 0.7222 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003003/1.06, allocations: 1.16 MB / 0.7233 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001622/1.061, allocations: 1.702 MB / 0.725 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/1.061, allocations: 0 / 0.725 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08362/1.145, allocations: 65.87 MB / 0.7893 GB, free: 119 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/1.145, allocations: 184.7 kB / 0.7895 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.382/4.527, allocations: 0 / 0.7895 GB, free: 118.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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Bodies.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches