Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_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.00141/0.00141, allocations: 106.3 kB / 16.27 MB, free: 5.977 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.001333/0.001334, allocations: 195.4 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1929/0.1929, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 63.73 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08945/0.09118, allocations: 57.79 MB / 440.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01185/0.1031, allocations: 12.63 MB / 453.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006991/0.1101, allocations: 3.713 MB / 457 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.1116, allocations: 67.88 kB / 457 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005847/0.1176, allocations: 3.31 MB / 460.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002397/0.12, allocations: 0.9405 MB / 461.3 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001991/0.122, allocations: 0.8109 MB / 462.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003081/0.1251, allocations: 2.396 MB / 464.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00491/0.13, allocations: 4.164 MB / 468.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002174/0.1322, allocations: 1.394 MB / 470 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002716/0.135, allocations: 1.811 MB / 471.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009983/0.136, allocations: 368 kB / 472.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002237/0.1382, allocations: 1.007 MB / 473.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001939/0.1402, allocations: 1.691 MB / 474.9 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002763/0.143, allocations: 1.974 MB / 476.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006481/0.1495, allocations: 6.235 MB / 483.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1495, allocations: 3.938 kB / 483.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1495, allocations: 0 / 483.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001515/0.1497, allocations: 4 kB / 483.1 MB, free: 12.1 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: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.008951/0.1586, allocations: 4.298 MB / 487.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1587, allocations: 11.89 kB / 487.4 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009212/0.1596, allocations: 0.6363 MB / 488.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002465/0.1621, allocations: 0.5849 MB / 488.7 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003449/0.1655, allocations: 1.868 MB / 490.5 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.1657, allocations: 238.1 kB / 490.8 MB, free: 4.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005661/0.1663, allocations: 315.9 kB / 491.1 MB, free: 4.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.1827, allocations: 9.213 MB / 0.4886 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.349e-05/0.1828, allocations: 15.86 kB / 0.4886 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003341/0.1832, allocations: 135.9 kB / 0.4887 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002598/0.1858, allocations: 1.592 MB / 0.4903 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01564/0.2015, allocations: 7.456 MB / 0.4975 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03728/0.2388, allocations: 27.99 MB / 0.5249 GB, free: 4.535 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007874/0.2467, allocations: 2.333 MB / 0.5271 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/0.2483, allocations: 1.107 MB / 0.5282 GB, free: 1.039 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1788/0.4271, allocations: 7.614 MB / 0.5357 GB, free: 85.01 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.4272, allocations: 47.97 kB / 0.5357 GB, free: 84.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=81): time 3.176e-06/0.4272, allocations: 0 / 0.5357 GB, free: 84.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=97): time 0.01882/0.446, allocations: 7.169 MB / 0.5427 GB, free: 82.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.4461, allocations: 142.1 kB / 0.5428 GB, free: 82.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003184/0.4493, allocations: 2.661 MB / 0.5454 GB, free: 81.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.115e-05/0.4494, allocations: 45.89 kB / 0.5455 GB, free: 81.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.4504, allocations: 2.428 MB / 0.5479 GB, free: 79.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.4507, allocations: 393 kB / 0.5482 GB, free: 79.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008928/0.4516, allocations: 0.7803 MB / 0.549 GB, free: 78.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.421e-05/0.4516, allocations: 301.1 kB / 0.5493 GB, free: 78.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.4529, allocations: 1.088 MB / 0.5503 GB, free: 78.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001953/0.4548, allocations: 3.497 MB / 0.5538 GB, free: 74.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003508/0.4584, allocations: 4.975 MB / 0.5586 GB, free: 70.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.863e-05/0.4584, allocations: 22.69 kB / 0.5586 GB, free: 70.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=499) (initialization): time 0.005198/0.4636, allocations: 4.462 MB / 0.563 GB, free: 67.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.4637, allocations: 40 kB / 0.563 GB, free: 67.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.679e-05/0.4637, allocations: 88.16 kB / 0.5631 GB, free: 67.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-05/0.4638, allocations: 116 kB / 0.5632 GB, free: 67.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002396/0.4662, allocations: 0.9475 MB / 0.5642 GB, free: 66.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.825e-05/0.4663, allocations: 163.4 kB / 0.5643 GB, free: 66.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/0.4687, allocations: 203.8 kB / 0.5645 GB, free: 66.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/0.4689, allocations: 232 kB / 0.5647 GB, free: 66.04 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 43 (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 (499): * Single equations (assignments): 499 * 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.001695/0.4706, allocations: 1.603 MB / 0.5663 GB, free: 64.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003088/0.4709, allocations: 236.9 kB / 0.5665 GB, free: 64.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.4727, allocations: 1.381 MB / 0.5679 GB, free: 62.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.4727, allocations: 12 kB / 0.5679 GB, free: 62.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.4727, allocations: 7.938 kB / 0.5679 GB, free: 62.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.4727, allocations: 3.984 kB / 0.5679 GB, free: 62.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006931/0.4796, allocations: 6.028 MB / 0.5738 GB, free: 56.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.4797, allocations: 16.94 kB / 0.5738 GB, free: 56.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006901/0.4804, allocations: 227.5 kB / 0.574 GB, free: 56.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.895e-05/0.4804, allocations: 20 kB / 0.574 GB, free: 56.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.938e-05/0.4805, allocations: 44 kB / 0.5741 GB, free: 56.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.737e-05/0.4805, allocations: 35.23 kB / 0.5741 GB, free: 56.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/0.4805, allocations: 27.88 kB / 0.5741 GB, free: 56.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.4821, allocations: 1.788 MB / 0.5759 GB, free: 54.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/0.4825, allocations: 322 kB / 0.5762 GB, free: 53.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/0.4828, allocations: 39.98 kB / 0.5762 GB, free: 53.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007357/0.4835, allocations: 52.66 kB / 0.5763 GB, free: 53.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.4836, allocations: 116.1 kB / 0.5764 GB, free: 53.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.4837, allocations: 59.98 kB / 0.5764 GB, free: 53.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001721/0.4854, allocations: 1.696 MB / 0.5781 GB, free: 51.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4854, allocations: 0 / 0.5781 GB, free: 51.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002723/0.4882, allocations: 0.6667 MB / 0.5788 GB, free: 51.15 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * 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 (122): * Single equations (assignments): 122 * 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.001766/0.4899, allocations: 2.442 MB / 0.5811 GB, free: 48.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003348/0.4933, allocations: 2.745 MB / 0.5838 GB, free: 45.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/0.4933, allocations: 0 / 0.5838 GB, free: 45.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006044/0.4939, allocations: 0.5775 MB / 0.5844 GB, free: 45.19 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/0.4956, allocations: 328.2 kB / 0.5847 GB, free: 44.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0284/0.5241, allocations: 31.1 MB / 0.6151 GB, free: 8.883 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/0.5265, allocations: 2.741 MB / 0.6177 GB, free: 6.133 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00253/0.529, allocations: 1.033 MB / 0.6188 GB, free: 5.109 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/0.5305, allocations: 1.468 MB / 0.6202 GB, free: 3.641 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5305, allocations: 0 / 0.6202 GB, free: 3.641 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07878/0.6093, allocations: 47.46 MB / 0.6665 GB, free: 4.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.195/9.805, allocations: 7.75 kB / 0.6665 GB, free: 4.156 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches