Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",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.001195/0.001195, allocations: 112.8 kB / 17.78 MB, free: 5.277 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.0012/0.0012, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.1995/0.1995, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.83 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3393, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01065/0.35, allocations: 9.564 MB / 0.5278 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009188/0.3592, allocations: 3.813 MB / 0.5315 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002674/0.362, allocations: 55.84 kB / 0.5316 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004683/0.3667, allocations: 2.298 MB / 0.5338 GB, free: 8.301 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005843/0.3726, allocations: 1.69 MB / 0.5355 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.3745, allocations: 0.6992 MB / 0.5361 GB, free: 6.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006232/0.3807, allocations: 3.813 MB / 0.5399 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003617/0.3844, allocations: 2.918 MB / 0.5427 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.3867, allocations: 1.312 MB / 0.544 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0023/0.389, allocations: 1.744 MB / 0.5457 GB, free: 88 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005428/0.3895, allocations: 284 kB / 0.546 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.3916, allocations: 1.182 MB / 0.5471 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001492/0.3932, allocations: 1.633 MB / 0.5487 GB, free: 12.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001897/0.3951, allocations: 1.934 MB / 0.5506 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007205/0.4023, allocations: 6.463 MB / 0.5569 GB, free: 4.555 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4023, allocations: 0 / 0.5569 GB, free: 4.555 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4023, allocations: 0 / 0.5569 GB, free: 4.555 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001449/0.4025, allocations: 0 / 0.5569 GB, free: 4.555 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.00888/0.4114, allocations: 4.418 MB / 0.5612 GB, free: 64 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4114, allocations: 12.03 kB / 0.5612 GB, free: 52 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007799/0.4122, allocations: 0.6245 MB / 0.5618 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02152/0.4337, allocations: 3.786 MB / 0.5655 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007175/0.441, allocations: 2.667 MB / 0.5681 GB, free: 8.895 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.4413, allocations: 193.4 kB / 0.5683 GB, free: 8.703 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001308/0.4426, allocations: 267.8 kB / 0.5686 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.457, allocations: 8.712 MB / 0.5771 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/0.4571, allocations: 43.64 kB / 0.5771 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003585/0.4575, allocations: 123.9 kB / 0.5773 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.4605, allocations: 1.801 MB / 0.579 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01355/0.4741, allocations: 7.596 MB / 0.5864 GB, free: 5.551 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04129/0.5154, allocations: 34.31 MB / 0.6199 GB, free: 2.238 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006585/0.5221, allocations: 3.03 MB / 0.6229 GB, free: 15.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002201/0.5243, allocations: 1.848 MB / 0.6247 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003859/0.5247, allocations: 327.8 kB / 0.625 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.5248, allocations: 51.16 kB / 0.6251 GB, free: 12.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 3.667e-06/0.5248, allocations: 4 kB / 0.6251 GB, free: 12.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03511/0.5599, allocations: 14.64 MB / 0.6394 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.56, allocations: 175.2 kB / 0.6395 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004938/0.565, allocations: 3.567 MB / 0.643 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004035/0.5654, allocations: 45.7 kB / 0.6431 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002007/0.5674, allocations: 2.816 MB / 0.6458 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007963/0.5682, allocations: 0.628 MB / 0.6464 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/0.5696, allocations: 1.084 MB / 0.6475 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.5697, allocations: 301.1 kB / 0.6478 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002759/0.5725, allocations: 2.032 MB / 0.6498 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004567/0.5771, allocations: 5.267 MB / 0.6549 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008494/0.5856, allocations: 7.912 MB / 0.6626 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.652e-05/0.5857, allocations: 32 kB / 0.6627 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01415/0.5999, allocations: 7.859 MB / 0.6703 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.505e-05/0.6, allocations: 55.03 kB / 0.6704 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001345/0.6001, allocations: 120 kB / 0.6705 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/0.6025, allocations: 0.9763 MB / 0.6715 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003886/0.6064, allocations: 1.197 MB / 0.6726 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00858/0.615, allocations: 6.904 MB / 0.6794 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004217/0.6193, allocations: 303.5 kB / 0.6797 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006819/0.62, allocations: 328 kB / 0.68 GB, free: 0.9258 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 522 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.arrowLine.twoHeadedArrow,torque.arrow.headAtOrigin,universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],torque.color[3],torque.color[2],torque.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[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 (636): * Single equations (assignments): 632 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002875/0.6228, allocations: 1.883 MB / 0.6818 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000618/0.6235, allocations: 321.8 kB / 0.6821 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005304/0.6288, allocations: 3.206 MB / 0.6852 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.938e-05/0.6288, allocations: 16 kB / 0.6853 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.6289, allocations: 4 kB / 0.6853 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.6289, allocations: 11.92 kB / 0.6853 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01311/0.642, allocations: 7.866 MB / 0.693 GB, free: 3.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.642, allocations: 3.938 kB / 0.693 GB, free: 3.516 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.6432, allocations: 227.6 kB / 0.6932 GB, free: 3.293 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/0.6452, allocations: 0.8117 MB / 0.694 GB, free: 2.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/0.6454, allocations: 24 kB / 0.694 GB, free: 2.457 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008034/0.6534, allocations: 6.487 MB / 0.7003 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.6534, allocations: 4 kB / 0.7003 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008105/0.6615, allocations: 5.836 MB / 0.706 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000866/0.6625, allocations: 382.8 kB / 0.7064 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/0.6629, allocations: 24 kB / 0.7064 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.6642, allocations: 91.88 kB / 0.7065 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/0.6644, allocations: 84.86 kB / 0.7066 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.6645, allocations: 44 kB / 0.7066 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003121/0.6677, allocations: 2.229 MB / 0.7088 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6677, allocations: 3.938 kB / 0.7088 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004101/0.6718, allocations: 0.8827 MB / 0.7097 GB, free: 2.211 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (115): * Single equations (assignments): 111 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008424/0.6802, allocations: 6.469 MB / 0.716 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007411/0.6877, allocations: 4.922 MB / 0.7208 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.6877, allocations: 0 / 0.7208 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002802/0.6905, allocations: 1.779 MB / 0.7225 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.6929, allocations: 416.7 kB / 0.7229 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2886/0.9815, allocations: 41.22 MB / 0.7632 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002357/0.9839, allocations: 2.933 MB / 0.766 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003122/0.9871, allocations: 1.718 MB / 0.7677 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00174/0.9888, allocations: 1.601 MB / 0.7693 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of SimCode: time 7.12e-07/0.9888, allocations: 0 / 0.7693 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08238/1.071, allocations: 63.15 MB / 0.831 GB, free: 95.38 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.27/22.34, allocations: 3.75 kB / 0.831 GB, free: 95.38 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches