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.001163/0.001163, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001143/0.001143, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.345/1.345, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2126/0.2126, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 56.12 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.12, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.009951/0.13, allocations: 9.572 MB / 478.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007378/0.1374, allocations: 3.808 MB / 482.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001676/0.1391, allocations: 59.81 kB / 482.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004475/0.1436, allocations: 2.301 MB / 485.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005059/0.1487, allocations: 1.65 MB / 486.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001853/0.1506, allocations: 0.6979 MB / 487.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006037/0.1567, allocations: 3.813 MB / 491.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003582/0.1603, allocations: 2.918 MB / 494.2 MB, free: 5.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002363/0.1627, allocations: 1.293 MB / 495.5 MB, free: 4.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.165, allocations: 1.744 MB / 497.2 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006265/0.1656, allocations: 291.9 kB / 497.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.1677, allocations: 1.17 MB / 498.7 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.1691, allocations: 1.621 MB / 0.4886 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001859/0.171, allocations: 1.934 MB / 0.4905 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006569/0.1776, allocations: 6.227 MB / 0.4965 GB, free: 6.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.1776, allocations: 4 kB / 0.4965 GB, free: 6.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.367e-06/0.1776, allocations: 3.938 kB / 0.4965 GB, free: 6.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001532/0.1778, allocations: 0 / 0.4965 GB, free: 6.973 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: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.01084/0.1886, allocations: 4.307 MB / 0.5007 GB, free: 2.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1887, allocations: 8.031 kB / 0.5008 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001003/0.1897, allocations: 0.6167 MB / 0.5014 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2226/0.4123, allocations: 3.768 MB / 0.505 GB, free: 45.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005361/0.4177, allocations: 2.609 MB / 0.5076 GB, free: 44.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.4179, allocations: 197.9 kB / 0.5078 GB, free: 44.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006764/0.4186, allocations: 262.9 kB / 0.508 GB, free: 44.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01587/0.4345, allocations: 8.711 MB / 0.5165 GB, free: 40.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001642/0.4347, allocations: 44.16 kB / 0.5166 GB, free: 40.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004792/0.4352, allocations: 128.6 kB / 0.5167 GB, free: 40.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003182/0.4384, allocations: 1.797 MB / 0.5184 GB, free: 40.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/0.4516, allocations: 7.597 MB / 0.5259 GB, free: 36.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03277/0.4844, allocations: 34.43 MB / 0.5595 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006406/0.4909, allocations: 3.026 MB / 0.5624 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/0.493, allocations: 1.853 MB / 0.5643 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003481/0.4934, allocations: 335.8 kB / 0.5646 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.4934, allocations: 55.09 kB / 0.5646 GB, free: 11.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=135): time 3.196e-06/0.4934, allocations: 0 / 0.5646 GB, free: 11.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=156): time 0.03383/0.5273, allocations: 14.42 MB / 0.5787 GB, free: 12.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.36e-05/0.5274, allocations: 171.2 kB / 0.5789 GB, free: 12.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004534/0.5319, allocations: 3.562 MB / 0.5823 GB, free: 9.141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002421/0.5322, allocations: 45.7 kB / 0.5824 GB, free: 9.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001745/0.5339, allocations: 2.706 MB / 0.585 GB, free: 6.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007447/0.5347, allocations: 0.6067 MB / 0.5856 GB, free: 5.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.5361, allocations: 1.071 MB / 0.5867 GB, free: 4.648 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.056e-05/0.5362, allocations: 309.1 kB / 0.587 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/0.5389, allocations: 2.021 MB / 0.5889 GB, free: 2.316 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004893/0.5439, allocations: 5.267 MB / 0.5941 GB, free: 11.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008751/0.5526, allocations: 7.912 MB / 0.6018 GB, free: 1.902 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-05/0.5527, allocations: 32 kB / 0.6018 GB, free: 1.871 MB / 430.1 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01288/0.5656, allocations: 7.848 MB / 0.6095 GB, free: 10.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.507e-05/0.5657, allocations: 52 kB / 0.6096 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/0.5658, allocations: 120 kB / 0.6097 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002308/0.5682, allocations: 0.9765 MB / 0.6106 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003859/0.572, allocations: 1.193 MB / 0.6118 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009134/0.5812, allocations: 6.919 MB / 0.6185 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004417/0.5856, allocations: 307.4 kB / 0.6188 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/0.5867, allocations: 324 kB / 0.6191 GB, free: 15.99 MB / 462.1 MB 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.004297/0.591, allocations: 1.883 MB / 0.621 GB, free: 14.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008396/0.5918, allocations: 308 kB / 0.6213 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006052/0.5979, allocations: 3.202 MB / 0.6244 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.97e-05/0.598, allocations: 19.98 kB / 0.6244 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.662e-05/0.598, allocations: 4 kB / 0.6244 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.598, allocations: 7.922 kB / 0.6244 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01614/0.6142, allocations: 7.961 MB / 0.6322 GB, free: 2.512 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/0.6142, allocations: 4 kB / 0.6322 GB, free: 2.508 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.6154, allocations: 223.7 kB / 0.6324 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002072/0.6175, allocations: 0.8179 MB / 0.6332 GB, free: 1.469 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001689/0.6176, allocations: 24 kB / 0.6333 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008259/0.6259, allocations: 6.45 MB / 0.6396 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.6259, allocations: 3.938 kB / 0.6396 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008292/0.6342, allocations: 5.805 MB / 0.6452 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008043/0.6351, allocations: 365 kB / 0.6456 GB, free: 4.645 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006496/0.6357, allocations: 31.94 kB / 0.6456 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/0.6376, allocations: 91.86 kB / 0.6457 GB, free: 4.523 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003498/0.638, allocations: 84.88 kB / 0.6458 GB, free: 4.441 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.6381, allocations: 40 kB / 0.6458 GB, free: 4.402 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0034/0.6415, allocations: 2.229 MB / 0.648 GB, free: 2.184 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6416, allocations: 0 / 0.648 GB, free: 2.184 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003802/0.6454, allocations: 0.8802 MB / 0.6488 GB, free: 1.309 MB / 478.1 MB 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.00819/0.6536, allocations: 6.453 MB / 0.6551 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008516/0.6621, allocations: 5.64 MB / 0.6607 GB, free: 5.203 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.6621, allocations: 0 / 0.6607 GB, free: 5.203 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002898/0.665, allocations: 1.772 MB / 0.6624 GB, free: 3.426 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/0.6681, allocations: 407.7 kB / 0.6628 GB, free: 3.035 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2692/0.9373, allocations: 45.51 MB / 0.7072 GB, free: 160.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004871/0.9422, allocations: 2.928 MB / 0.7101 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004903/0.9471, allocations: 1.72 MB / 0.7118 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002563/0.9497, allocations: 1.603 MB / 0.7133 GB, free: 158.3 MB / 0.5137 GB Notification: Performance of SimCode: time 2.244e-06/0.9498, allocations: 1.281 kB / 0.7133 GB, free: 158.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09351/1.043, allocations: 66.36 MB / 0.7781 GB, free: 102.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/12.46, allocations: 15.5 kB / 0.7781 GB, free: 102.3 MB / 0.5137 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