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.00143/0.00143, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001756/0.001756, allocations: 188 kB / 18.71 MB, free: 4.387 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.429/1.429, allocations: 222.9 MB / 242.4 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.2182/0.2182, allocations: 44.18 MB / 336.7 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001476, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3834, allocations: 60.84 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01006/0.3935, allocations: 9.569 MB / 0.5278 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.4042, allocations: 3.809 MB / 0.5315 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002952/0.4072, allocations: 53 kB / 0.5315 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005552/0.4129, allocations: 2.298 MB / 0.5338 GB, free: 8.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005856/0.4188, allocations: 1.653 MB / 0.5354 GB, free: 7.172 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002212/0.421, allocations: 0.7032 MB / 0.5361 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007475/0.4285, allocations: 3.808 MB / 0.5398 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005523/0.434, allocations: 2.923 MB / 0.5427 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003702/0.4378, allocations: 1.31 MB / 0.5439 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004/0.4418, allocations: 1.744 MB / 0.5456 GB, free: 176 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001371/0.4432, allocations: 288 kB / 0.5459 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004188/0.4474, allocations: 1.182 MB / 0.5471 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002902/0.4504, allocations: 1.629 MB / 0.5487 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004572/0.4549, allocations: 1.934 MB / 0.5506 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.4659, allocations: 6.436 MB / 0.5568 GB, free: 4.672 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.4659, allocations: 0 / 0.5568 GB, free: 4.672 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.466, allocations: 0 / 0.5568 GB, free: 4.672 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002821/0.4663, allocations: 0 / 0.5568 GB, free: 4.672 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.01378/0.48, allocations: 4.303 MB / 0.561 GB, free: 308 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.488e-05/0.4801, allocations: 8.031 kB / 0.561 GB, free: 300 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002357/0.4825, allocations: 0.6245 MB / 0.5617 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02323/0.5058, allocations: 3.775 MB / 0.5653 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007221/0.513, allocations: 2.655 MB / 0.5679 GB, free: 9.156 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002154/0.5133, allocations: 197.4 kB / 0.5681 GB, free: 8.961 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/0.5145, allocations: 267.7 kB / 0.5684 GB, free: 8.699 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.5325, allocations: 8.704 MB / 0.5769 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001545/0.5327, allocations: 39.66 kB / 0.5769 GB, free: 15.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000578/0.5333, allocations: 131.9 kB / 0.577 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003242/0.5365, allocations: 1.805 MB / 0.5788 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01469/0.5512, allocations: 7.593 MB / 0.5862 GB, free: 5.812 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04298/0.5943, allocations: 34.25 MB / 0.6197 GB, free: 2.555 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006898/0.6012, allocations: 3.026 MB / 0.6226 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.6037, allocations: 1.852 MB / 0.6244 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000434/0.6041, allocations: 335.8 kB / 0.6248 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.6042, allocations: 43.22 kB / 0.6248 GB, free: 13.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.338e-06/0.6042, allocations: 0 / 0.6248 GB, free: 13.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03645/0.6406, allocations: 14.43 MB / 0.6389 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.6408, allocations: 179.1 kB / 0.6391 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005727/0.6465, allocations: 3.562 MB / 0.6425 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002923/0.6468, allocations: 53.69 kB / 0.6426 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002169/0.649, allocations: 2.695 MB / 0.6452 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007623/0.6498, allocations: 0.6094 MB / 0.6458 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001774/0.6516, allocations: 1.079 MB / 0.6469 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.6517, allocations: 301.1 kB / 0.6472 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002893/0.6546, allocations: 2.025 MB / 0.6491 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005164/0.6598, allocations: 5.275 MB / 0.6543 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00899/0.6688, allocations: 7.905 MB / 0.662 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001028/0.6689, allocations: 36 kB / 0.662 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01475/0.6837, allocations: 7.845 MB / 0.6697 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/0.6839, allocations: 56 kB / 0.6698 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002281/0.6841, allocations: 112.8 kB / 0.6699 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002471/0.6866, allocations: 0.9764 MB / 0.6708 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00387/0.6905, allocations: 1.193 MB / 0.672 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008963/0.6995, allocations: 6.901 MB / 0.6787 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004008/0.7035, allocations: 303.4 kB / 0.679 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009408/0.7045, allocations: 324 kB / 0.6793 GB, free: 1.586 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.003709/0.7082, allocations: 1.878 MB / 0.6812 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007966/0.709, allocations: 316 kB / 0.6815 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006196/0.7152, allocations: 3.202 MB / 0.6846 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-05/0.7153, allocations: 20 kB / 0.6846 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/0.7154, allocations: 8 kB / 0.6846 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/0.7154, allocations: 7.922 kB / 0.6846 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01673/0.7321, allocations: 7.859 MB / 0.6923 GB, free: 4.184 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.7322, allocations: 7.938 kB / 0.6923 GB, free: 4.176 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.7334, allocations: 227.6 kB / 0.6925 GB, free: 3.953 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002112/0.7355, allocations: 0.8085 MB / 0.6933 GB, free: 3.141 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/0.7357, allocations: 24 kB / 0.6933 GB, free: 3.117 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008858/0.7446, allocations: 6.487 MB / 0.6997 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.7446, allocations: 0 / 0.6997 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009268/0.7539, allocations: 5.817 MB / 0.7053 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.7551, allocations: 365 kB / 0.7057 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00075/0.7558, allocations: 28 kB / 0.7057 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001519/0.7574, allocations: 87.88 kB / 0.7058 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/0.7577, allocations: 88.88 kB / 0.7059 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002078/0.7579, allocations: 39.98 kB / 0.7059 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003605/0.7615, allocations: 2.233 MB / 0.7081 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.7e-07/0.7615, allocations: 3.938 kB / 0.7081 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004098/0.7656, allocations: 0.8828 MB / 0.709 GB, free: 2.906 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.009297/0.7749, allocations: 6.455 MB / 0.7153 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00862/0.7836, allocations: 4.924 MB / 0.7201 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.7836, allocations: 0 / 0.7201 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003592/0.7873, allocations: 1.764 MB / 0.7218 GB, free: 5.734 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003086/0.7904, allocations: 414.6 kB / 0.7222 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3369/1.127, allocations: 41.07 MB / 0.7623 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002851/1.13, allocations: 2.923 MB / 0.7652 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00346/1.134, allocations: 1.732 MB / 0.7669 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002197/1.136, allocations: 1.593 MB / 0.7684 GB, free: 158.9 MB / 0.5762 GB Notification: Performance of SimCode: time 6.31e-07/1.136, allocations: 0 / 0.7684 GB, free: 158.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09459/1.231, allocations: 64.07 MB / 0.831 GB, free: 95.32 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.01/22.24, allocations: 18.28 kB / 0.831 GB, free: 95.31 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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