Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001544/0.001544, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001746/0.001746, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2412/0.2412, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00299/0.00299, allocations: 79.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4518/0.4548, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01142/0.4663, allocations: 9.454 MB / 0.5398 GB, free: 6.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009847/0.4761, allocations: 3.804 MB / 0.5435 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002338/0.4785, allocations: 60.72 kB / 0.5435 GB, free: 3.031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005042/0.4837, allocations: 2.277 MB / 0.5458 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005831/0.4895, allocations: 1.657 MB / 0.5474 GB, free: 360 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002085/0.4916, allocations: 0.687 MB / 0.548 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00652/0.4982, allocations: 3.798 MB / 0.5518 GB, free: 12 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003631/0.5018, allocations: 2.898 MB / 0.5546 GB, free: 9.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002293/0.5041, allocations: 1.289 MB / 0.5558 GB, free: 7.766 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002475/0.5066, allocations: 1.729 MB / 0.5575 GB, free: 6.031 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007479/0.5074, allocations: 280 kB / 0.5578 GB, free: 5.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002246/0.5096, allocations: 1.155 MB / 0.5589 GB, free: 4.602 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001517/0.5112, allocations: 1.586 MB / 0.5605 GB, free: 3.012 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00223/0.5134, allocations: 1.891 MB / 0.5623 GB, free: 1.109 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01106/0.5245, allocations: 6.3 MB / 0.5685 GB, free: 10.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.5245, allocations: 0 / 0.5685 GB, free: 10.79 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5245, allocations: 0 / 0.5685 GB, free: 10.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001896/0.5247, allocations: 0 / 0.5685 GB, free: 10.79 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.0121/0.5368, allocations: 4.355 MB / 0.5727 GB, free: 6.355 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.5369, allocations: 12.03 kB / 0.5727 GB, free: 6.344 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00113/0.5381, allocations: 0.6082 MB / 0.5733 GB, free: 5.727 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02173/0.5598, allocations: 3.766 MB / 0.577 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007214/0.5671, allocations: 2.535 MB / 0.5795 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.5673, allocations: 193.3 kB / 0.5797 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.5684, allocations: 259.8 kB / 0.5799 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01593/0.5844, allocations: 8.522 MB / 0.5882 GB, free: 5.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.5845, allocations: 43.7 kB / 0.5883 GB, free: 5.727 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000373/0.5849, allocations: 119.9 kB / 0.5884 GB, free: 5.609 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003125/0.588, allocations: 1.743 MB / 0.5901 GB, free: 3.867 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/0.6021, allocations: 7.44 MB / 0.5974 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04357/0.6457, allocations: 33.9 MB / 0.6305 GB, free: 9.543 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006632/0.6524, allocations: 3.032 MB / 0.6334 GB, free: 6.363 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002176/0.6546, allocations: 1.849 MB / 0.6352 GB, free: 4.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003678/0.655, allocations: 331.8 kB / 0.6355 GB, free: 4.117 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/0.6551, allocations: 47.16 kB / 0.6356 GB, free: 4.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 3.898e-06/0.6551, allocations: 0 / 0.6356 GB, free: 4.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03609/0.6912, allocations: 14.56 MB / 0.6498 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.6913, allocations: 175.1 kB / 0.65 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00518/0.6965, allocations: 3.534 MB / 0.6534 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005582/0.6971, allocations: 45.89 kB / 0.6535 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003016/0.7002, allocations: 2.765 MB / 0.6562 GB, free: 14.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001419/0.7016, allocations: 0.6358 MB / 0.6568 GB, free: 14.16 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00242/0.704, allocations: 1.072 MB / 0.6578 GB, free: 13.07 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.7042, allocations: 301.1 kB / 0.6581 GB, free: 12.78 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005262/0.7095, allocations: 2.013 MB / 0.6601 GB, free: 10.76 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01069/0.7202, allocations: 5.226 MB / 0.6652 GB, free: 3.914 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01493/0.7352, allocations: 7.849 MB / 0.6729 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002604/0.7355, allocations: 36 kB / 0.6729 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01781/0.7533, allocations: 7.817 MB / 0.6805 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002296/0.7536, allocations: 52 kB / 0.6806 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000424/0.754, allocations: 112 kB / 0.6807 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003901/0.758, allocations: 0.969 MB / 0.6816 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005477/0.7635, allocations: 1.189 MB / 0.6828 GB, free: 300 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009787/0.7733, allocations: 6.911 MB / 0.6895 GB, free: 9.246 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004352/0.7777, allocations: 303.6 kB / 0.6898 GB, free: 8.949 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/0.7788, allocations: 324 kB / 0.6901 GB, free: 8.633 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.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 (630): * Single equations (assignments): 626 * 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.004971/0.7838, allocations: 1.852 MB / 0.6919 GB, free: 6.766 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008769/0.7847, allocations: 317.9 kB / 0.6923 GB, free: 6.453 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006549/0.7912, allocations: 3.202 MB / 0.6954 GB, free: 3.23 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000113/0.7914, allocations: 16 kB / 0.6954 GB, free: 3.215 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.306e-05/0.7914, allocations: 8 kB / 0.6954 GB, free: 3.207 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/0.7914, allocations: 3.984 kB / 0.6954 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01764/0.8091, allocations: 7.807 MB / 0.703 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/0.8091, allocations: 8 kB / 0.703 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.8104, allocations: 227.6 kB / 0.7033 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002251/0.8127, allocations: 0.8085 MB / 0.704 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/0.8129, allocations: 24 kB / 0.7041 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009507/0.8224, allocations: 6.511 MB / 0.7104 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.8225, allocations: 0 / 0.7104 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.8325, allocations: 5.836 MB / 0.7161 GB, free: 13.75 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.8335, allocations: 378.8 kB / 0.7165 GB, free: 13.36 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008973/0.8345, allocations: 24 kB / 0.7165 GB, free: 13.34 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/0.8362, allocations: 91.86 kB / 0.7166 GB, free: 13.25 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003127/0.8366, allocations: 92.95 kB / 0.7167 GB, free: 13.15 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/0.8367, allocations: 43.98 kB / 0.7167 GB, free: 13.11 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004402/0.8411, allocations: 2.205 MB / 0.7189 GB, free: 10.91 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8412, allocations: 0 / 0.7189 GB, free: 10.91 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.004884/0.846, allocations: 0.8554 MB / 0.7197 GB, free: 10.06 MB / 0.5763 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.009628/0.8557, allocations: 6.48 MB / 0.726 GB, free: 3.539 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.3556/1.211, allocations: 4.881 MB / 0.7308 GB, free: 184.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/1.211, allocations: 0 / 0.7308 GB, free: 184.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.003794/1.215, allocations: 1.782 MB / 0.7325 GB, free: 184.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003404/1.219, allocations: 374.3 kB / 0.7329 GB, free: 184.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05482/1.273, allocations: 40.85 MB / 0.7728 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002629/1.276, allocations: 2.881 MB / 0.7756 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003205/1.279, allocations: 1.711 MB / 0.7773 GB, free: 145.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/1.281, allocations: 1.546 MB / 0.7788 GB, free: 144.4 MB / 0.5763 GB Notification: Performance of SimCode: time 1.312e-06/1.281, allocations: 0 / 0.7788 GB, free: 144.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09518/1.376, allocations: 62.56 MB / 0.8399 GB, free: 82.21 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.55/21.93, allocations: 14.98 kB / 0.8399 GB, free: 82.2 MB / 0.5763 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches