Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape.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.BodyShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.BodyShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002062/0.002062, allocations: 199.8 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3363, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.BodyShape): time 0.01143/0.3478, allocations: 10.95 MB / 0.5412 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008673/0.3565, allocations: 4.093 MB / 0.5452 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002313/0.3588, allocations: 66.41 kB / 0.5452 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005771/0.3647, allocations: 2.563 MB / 0.5478 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00546/0.3702, allocations: 1.776 MB / 0.5495 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.372, allocations: 0.7291 MB / 0.5502 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005365/0.3773, allocations: 4.226 MB / 0.5543 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003523/0.3809, allocations: 3.332 MB / 0.5576 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002282/0.3832, allocations: 1.483 MB / 0.559 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.3859, allocations: 1.951 MB / 0.5609 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.3869, allocations: 312 kB / 0.5612 GB, free: 2.211 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.39, allocations: 1.229 MB / 0.5624 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002129/0.3921, allocations: 1.89 MB / 0.5643 GB, free: 15.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003126/0.3952, allocations: 2.14 MB / 0.5664 GB, free: 12.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007116/0.4024, allocations: 6.77 MB / 0.573 GB, free: 6.141 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4024, allocations: 0 / 0.573 GB, free: 6.141 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4024, allocations: 3.938 kB / 0.573 GB, free: 6.137 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001611/0.4026, allocations: 0 / 0.573 GB, free: 6.137 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: 1449 * Number of variables: 1449 Notification: Performance of Generate backend data structure: time 0.008277/0.4109, allocations: 4.63 MB / 0.5775 GB, free: 1.441 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.4109, allocations: 12.03 kB / 0.5775 GB, free: 1.43 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008171/0.4118, allocations: 0.6907 MB / 0.5782 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006695/0.4185, allocations: 1.976 MB / 0.5801 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005386/0.4239, allocations: 2.799 MB / 0.5829 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.4241, allocations: 238 kB / 0.5831 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009853/0.4251, allocations: 403.5 kB / 0.5835 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01548/0.4406, allocations: 9.71 MB / 0.5929 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.4407, allocations: 47.53 kB / 0.593 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003807/0.4411, allocations: 151.8 kB / 0.5931 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002409/0.4435, allocations: 1.751 MB / 0.5948 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.4582, allocations: 8.18 MB / 0.6028 GB, free: 6.711 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04386/0.5021, allocations: 38.27 MB / 0.6402 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009015/0.5111, allocations: 3.751 MB / 0.6439 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001976/0.5131, allocations: 1.571 MB / 0.6454 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.5234, allocations: 7.788 MB / 0.653 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.5235, allocations: 51.55 kB / 0.6531 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=144): time 5.18e-06/0.5236, allocations: 4 kB / 0.6531 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.03528/0.5588, allocations: 14.25 MB / 0.667 GB, free: 3.066 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001325/0.5602, allocations: 1.681 MB / 0.6686 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004879/0.5651, allocations: 3.827 MB / 0.6724 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000292/0.5654, allocations: 49.61 kB / 0.6724 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001988/0.5674, allocations: 3.035 MB / 0.6754 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007535/0.5682, allocations: 0.6443 MB / 0.676 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/0.5696, allocations: 1.198 MB / 0.6772 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.212e-05/0.5697, allocations: 305.1 kB / 0.6775 GB, free: 8.098 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/0.5724, allocations: 1.999 MB / 0.6794 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005376/0.5777, allocations: 5.69 MB / 0.685 GB, free: 14.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009139/0.5869, allocations: 8.3 MB / 0.6931 GB, free: 4.406 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-05/0.587, allocations: 36 kB / 0.6931 GB, free: 4.371 MB / 0.545 GB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01544/0.6025, allocations: 8.273 MB / 0.7012 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.904e-05/0.6026, allocations: 71.98 kB / 0.7013 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004964/0.6076, allocations: 2.574 MB / 0.7038 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003608/0.6112, allocations: 1.17 MB / 0.7049 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004112/0.6153, allocations: 1.357 MB / 0.7062 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005249/0.6206, allocations: 4.942 MB / 0.7111 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004277/0.6249, allocations: 403.3 kB / 0.7114 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008898/0.6258, allocations: 364 kB / 0.7118 GB, free: 0.9062 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 41 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (734): * Single equations (assignments): 725 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003667/0.6295, allocations: 2.016 MB / 0.7138 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007255/0.6302, allocations: 331.7 kB / 0.7141 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.6313, allocations: 441.3 kB / 0.7145 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005022/0.6363, allocations: 2.515 MB / 0.717 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.622e-05/0.6364, allocations: 0 / 0.717 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.6364, allocations: 7.984 kB / 0.717 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01863/0.655, allocations: 9.265 MB / 0.726 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/0.6551, allocations: 4 kB / 0.726 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.6562, allocations: 259.6 kB / 0.7263 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003117/0.6594, allocations: 1.065 MB / 0.7273 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/0.6596, allocations: 51.91 kB / 0.7273 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2707/0.9303, allocations: 5.101 MB / 0.7323 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000825/0.9311, allocations: 1.554 MB / 0.7338 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008497/0.9397, allocations: 5.364 MB / 0.7391 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009242/0.9406, allocations: 383.4 kB / 0.7395 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003596/0.941, allocations: 41.59 kB / 0.7395 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.9422, allocations: 133.7 kB / 0.7396 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.9425, allocations: 108.6 kB / 0.7397 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.9426, allocations: 55.08 kB / 0.7398 GB, free: 171 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003553/0.9462, allocations: 2.364 MB / 0.7421 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.12e-07/0.9462, allocations: 0 / 0.7421 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004336/0.9505, allocations: 0.9712 MB / 0.743 GB, free: 170.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (126): * Single equations (assignments): 119 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007609/0.9581, allocations: 5.899 MB / 0.7488 GB, free: 167.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007369/0.9656, allocations: 5.413 MB / 0.7541 GB, free: 165.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.9656, allocations: 2.953 kB / 0.7541 GB, free: 165.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003018/0.9686, allocations: 2.086 MB / 0.7561 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002438/0.9711, allocations: 469.8 kB / 0.7566 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04889/1.02, allocations: 44.39 MB / 0.7999 GB, free: 115.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002529/1.023, allocations: 3.134 MB / 0.803 GB, free: 111.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003484/1.026, allocations: 1.854 MB / 0.8048 GB, free: 110 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/1.028, allocations: 1.78 MB / 0.8065 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of SimCode: time 9.72e-07/1.028, allocations: 4 kB / 0.8065 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09724/1.125, allocations: 66.73 MB / 0.8717 GB, free: 41.86 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.35/22.47, allocations: 3.625 kB / 0.8717 GB, free: 41.86 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_BodyShape_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_BodyShape.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/BodyShape/BodyShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.BodyShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches