Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR",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.001112/0.001112, allocations: 104.7 kB / 17.63 MB, free: 5.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.001116/0.001116, allocations: 192 kB / 18.56 MB, free: 4.434 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.354/1.354, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2182/0.2182, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001482, allocations: 67.98 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1062, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01195/0.1182, allocations: 10.84 MB / 480.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007824/0.1261, allocations: 3.56 MB / 483.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001354/0.1275, allocations: 63.88 kB / 483.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005652/0.1332, allocations: 3.248 MB / 487.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002354/0.1356, allocations: 0.789 MB / 487.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001946/0.1376, allocations: 0.8264 MB / 488.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002327/0.1399, allocations: 2.067 MB / 490.8 MB, free: 8.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003764/0.1437, allocations: 4.007 MB / 494.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.1453, allocations: 1.278 MB / 496 MB, free: 3.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.1475, allocations: 1.683 MB / 497.7 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005927/0.1481, allocations: 348 kB / 498.1 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.1498, allocations: 1.026 MB / 499.1 MB, free: 400 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00126/0.1511, allocations: 1.528 MB / 0.4889 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.1529, allocations: 1.756 MB / 0.4906 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006077/0.159, allocations: 5.71 MB / 0.4962 GB, free: 7.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.159, allocations: 0 / 0.4962 GB, free: 7.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-05/0.159, allocations: 4 kB / 0.4962 GB, free: 7.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001099/0.1591, allocations: 7.938 kB / 0.4962 GB, free: 7.355 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.01315/0.1723, allocations: 3.877 MB / 0.5 GB, free: 3.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.1724, allocations: 12.03 kB / 0.5 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001482/0.1739, allocations: 0.541 MB / 0.5005 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004175/0.1781, allocations: 0.5818 MB / 0.5011 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004802/0.1829, allocations: 1.797 MB / 0.5028 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.1831, allocations: 213.4 kB / 0.503 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1774/0.3605, allocations: 274 kB / 0.5033 GB, free: 46.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01694/0.3775, allocations: 8.16 MB / 0.5113 GB, free: 44.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.07e-05/0.3776, allocations: 22.66 kB / 0.5113 GB, free: 44.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003383/0.378, allocations: 121.1 kB / 0.5114 GB, free: 44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001794/0.3798, allocations: 1.131 MB / 0.5125 GB, free: 43.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.3945, allocations: 6.946 MB / 0.5193 GB, free: 41.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02586/0.4204, allocations: 24.76 MB / 0.5435 GB, free: 18.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006702/0.4272, allocations: 2.276 MB / 0.5457 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.4283, allocations: 1.081 MB / 0.5468 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006886/0.4352, allocations: 7.109 MB / 0.5537 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.4352, allocations: 39.22 kB / 0.5537 GB, free: 7.473 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 3.096e-06/0.4353, allocations: 0 / 0.5537 GB, free: 7.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=96): time 0.01523/0.4505, allocations: 5.373 MB / 0.559 GB, free: 2.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.4506, allocations: 60.41 kB / 0.559 GB, free: 2.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/0.4529, allocations: 2.408 MB / 0.5614 GB, free: 15.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.08e-05/0.453, allocations: 41.7 kB / 0.5614 GB, free: 15.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.4542, allocations: 2.073 MB / 0.5635 GB, free: 13.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.4545, allocations: 379.2 kB / 0.5638 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007709/0.4553, allocations: 0.7181 MB / 0.5645 GB, free: 12.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.264e-05/0.4554, allocations: 301.1 kB / 0.5648 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.4568, allocations: 1.026 MB / 0.5658 GB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002573/0.4593, allocations: 3.184 MB / 0.5689 GB, free: 6.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004428/0.4638, allocations: 4.569 MB / 0.5734 GB, free: 1.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.112e-05/0.4638, allocations: 24 kB / 0.5734 GB, free: 1.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.005548/0.4694, allocations: 4.106 MB / 0.5774 GB, free: 12.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.086e-05/0.4694, allocations: 43.94 kB / 0.5774 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.283e-05/0.4695, allocations: 76 kB / 0.5775 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.6e-05/0.4696, allocations: 104 kB / 0.5776 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002307/0.4719, allocations: 0.8383 MB / 0.5784 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001024/0.472, allocations: 147.4 kB / 0.5786 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.4738, allocations: 184.1 kB / 0.5788 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.474, allocations: 215.9 kB / 0.579 GB, free: 11.38 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 349 * Number of states: 0 () * Number of discrete variables: 53 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],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],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[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 (452): * Single equations (assignments): 452 * 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.001698/0.4758, allocations: 1.426 MB / 0.5804 GB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.476, allocations: 209.2 kB / 0.5806 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.4781, allocations: 1.41 MB / 0.5819 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.4781, allocations: 12 kB / 0.5819 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4781, allocations: 0 / 0.5819 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.4781, allocations: 3.984 kB / 0.5819 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007036/0.4851, allocations: 5.224 MB / 0.587 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/0.4852, allocations: 19.98 kB / 0.5871 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007605/0.4859, allocations: 215.5 kB / 0.5873 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-05/0.486, allocations: 20 kB / 0.5873 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-05/0.486, allocations: 40 kB / 0.5873 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.652e-05/0.4861, allocations: 31.86 kB / 0.5874 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/0.4861, allocations: 19.94 kB / 0.5874 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.4879, allocations: 1.739 MB / 0.5891 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003821/0.4883, allocations: 294.2 kB / 0.5894 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/0.4885, allocations: 47.98 kB / 0.5894 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000701/0.4892, allocations: 43.92 kB / 0.5894 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.4894, allocations: 120.1 kB / 0.5896 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.814e-05/0.4895, allocations: 44 kB / 0.5896 GB, free: 15.95 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00187/0.4914, allocations: 1.529 MB / 0.5911 GB, free: 14.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4914, allocations: 4 kB / 0.5911 GB, free: 14.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002485/0.4939, allocations: 0.6029 MB / 0.5917 GB, free: 13.8 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 62 * 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 (121): * Single equations (assignments): 121 * 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.002298/0.4962, allocations: 2.37 MB / 0.594 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003728/0.4999, allocations: 2.625 MB / 0.5966 GB, free: 8.625 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.4999, allocations: 4 kB / 0.5966 GB, free: 8.621 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007054/0.5006, allocations: 0.5725 MB / 0.5971 GB, free: 8.055 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.5023, allocations: 358.8 kB / 0.5975 GB, free: 7.719 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0321/0.5344, allocations: 27.83 MB / 0.6246 GB, free: 7.727 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00234/0.5368, allocations: 2.45 MB / 0.627 GB, free: 5.246 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002508/0.5393, allocations: 0.961 MB / 0.628 GB, free: 4.277 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001539/0.5409, allocations: 1.241 MB / 0.6292 GB, free: 3.035 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5409, allocations: 0 / 0.6292 GB, free: 3.035 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07266/0.6135, allocations: 44.47 MB / 0.6726 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.951/9.564, allocations: 18.88 kB / 0.6726 GB, free: 6.789 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches