Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_3_2_3_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.001399/0.001399, allocations: 112.1 kB / 16.41 MB, free: 6.43 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.001379/0.001379, allocations: 189 kB / 17.34 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2091/0.2091, allocations: 43.52 MB / 314.1 MB, free: 476 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 71.89 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1078, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01079/0.1187, allocations: 10.22 MB / 0.4974 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007173/0.1259, allocations: 3.918 MB / 0.5012 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001472/0.1274, allocations: 55.81 kB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004083/0.1315, allocations: 2.317 MB / 0.5035 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004386/0.1359, allocations: 1.774 MB / 0.5053 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001689/0.1376, allocations: 0.6979 MB / 0.5059 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005781/0.1434, allocations: 3.813 MB / 0.5097 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003683/0.1472, allocations: 2.993 MB / 0.5126 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.15, allocations: 1.37 MB / 0.5139 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003233/0.1533, allocations: 1.869 MB / 0.5158 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007687/0.1541, allocations: 304 kB / 0.516 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00235/0.1564, allocations: 1.182 MB / 0.5172 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001846/0.1583, allocations: 1.726 MB / 0.5189 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002515/0.1608, allocations: 2.058 MB / 0.5209 GB, free: 9.832 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009304/0.1702, allocations: 6.841 MB / 0.5276 GB, free: 2.965 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.1702, allocations: 4 kB / 0.5276 GB, free: 2.961 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1702, allocations: 4 kB / 0.5276 GB, free: 2.957 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002147/0.1704, allocations: 0 / 0.5276 GB, free: 2.957 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: 1391 * Number of variables: 1391 Notification: Performance of Generate backend data structure: time 0.2313/0.4018, allocations: 4.635 MB / 0.5321 GB, free: 36.85 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.4019, allocations: 13.2 kB / 0.5321 GB, free: 36.85 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001114/0.403, allocations: 0.6614 MB / 0.5328 GB, free: 36.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02309/0.4261, allocations: 3.827 MB / 0.5365 GB, free: 36.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007428/0.4336, allocations: 2.881 MB / 0.5393 GB, free: 35.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.4338, allocations: 208.6 kB / 0.5395 GB, free: 35.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009073/0.4347, allocations: 284.6 kB / 0.5398 GB, free: 35.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01469/0.4494, allocations: 9.216 MB / 0.5488 GB, free: 31.19 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.4496, allocations: 47.91 kB / 0.5488 GB, free: 31.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003635/0.4499, allocations: 129.9 kB / 0.549 GB, free: 31.08 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003104/0.453, allocations: 1.915 MB / 0.5508 GB, free: 30.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01358/0.4666, allocations: 8.047 MB / 0.5587 GB, free: 25.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04089/0.5076, allocations: 36 MB / 0.5938 GB, free: 4.945 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007616/0.5152, allocations: 3.606 MB / 0.5974 GB, free: 1.195 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002383/0.5176, allocations: 2.02 MB / 0.5993 GB, free: 15.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004135/0.5181, allocations: 347.5 kB / 0.5997 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.5181, allocations: 55.44 kB / 0.5997 GB, free: 14.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.278e-06/0.5181, allocations: 0 / 0.5997 GB, free: 14.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=177): time 0.03672/0.5549, allocations: 15.56 MB / 0.6149 GB, free: 15.04 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.811e-05/0.555, allocations: 171.2 kB / 0.6151 GB, free: 14.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004927/0.5599, allocations: 3.661 MB / 0.6187 GB, free: 11.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003954/0.5604, allocations: 53.7 kB / 0.6187 GB, free: 11.12 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002046/0.5624, allocations: 2.933 MB / 0.6216 GB, free: 8.164 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007302/0.5632, allocations: 0.7016 MB / 0.6223 GB, free: 7.457 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.5646, allocations: 1.135 MB / 0.6234 GB, free: 6.312 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.5647, allocations: 305.1 kB / 0.6237 GB, free: 6.012 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003198/0.5679, allocations: 2.181 MB / 0.6258 GB, free: 3.824 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005553/0.5735, allocations: 5.536 MB / 0.6312 GB, free: 12.61 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009798/0.5833, allocations: 8.342 MB / 0.6393 GB, free: 2.625 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.162e-05/0.5834, allocations: 36 kB / 0.6394 GB, free: 2.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01494/0.5984, allocations: 8.29 MB / 0.6475 GB, free: 10.28 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.5985, allocations: 56 kB / 0.6475 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001602/0.5987, allocations: 116 kB / 0.6476 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002371/0.6011, allocations: 0.9726 MB / 0.6486 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004268/0.6054, allocations: 1.267 MB / 0.6498 GB, free: 7.867 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008892/0.6143, allocations: 6.933 MB / 0.6566 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/0.6187, allocations: 311.6 kB / 0.6569 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009446/0.6197, allocations: 344 kB / 0.6572 GB, free: 148 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * Number of states: 0 () * Number of discrete variables: 24 (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 (671): * Single equations (assignments): 667 * 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.004112/0.6238, allocations: 1.977 MB / 0.6591 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008998/0.6247, allocations: 337.8 kB / 0.6595 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006798/0.6316, allocations: 3.563 MB / 0.6629 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.426e-05/0.6316, allocations: 20 kB / 0.663 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/0.6317, allocations: 7.938 kB / 0.663 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/0.6317, allocations: 7.969 kB / 0.663 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01808/0.6498, allocations: 8.567 MB / 0.6713 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.6498, allocations: 2.531 kB / 0.6713 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001413/0.6512, allocations: 271.6 kB / 0.6716 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/0.6533, allocations: 0.8046 MB / 0.6724 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001893/0.6535, allocations: 31.98 kB / 0.6724 GB, free: 476 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009235/0.6628, allocations: 6.508 MB / 0.6788 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.6629, allocations: 0.5469 kB / 0.6788 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/0.6744, allocations: 6.406 MB / 0.685 GB, free: 3.383 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002719/0.6771, allocations: 0.6783 MB / 0.6857 GB, free: 2.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001349/0.6785, allocations: 27.94 kB / 0.6857 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002421/0.681, allocations: 111.8 kB / 0.6858 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004983/0.6815, allocations: 96.86 kB / 0.6859 GB, free: 2.453 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001836/0.6817, allocations: 40 kB / 0.686 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005509/0.6872, allocations: 2.294 MB / 0.6882 GB, free: 136 kB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6873, allocations: 0 / 0.6882 GB, free: 136 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005095/0.6924, allocations: 0.9414 MB / 0.6891 GB, free: 15.19 MB / 0.5294 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 (137): * Single equations (assignments): 133 * 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.009996/0.7024, allocations: 7.065 MB / 0.696 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008241/0.7106, allocations: 5.283 MB / 0.7012 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.7107, allocations: 0 / 0.7012 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003194/0.7139, allocations: 1.955 MB / 0.7031 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/0.717, allocations: 410.9 kB / 0.7035 GB, free: 472 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2946/1.012, allocations: 43.57 MB / 0.746 GB, free: 195 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004478/1.016, allocations: 3.063 MB / 0.749 GB, free: 194.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004728/1.021, allocations: 1.809 MB / 0.7508 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/1.023, allocations: 1.738 MB / 0.7525 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/1.023, allocations: 0 / 0.7525 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09817/1.121, allocations: 66.5 MB / 0.8174 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.66/17.78, allocations: 7.922 kB / 0.8174 GB, free: 147.8 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches