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.001302/0.001302, allocations: 118.4 kB / 17.78 MB, free: 5.254 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.001346/0.001346, allocations: 183.8 kB / 18.71 MB, free: 4.332 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.463/1.463, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2324/0.2324, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3949, allocations: 60.84 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01061/0.4055, allocations: 9.557 MB / 0.5278 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009475/0.4151, allocations: 3.811 MB / 0.5315 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002231/0.4173, allocations: 57.28 kB / 0.5316 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005149/0.4225, allocations: 2.293 MB / 0.5338 GB, free: 8.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005349/0.4279, allocations: 1.655 MB / 0.5354 GB, free: 7.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002127/0.4301, allocations: 0.6972 MB / 0.5361 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006632/0.4367, allocations: 3.814 MB / 0.5398 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004515/0.4413, allocations: 2.921 MB / 0.5427 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002828/0.4441, allocations: 1.3 MB / 0.5439 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002931/0.4471, allocations: 1.748 MB / 0.5456 GB, free: 140 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008013/0.4479, allocations: 284 kB / 0.5459 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002704/0.4506, allocations: 1.174 MB / 0.5471 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001943/0.4526, allocations: 1.621 MB / 0.5486 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002418/0.455, allocations: 1.93 MB / 0.5505 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008516/0.4635, allocations: 6.459 MB / 0.5568 GB, free: 4.633 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4636, allocations: 0 / 0.5568 GB, free: 4.633 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4636, allocations: 0 / 0.5568 GB, free: 4.633 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001505/0.4637, allocations: 4 kB / 0.5568 GB, free: 4.629 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.01062/0.4744, allocations: 4.418 MB / 0.5612 GB, free: 140 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.4744, allocations: 12.02 kB / 0.5612 GB, free: 128 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001106/0.4756, allocations: 0.6207 MB / 0.5618 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02294/0.4985, allocations: 3.789 MB / 0.5655 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006079/0.5046, allocations: 2.66 MB / 0.5681 GB, free: 8.977 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/0.5049, allocations: 201.3 kB / 0.5683 GB, free: 8.777 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001074/0.506, allocations: 267.8 kB / 0.5685 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.5234, allocations: 8.712 MB / 0.577 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.5235, allocations: 39.64 kB / 0.5771 GB, free: 15.15 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004249/0.524, allocations: 123.9 kB / 0.5772 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003434/0.5274, allocations: 1.813 MB / 0.579 GB, free: 13.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01575/0.5432, allocations: 7.585 MB / 0.5864 GB, free: 5.629 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04796/0.5912, allocations: 34.33 MB / 0.6199 GB, free: 2.305 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007643/0.5989, allocations: 3.019 MB / 0.6228 GB, free: 15.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/0.6019, allocations: 1.848 MB / 0.6246 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004853/0.6025, allocations: 331.8 kB / 0.625 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/0.6025, allocations: 51.16 kB / 0.625 GB, free: 12.83 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 5.61e-06/0.6025, allocations: 4 kB / 0.625 GB, free: 12.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03978/0.6423, allocations: 14.64 MB / 0.6393 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.6425, allocations: 171.2 kB / 0.6395 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006051/0.6486, allocations: 3.571 MB / 0.6429 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004375/0.649, allocations: 45.7 kB / 0.643 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002928/0.652, allocations: 2.824 MB / 0.6457 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001061/0.6531, allocations: 0.6241 MB / 0.6464 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/0.6548, allocations: 1.08 MB / 0.6474 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.655, allocations: 309.3 kB / 0.6477 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00321/0.6582, allocations: 2.029 MB / 0.6497 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006221/0.6644, allocations: 5.263 MB / 0.6548 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/0.6754, allocations: 7.907 MB / 0.6625 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/0.6755, allocations: 35.94 kB / 0.6626 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of matching and sorting (n=684) (initialization): time 0.0163/0.6918, allocations: 7.864 MB / 0.6703 GB, free: 11 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.099e-05/0.6919, allocations: 52 kB / 0.6703 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/0.6921, allocations: 120.1 kB / 0.6704 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/0.6947, allocations: 0.9686 MB / 0.6714 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003992/0.6987, allocations: 1.197 MB / 0.6725 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009846/0.7085, allocations: 6.916 MB / 0.6793 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003817/0.7124, allocations: 303.5 kB / 0.6796 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007999/0.7132, allocations: 324 kB / 0.6799 GB, free: 0.9922 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.003554/0.7168, allocations: 1.88 MB / 0.6817 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007072/0.7175, allocations: 321.8 kB / 0.682 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006303/0.7238, allocations: 3.206 MB / 0.6852 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-05/0.7239, allocations: 16 kB / 0.6852 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.7239, allocations: 4 kB / 0.6852 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-05/0.7239, allocations: 11.97 kB / 0.6852 GB, free: 11.52 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/0.7389, allocations: 7.863 MB / 0.6929 GB, free: 3.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.7389, allocations: 0 / 0.6929 GB, free: 3.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001218/0.7401, allocations: 231.6 kB / 0.6931 GB, free: 3.363 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002271/0.7424, allocations: 0.8085 MB / 0.6939 GB, free: 2.551 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/0.7426, allocations: 24 kB / 0.6939 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009586/0.7522, allocations: 6.494 MB / 0.7003 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.7523, allocations: 4 kB / 0.7003 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009705/0.762, allocations: 5.844 MB / 0.706 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.763, allocations: 382.8 kB / 0.7063 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004172/0.7635, allocations: 20 kB / 0.7063 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.7647, allocations: 95.86 kB / 0.7064 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.765, allocations: 80.89 kB / 0.7065 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.7651, allocations: 43.98 kB / 0.7066 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003827/0.769, allocations: 2.229 MB / 0.7087 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.645e-06/0.769, allocations: 0 / 0.7087 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004977/0.774, allocations: 0.8866 MB / 0.7096 GB, free: 2.273 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.01081/0.7848, allocations: 6.474 MB / 0.7159 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009113/0.794, allocations: 4.923 MB / 0.7207 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.794, allocations: 0.75 kB / 0.7207 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003396/0.7974, allocations: 1.775 MB / 0.7225 GB, free: 5.078 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.8, allocations: 413.9 kB / 0.7229 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2959/1.096, allocations: 41.23 MB / 0.7631 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002292/1.098, allocations: 2.925 MB / 0.766 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003193/1.101, allocations: 1.721 MB / 0.7677 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00174/1.103, allocations: 1.601 MB / 0.7692 GB, free: 158 MB / 0.5762 GB Notification: Performance of SimCode: time 7.82e-07/1.103, allocations: 0 / 0.7692 GB, free: 158 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/1.204, allocations: 63.15 MB / 0.8309 GB, free: 95.35 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.55/22.75, allocations: 10.31 kB / 0.8309 GB, free: 95.34 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