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.0009316/0.0009316, allocations: 94.72 kB / 17.35 MB, free: 6.371 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.0009848/0.0009848, allocations: 172.7 kB / 18.25 MB, free: 5.527 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.275/1.275, allocations: 223.3 MB / 242.3 MB, free: 14.46 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.1868/0.1868, allocations: 44.23 MB / 337.7 MB, free: 2.41 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002857, allocations: 8.719 kB / 410.4 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1028, allocations: 61.93 MB / 472.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.03523/0.1381, allocations: 39.94 MB / 0.5003 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2307/0.3688, allocations: 9.07 MB / 0.5092 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006655/0.3755, allocations: 171.7 kB / 0.5093 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.3767, allocations: 370.6 kB / 0.5097 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004228/0.3809, allocations: 1.556 MB / 0.5112 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001721/0.3826, allocations: 0.6409 MB / 0.5118 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007284/0.3899, allocations: 5.47 MB / 0.5172 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00637/0.3963, allocations: 4.009 MB / 0.5211 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002399/0.3987, allocations: 0.9547 MB / 0.522 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00291/0.4017, allocations: 1.644 MB / 0.5236 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008046/0.4025, allocations: 119.6 kB / 0.5237 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.4053, allocations: 1.078 MB / 0.5248 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001905/0.4072, allocations: 1.46 MB / 0.5262 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002235/0.4095, allocations: 1.741 MB / 0.5279 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005341/0.4148, allocations: 5.998 MB / 0.5338 GB, free: 3.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.4148, allocations: 2.594 kB / 0.5338 GB, free: 3.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4148, allocations: 0 / 0.5338 GB, free: 3.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000232/0.4151, allocations: 0 / 0.5338 GB, free: 3.363 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.007794/0.4229, allocations: 3.538 MB / 0.5372 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.4229, allocations: 7.969 kB / 0.5372 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008542/0.4238, allocations: 0.6208 MB / 0.5378 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02136/0.4451, allocations: 3.837 MB / 0.5416 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005047/0.4502, allocations: 2.609 MB / 0.5441 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.4504, allocations: 201.8 kB / 0.5443 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004882/0.4509, allocations: 267.7 kB / 0.5446 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01229/0.4632, allocations: 8.709 MB / 0.5531 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.78e-05/0.4633, allocations: 41.66 kB / 0.5531 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003142/0.4636, allocations: 131.2 kB / 0.5532 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00298/0.4666, allocations: 1.804 MB / 0.555 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01279/0.4794, allocations: 7.596 MB / 0.5624 GB, free: 9.441 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03832/0.5178, allocations: 34.45 MB / 0.5961 GB, free: 6.211 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006434/0.5242, allocations: 3.039 MB / 0.599 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002206/0.5265, allocations: 1.846 MB / 0.6008 GB, free: 1.168 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003461/0.5268, allocations: 336.8 kB / 0.6012 GB, free: 0.793 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.5269, allocations: 47.22 kB / 0.6012 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of pre-optimization done (n=135): time 3.897e-06/0.5269, allocations: 4 kB / 0.6012 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.03784/0.5647, allocations: 14.41 MB / 0.6153 GB, free: 2.18 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.5649, allocations: 175.1 kB / 0.6154 GB, free: 1.973 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005615/0.5705, allocations: 3.56 MB / 0.6189 GB, free: 14.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003115/0.5708, allocations: 45.7 kB / 0.619 GB, free: 14.36 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.5727, allocations: 2.705 MB / 0.6216 GB, free: 11.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007677/0.5734, allocations: 0.6082 MB / 0.6222 GB, free: 11.05 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007116/0.5742, allocations: 457.4 kB / 0.6226 GB, free: 10.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.5743, allocations: 301.1 kB / 0.6229 GB, free: 10.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00315/0.5774, allocations: 2.021 MB / 0.6249 GB, free: 8.277 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004956/0.5824, allocations: 5.267 MB / 0.63 GB, free: 1.375 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00802/0.5904, allocations: 7.904 MB / 0.6378 GB, free: 7.871 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.384e-05/0.5905, allocations: 35.94 kB / 0.6378 GB, free: 7.836 MB / 494.1 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01238/0.6029, allocations: 7.859 MB / 0.6455 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.364e-05/0.603, allocations: 52 kB / 0.6455 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/0.6032, allocations: 116.8 kB / 0.6456 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002291/0.6055, allocations: 0.9726 MB / 0.6466 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003545/0.609, allocations: 1.197 MB / 0.6478 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007705/0.6168, allocations: 6.467 MB / 0.6541 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003685/0.6205, allocations: 303.5 kB / 0.6544 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007511/0.6212, allocations: 324 kB / 0.6547 GB, free: 6.41 MB / 0.4981 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.0033/0.6246, allocations: 1.872 MB / 0.6565 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006533/0.6252, allocations: 308.1 kB / 0.6568 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005756/0.631, allocations: 3.202 MB / 0.6599 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-05/0.631, allocations: 23.75 kB / 0.6599 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.6311, allocations: 11.98 kB / 0.6599 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.6311, allocations: 3.984 kB / 0.66 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.6449, allocations: 7.979 MB / 0.6677 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.6449, allocations: 0 / 0.6677 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.646, allocations: 227.7 kB / 0.668 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/0.6481, allocations: 0.8099 MB / 0.6688 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001369/0.6482, allocations: 31.98 kB / 0.6688 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007595/0.6558, allocations: 5.979 MB / 0.6746 GB, free: 1.762 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6558, allocations: 4 kB / 0.6746 GB, free: 1.758 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008261/0.6641, allocations: 5.822 MB / 0.6803 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.6652, allocations: 364.9 kB / 0.6807 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006806/0.6659, allocations: 28 kB / 0.6807 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.6674, allocations: 95.86 kB / 0.6808 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.6677, allocations: 84.83 kB / 0.6809 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.6678, allocations: 51.06 kB / 0.6809 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003816/0.6716, allocations: 2.222 MB / 0.6831 GB, free: 9.078 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6716, allocations: 4 kB / 0.6831 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004014/0.6757, allocations: 0.8789 MB / 0.6839 GB, free: 8.195 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 (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.008444/0.6841, allocations: 6.451 MB / 0.6902 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007172/0.6913, allocations: 4.893 MB / 0.695 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.6913, allocations: 0 / 0.695 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002637/0.694, allocations: 1.776 MB / 0.6968 GB, free: 11.04 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00279/0.6968, allocations: 381.4 kB / 0.6971 GB, free: 10.67 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2622/0.9589, allocations: 47.17 MB / 0.7432 GB, free: 180.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002218/0.9612, allocations: 2.919 MB / 0.746 GB, free: 179.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003217/0.9644, allocations: 1.725 MB / 0.7477 GB, free: 178.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/0.9659, allocations: 1.599 MB / 0.7493 GB, free: 177.6 MB / 0.545 GB Notification: Performance of SimCode: time 6.81e-07/0.9659, allocations: 0 / 0.7493 GB, free: 177.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06807/1.034, allocations: 64.08 MB / 0.8119 GB, free: 116.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/1.034, allocations: 245.5 kB / 0.8121 GB, free: 116.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.142/4.176, allocations: 0 / 0.8121 GB, free: 116.1 MB / 0.545 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