Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS.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.Joints.JointUPS,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS",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.001118/0.001118, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001183/0.001183, allocations: 192 kB / 18.55 MB, free: 4.566 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.358/1.358, allocations: 222.9 MB / 242.3 MB, free: 15.18 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.2496/0.2496, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 57.31 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09558, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS): time 0.008787/0.1044, allocations: 8.131 MB / 477.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004511/0.1089, allocations: 2.592 MB / 480.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009488/0.1099, allocations: 39.94 kB / 480.1 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0024/0.1123, allocations: 1.285 MB / 481.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001013/0.1134, allocations: 449.7 kB / 481.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008692/0.1143, allocations: 411.1 kB / 482.2 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.1153, allocations: 1.056 MB / 483.3 MB, free: 280 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001097/0.1164, allocations: 1.207 MB / 484.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004619/0.1169, allocations: 0.5333 MB / 485 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008218/0.1177, allocations: 0.767 MB / 485.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.1179, allocations: 116 kB / 485.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007359/0.1187, allocations: 0.5849 MB / 486.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000529/0.1192, allocations: 0.713 MB / 487.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006015/0.1198, allocations: 0.8114 MB / 488 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001834/0.1216, allocations: 2.418 MB / 490.4 MB, free: 9.078 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1217, allocations: 0 / 490.4 MB, free: 9.078 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1217, allocations: 0 / 490.4 MB, free: 9.078 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.202e-05/0.1217, allocations: 0 / 490.4 MB, free: 9.078 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 568 * Number of variables: 568 Notification: Performance of Generate backend data structure: time 0.003532/0.1252, allocations: 2.137 MB / 492.6 MB, free: 6.883 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1253, allocations: 8.031 kB / 492.6 MB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00028/0.1256, allocations: 296.6 kB / 492.9 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009496/0.1265, allocations: 278.2 kB / 493.1 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.1276, allocations: 0.8419 MB / 494 MB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.325e-05/0.1277, allocations: 94.69 kB / 494.1 MB, free: 5.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.1279, allocations: 127.8 kB / 494.2 MB, free: 5.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00632/0.1343, allocations: 4.276 MB / 498.5 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.1343, allocations: 7.938 kB / 498.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.1344, allocations: 59.95 kB / 498.6 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009252/0.1354, allocations: 0.7248 MB / 499.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006429/0.1418, allocations: 3.504 MB / 0.491 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1984/0.3402, allocations: 14.3 MB / 0.505 GB, free: 41.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00413/0.3444, allocations: 1.216 MB / 0.5061 GB, free: 41.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008178/0.3452, allocations: 0.7031 MB / 0.5068 GB, free: 41.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004645/0.3499, allocations: 3.69 MB / 0.5104 GB, free: 39.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.3499, allocations: 35.7 kB / 0.5105 GB, free: 39.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.244e-06/0.3499, allocations: 0 / 0.5105 GB, free: 39.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.006189/0.3561, allocations: 1.763 MB / 0.5122 GB, free: 39.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.3562, allocations: 61.31 kB / 0.5123 GB, free: 39.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002338/0.3585, allocations: 1.482 MB / 0.5137 GB, free: 38.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.3586, allocations: 34.17 kB / 0.5137 GB, free: 38.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008673/0.3595, allocations: 1.195 MB / 0.5149 GB, free: 37.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.3596, allocations: 180.5 kB / 0.5151 GB, free: 37.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005023/0.3601, allocations: 432.2 kB / 0.5155 GB, free: 37.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3602, allocations: 352.7 kB / 0.5158 GB, free: 36.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006877/0.3609, allocations: 489 kB / 0.5163 GB, free: 36.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.3621, allocations: 1.894 MB / 0.5181 GB, free: 34.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00257/0.3647, allocations: 2.602 MB / 0.5207 GB, free: 32.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.583e-05/0.3648, allocations: 18.16 kB / 0.5207 GB, free: 32.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=269) (initialization): time 0.00315/0.3679, allocations: 2.27 MB / 0.5229 GB, free: 31.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.426e-05/0.368, allocations: 26.12 kB / 0.5229 GB, free: 31.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-05/0.368, allocations: 50.94 kB / 0.523 GB, free: 31.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.087e-05/0.3681, allocations: 66.59 kB / 0.523 GB, free: 31.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.3693, allocations: 491.7 kB / 0.5235 GB, free: 31.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.982e-05/0.3694, allocations: 97.3 kB / 0.5236 GB, free: 31.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.3708, allocations: 303 kB / 0.5239 GB, free: 31.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.371, allocations: 129.8 kB / 0.524 GB, free: 31.01 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 231 * Number of states: 0 () * Number of discrete variables: 39 (rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 269 * 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.0008807/0.3719, allocations: 0.7735 MB / 0.5248 GB, free: 30.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.372, allocations: 121.5 kB / 0.5249 GB, free: 30.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001878/0.3722, allocations: 141.7 kB / 0.525 GB, free: 30.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3722, allocations: 3.969 kB / 0.525 GB, free: 30.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.3722, allocations: 0 / 0.525 GB, free: 30.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3722, allocations: 3.75 kB / 0.525 GB, free: 30.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003155/0.3754, allocations: 2.891 MB / 0.5279 GB, free: 28.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.3754, allocations: 11.28 kB / 0.5279 GB, free: 28.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.3757, allocations: 104.7 kB / 0.528 GB, free: 28.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.416e-05/0.3757, allocations: 23.31 kB / 0.528 GB, free: 28.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.3758, allocations: 19.34 kB / 0.528 GB, free: 28.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.42e-05/0.3758, allocations: 23.58 kB / 0.528 GB, free: 28.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/0.3758, allocations: 17.77 kB / 0.528 GB, free: 28.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006332/0.3764, allocations: 0.8795 MB / 0.5289 GB, free: 28.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.3766, allocations: 219.5 kB / 0.5291 GB, free: 27.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.3768, allocations: 30.67 kB / 0.5291 GB, free: 27.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003929/0.3772, allocations: 21.88 kB / 0.5292 GB, free: 27.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.163e-05/0.3772, allocations: 77.16 kB / 0.5292 GB, free: 27.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.3773, allocations: 28.06 kB / 0.5293 GB, free: 27.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008989/0.3782, allocations: 0.9198 MB / 0.5302 GB, free: 27.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3782, allocations: 0 / 0.5302 GB, free: 27.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001649/0.3798, allocations: 404.3 kB / 0.5306 GB, free: 27.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (52): * Single equations (assignments): 52 * 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.0008637/0.3807, allocations: 1.451 MB / 0.532 GB, free: 25.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.382, allocations: 1.213 MB / 0.5332 GB, free: 25.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.382, allocations: 0.9375 kB / 0.5332 GB, free: 25.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.3823, allocations: 242.5 kB / 0.5334 GB, free: 24.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009635/0.3832, allocations: 210.1 kB / 0.5336 GB, free: 24.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.3957, allocations: 14.79 MB / 0.548 GB, free: 7.543 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008754/0.3966, allocations: 1.528 MB / 0.5495 GB, free: 5.988 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001231/0.3978, allocations: 0.5755 MB / 0.5501 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005211/0.3984, allocations: 0.6203 MB / 0.5507 GB, free: 4.793 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3984, allocations: 0 / 0.5507 GB, free: 4.793 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04332/0.4417, allocations: 22.48 MB / 0.5726 GB, free: 14.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.038/8.48, allocations: 1.031 kB / 0.5726 GB, free: 14.46 MB / 414.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS/JointUPS.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches