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.00127/0.00127, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2132/0.2132, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 75.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.329, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.0116/0.3406, allocations: 9.458 MB / 0.5398 GB, free: 6.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008589/0.3492, allocations: 3.811 MB / 0.5435 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002324/0.3516, allocations: 52.88 kB / 0.5435 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005247/0.3569, allocations: 2.286 MB / 0.5458 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005808/0.3628, allocations: 1.642 MB / 0.5474 GB, free: 360 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00225/0.365, allocations: 0.6938 MB / 0.548 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00605/0.3711, allocations: 3.801 MB / 0.5518 GB, free: 12.01 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004288/0.3754, allocations: 2.894 MB / 0.5546 GB, free: 9.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.3778, allocations: 1.293 MB / 0.5558 GB, free: 7.77 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002595/0.3805, allocations: 1.725 MB / 0.5575 GB, free: 6.039 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008612/0.3814, allocations: 284 kB / 0.5578 GB, free: 5.762 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002591/0.384, allocations: 1.155 MB / 0.5589 GB, free: 4.605 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001965/0.3859, allocations: 1.586 MB / 0.5605 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002817/0.3888, allocations: 1.887 MB / 0.5623 GB, free: 1.117 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007181/0.396, allocations: 6.308 MB / 0.5685 GB, free: 10.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.396, allocations: 0 / 0.5685 GB, free: 10.79 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.396, allocations: 0 / 0.5685 GB, free: 10.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001266/0.3962, allocations: 4 kB / 0.5685 GB, free: 10.78 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.00847/0.4046, allocations: 4.347 MB / 0.5727 GB, free: 6.359 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.4047, allocations: 12.03 kB / 0.5727 GB, free: 6.348 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007397/0.4054, allocations: 0.6121 MB / 0.5733 GB, free: 5.727 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0199/0.4253, allocations: 3.762 MB / 0.577 GB, free: 1.957 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00577/0.4312, allocations: 2.531 MB / 0.5795 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.4314, allocations: 197.3 kB / 0.5797 GB, free: 15.17 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009723/0.4324, allocations: 259.8 kB / 0.5799 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/0.4474, allocations: 8.526 MB / 0.5882 GB, free: 5.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.4476, allocations: 35.7 kB / 0.5883 GB, free: 5.734 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003593/0.448, allocations: 123.9 kB / 0.5884 GB, free: 5.613 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002841/0.4508, allocations: 1.743 MB / 0.5901 GB, free: 3.871 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01343/0.4643, allocations: 7.432 MB / 0.5974 GB, free: 12.43 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04205/0.5064, allocations: 33.9 MB / 0.6305 GB, free: 9.547 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007273/0.5137, allocations: 3.026 MB / 0.6334 GB, free: 6.371 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002609/0.5164, allocations: 1.856 MB / 0.6352 GB, free: 4.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004405/0.5168, allocations: 335.8 kB / 0.6356 GB, free: 4.113 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.5169, allocations: 43.22 kB / 0.6356 GB, free: 4.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.007e-06/0.5169, allocations: 0 / 0.6356 GB, free: 4.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03297/0.5499, allocations: 14.56 MB / 0.6498 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/0.55, allocations: 179.1 kB / 0.65 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00422/0.5542, allocations: 3.522 MB / 0.6534 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002037/0.5545, allocations: 45.7 kB / 0.6535 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001631/0.5561, allocations: 2.773 MB / 0.6562 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005662/0.5567, allocations: 0.628 MB / 0.6568 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001235/0.5579, allocations: 1.075 MB / 0.6578 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.047e-05/0.558, allocations: 301.1 kB / 0.6581 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002729/0.5608, allocations: 2.013 MB / 0.6601 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004828/0.5656, allocations: 5.222 MB / 0.6652 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008565/0.5742, allocations: 7.852 MB / 0.6729 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001201/0.5743, allocations: 36 kB / 0.6729 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01382/0.5882, allocations: 7.813 MB / 0.6805 GB, free: 2.613 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.647e-05/0.5883, allocations: 52.22 kB / 0.6806 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001808/0.5885, allocations: 116 kB / 0.6807 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002425/0.5909, allocations: 0.9762 MB / 0.6816 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003768/0.5947, allocations: 1.181 MB / 0.6828 GB, free: 296 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008948/0.6037, allocations: 6.91 MB / 0.6895 GB, free: 9.246 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003767/0.6075, allocations: 303.5 kB / 0.6898 GB, free: 8.949 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007625/0.6082, 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.003338/0.6116, allocations: 1.848 MB / 0.6919 GB, free: 6.77 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000786/0.6124, allocations: 313.9 kB / 0.6922 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005872/0.6183, allocations: 3.202 MB / 0.6954 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.348e-05/0.6183, allocations: 16 kB / 0.6954 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/0.6183, allocations: 8 kB / 0.6954 GB, free: 3.215 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.6184, allocations: 11.95 kB / 0.6954 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/0.632, allocations: 7.815 MB / 0.703 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.632, allocations: 0 / 0.703 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.6332, allocations: 224 kB / 0.7032 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002067/0.6352, allocations: 0.8085 MB / 0.704 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/0.6354, allocations: 31.88 kB / 0.7041 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008594/0.644, allocations: 6.504 MB / 0.7104 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6441, allocations: 0 / 0.7104 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008595/0.6527, allocations: 5.85 MB / 0.7161 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009117/0.6536, allocations: 374.8 kB / 0.7165 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007106/0.6543, allocations: 28 kB / 0.7165 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.6558, allocations: 91.86 kB / 0.7166 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003071/0.6562, allocations: 84.81 kB / 0.7167 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/0.6563, allocations: 40 kB / 0.7167 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003872/0.6602, allocations: 2.205 MB / 0.7189 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.823e-06/0.6602, allocations: 0 / 0.7189 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004096/0.6643, allocations: 0.8671 MB / 0.7197 GB, free: 10.05 MB / 0.5762 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.008894/0.6732, allocations: 6.465 MB / 0.726 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2805/0.9538, allocations: 4.884 MB / 0.7308 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.9538, allocations: 0.5 kB / 0.7308 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003383/0.9572, allocations: 1.777 MB / 0.7325 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/0.9602, allocations: 391.3 kB / 0.7329 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04711/1.007, allocations: 40.84 MB / 0.7728 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002665/1.01, allocations: 2.888 MB / 0.7756 GB, free: 145.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00318/1.013, allocations: 1.707 MB / 0.7773 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001774/1.015, allocations: 1.554 MB / 0.7788 GB, free: 142 MB / 0.5762 GB Notification: Performance of SimCode: time 9.32e-07/1.015, allocations: 0 / 0.7788 GB, free: 142 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09139/1.106, allocations: 62.55 MB / 0.8399 GB, free: 79.85 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.59/21.7, allocations: 20.89 kB / 0.8399 GB, free: 79.84 MB / 0.5762 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