Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Bodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Bodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Bodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Bodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001603/0.001603, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2133/0.2133, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 78.94 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1108, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Bodies): time 0.01471/0.1256, allocations: 14.64 MB / 494.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009121/0.1347, allocations: 4.664 MB / 499.4 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002766/0.1376, allocations: 99.69 kB / 499.5 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005612/0.1432, allocations: 3.107 MB / 0.4909 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004575/0.1478, allocations: 2.023 MB / 0.4928 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001943/0.1498, allocations: 1.014 MB / 0.4938 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00853/0.1584, allocations: 6.953 MB / 0.5006 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004985/0.1634, allocations: 3.641 MB / 0.5042 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2158/0.3792, allocations: 1.8 MB / 0.5059 GB, free: 17.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004576/0.3838, allocations: 2.617 MB / 0.5085 GB, free: 17.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001561/0.3854, allocations: 357.3 kB / 0.5088 GB, free: 17.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003035/0.3884, allocations: 0.8911 MB / 0.5097 GB, free: 17.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003745/0.3922, allocations: 2.262 MB / 0.5119 GB, free: 16.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006142/0.3984, allocations: 2.384 MB / 0.5142 GB, free: 16.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.41, allocations: 6.818 MB / 0.5209 GB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4101, allocations: 1.812 kB / 0.5209 GB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4101, allocations: 0.6562 kB / 0.5209 GB, free: 15.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002765/0.4104, allocations: 0 / 0.5209 GB, free: 15.1 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.01779/0.4282, allocations: 5.431 MB / 0.5262 GB, free: 12.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.4282, allocations: 9 kB / 0.5262 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001815/0.4301, allocations: 0.5129 MB / 0.5267 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1008/0.5309, allocations: 8.2 MB / 0.5347 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.5425, allocations: 5.088 MB / 0.5397 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.5428, allocations: 210.6 kB / 0.5399 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00154/0.5443, allocations: 287.7 kB / 0.5402 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01373/0.558, allocations: 6.92 MB / 0.5469 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002016/0.5583, allocations: 51.75 kB / 0.547 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004329/0.5587, allocations: 130.6 kB / 0.5471 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00161/0.5604, allocations: 0.9976 MB / 0.5481 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01201/0.5724, allocations: 4.934 MB / 0.5529 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03983/0.6123, allocations: 27.29 MB / 0.5795 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/0.6149, allocations: 0.7442 MB / 0.5803 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/0.6153, allocations: 216.3 kB / 0.5805 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.6153, allocations: 11.12 kB / 0.5805 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.6154, allocations: 49.22 kB / 0.5805 GB, free: 12.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 3.026e-06/0.6154, allocations: 0 / 0.5805 GB, free: 12.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.007183/0.6226, allocations: 1.949 MB / 0.5824 GB, free: 10.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.6227, allocations: 242 kB / 0.5827 GB, free: 9.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01145/0.6342, allocations: 4.757 MB / 0.5873 GB, free: 5.172 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.6344, allocations: 33.7 kB / 0.5873 GB, free: 5.133 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003187/0.6376, allocations: 2.75 MB / 0.59 GB, free: 2.383 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000329/0.6379, allocations: 193 kB / 0.5902 GB, free: 2.195 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001461/0.6394, allocations: 0.7217 MB / 0.5909 GB, free: 1.465 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.6395, allocations: 301.1 kB / 0.5912 GB, free: 1.168 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.6413, allocations: 0.7915 MB / 0.592 GB, free: 384 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003731/0.645, allocations: 3.422 MB / 0.5953 GB, free: 11.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006206/0.6512, allocations: 4.539 MB / 0.5997 GB, free: 6.199 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001284/0.6514, allocations: 28 kB / 0.5998 GB, free: 6.172 MB / 446.1 MB Notification: Performance of matching and sorting (n=449) (initialization): time 0.009798/0.6612, allocations: 4.058 MB / 0.6037 GB, free: 2.668 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.6614, allocations: 44 kB / 0.6038 GB, free: 2.625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001901/0.6616, allocations: 92 kB / 0.6039 GB, free: 2.535 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.6618, allocations: 124 kB / 0.604 GB, free: 2.414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/0.6643, allocations: 0.8584 MB / 0.6048 GB, free: 1.637 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001419/0.6645, allocations: 178.5 kB / 0.605 GB, free: 1.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004169/0.6686, allocations: 0.5336 MB / 0.6055 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004686/0.6691, allocations: 235.9 kB / 0.6057 GB, free: 0.6992 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.003408/0.6726, allocations: 1.622 MB / 0.6073 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/0.6736, allocations: 379.1 kB / 0.6077 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.6749, allocations: 397.1 kB / 0.6081 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.6749, allocations: 12 kB / 0.6081 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.6749, allocations: 0 / 0.6081 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.6749, allocations: 8.016 kB / 0.6081 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.686, allocations: 4.757 MB / 0.6127 GB, free: 9.266 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.859e-05/0.686, allocations: 15.84 kB / 0.6127 GB, free: 9.254 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.6864, allocations: 123.7 kB / 0.6129 GB, free: 9.133 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.237e-05/0.6864, allocations: 16 kB / 0.6129 GB, free: 9.117 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.334e-05/0.6865, allocations: 28 kB / 0.6129 GB, free: 9.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.342e-05/0.6865, allocations: 31.86 kB / 0.6129 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.444e-05/0.6865, allocations: 15.94 kB / 0.6129 GB, free: 9.043 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.6888, allocations: 1.239 MB / 0.6141 GB, free: 7.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001797/0.6906, allocations: 480 kB / 0.6146 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001112/0.6917, allocations: 31.98 kB / 0.6146 GB, free: 7.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.6934, allocations: 35.97 kB / 0.6147 GB, free: 7.031 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.6935, allocations: 83.58 kB / 0.6148 GB, free: 6.949 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.531e-05/0.6936, allocations: 32 kB / 0.6148 GB, free: 6.918 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006878/0.7005, allocations: 3.14 MB / 0.6178 GB, free: 3.785 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7005, allocations: 0 / 0.6178 GB, free: 3.785 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004629/0.7051, allocations: 0.8259 MB / 0.6187 GB, free: 2.957 MB / 462.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.002263/0.7074, allocations: 1.83 MB / 0.6204 GB, free: 0.918 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00337/0.7108, allocations: 1.939 MB / 0.6223 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.7108, allocations: 0 / 0.6223 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000344/0.7112, allocations: 263.3 kB / 0.6226 GB, free: 14.74 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004341/0.7155, allocations: 0.6713 MB / 0.6232 GB, free: 14.08 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07263/0.7882, allocations: 42.78 MB / 0.665 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004292/0.7925, allocations: 2.846 MB / 0.6678 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003488/0.796, allocations: 1.162 MB / 0.6689 GB, free: 8.355 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002384/0.7984, allocations: 1.694 MB / 0.6706 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of SimCode: time 7.62e-07/0.7984, allocations: 4 kB / 0.6706 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3191/1.118, allocations: 67.72 MB / 0.7367 GB, free: 189 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.641/10.76, allocations: 6.047 kB / 0.7367 GB, free: 189 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Bodies.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Bodies_res.csv","/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_trunk_ModelicaTest.MultiBody.Parts.Bodies.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches