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.001139/0.001139, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001159, allocations: 206.4 kB / 18.58 MB, free: 4.582 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.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2211/0.2211, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 76.53 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1171, allocations: 62.45 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01108/0.1282, allocations: 9.443 MB / 489.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007695/0.1359, allocations: 3.816 MB / 493.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.1376, allocations: 51.88 kB / 493.4 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004368/0.142, allocations: 2.285 MB / 495.7 MB, free: 5.535 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004265/0.1463, allocations: 1.607 MB / 497.3 MB, free: 3.926 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.1481, allocations: 0.6979 MB / 498 MB, free: 3.227 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005071/0.1532, allocations: 3.787 MB / 0.4901 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004124/0.1574, allocations: 2.902 MB / 0.4929 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.1594, allocations: 1.281 MB / 0.4941 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.1622, allocations: 1.721 MB / 0.4958 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008133/0.163, allocations: 284 kB / 0.4961 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.1654, allocations: 1.155 MB / 0.4972 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002/0.1674, allocations: 1.578 MB / 0.4988 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002765/0.1702, allocations: 1.884 MB / 0.5006 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2326/0.4028, allocations: 6.075 MB / 0.5065 GB, free: 20.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.4029, allocations: 3.438 kB / 0.5065 GB, free: 20.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4029, allocations: 0 / 0.5065 GB, free: 20.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001547/0.403, allocations: 0.5938 kB / 0.5065 GB, free: 20.51 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: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.008402/0.4114, allocations: 4.241 MB / 0.5107 GB, free: 18.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4115, allocations: 10.5 kB / 0.5107 GB, free: 18.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008312/0.4123, allocations: 0.6099 MB / 0.5113 GB, free: 18.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02204/0.4344, allocations: 3.742 MB / 0.5149 GB, free: 18.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006371/0.4408, allocations: 2.483 MB / 0.5174 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002635/0.4411, allocations: 195.7 kB / 0.5176 GB, free: 18.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/0.4425, allocations: 258.8 kB / 0.5178 GB, free: 18.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01489/0.4574, allocations: 8.522 MB / 0.5261 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/0.4576, allocations: 42.86 kB / 0.5262 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003767/0.458, allocations: 124.7 kB / 0.5263 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002986/0.461, allocations: 1.741 MB / 0.528 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01291/0.4739, allocations: 7.434 MB / 0.5352 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03667/0.5106, allocations: 33.99 MB / 0.5684 GB, free: 9.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006844/0.5175, allocations: 3.03 MB / 0.5714 GB, free: 6.781 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002147/0.5197, allocations: 1.856 MB / 0.5732 GB, free: 4.918 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003609/0.5201, allocations: 334.9 kB / 0.5735 GB, free: 4.543 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.5201, allocations: 43.22 kB / 0.5736 GB, free: 4.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=135): time 4.038e-06/0.5201, allocations: 0 / 0.5736 GB, free: 4.492 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.04041/0.5605, allocations: 14.36 MB / 0.5876 GB, free: 6.035 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001698/0.5607, allocations: 175.2 kB / 0.5878 GB, free: 5.828 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005901/0.5667, allocations: 3.524 MB / 0.5912 GB, free: 2.305 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003946/0.5671, allocations: 48.83 kB / 0.5913 GB, free: 2.254 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/0.5691, allocations: 2.66 MB / 0.5939 GB, free: 15.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000833/0.5699, allocations: 0.611 MB / 0.5944 GB, free: 15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/0.5716, allocations: 1.061 MB / 0.5955 GB, free: 13.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.191e-05/0.5717, allocations: 301.1 kB / 0.5958 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002831/0.5745, allocations: 2.013 MB / 0.5977 GB, free: 11.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005131/0.5797, allocations: 5.225 MB / 0.6028 GB, free: 4.824 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009089/0.5888, allocations: 7.847 MB / 0.6105 GB, free: 11.86 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-05/0.5889, allocations: 36 kB / 0.6105 GB, free: 11.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01648/0.6054, allocations: 7.789 MB / 0.6181 GB, free: 4.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.6056, allocations: 55.94 kB / 0.6182 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002439/0.6058, allocations: 112 kB / 0.6183 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.6084, allocations: 0.9726 MB / 0.6193 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/0.6123, allocations: 1.185 MB / 0.6204 GB, free: 1.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009234/0.6216, allocations: 6.918 MB / 0.6272 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004137/0.6257, allocations: 299.4 kB / 0.6275 GB, free: 10.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008659/0.6266, allocations: 324 kB / 0.6278 GB, free: 10.25 MB / 478.1 MB 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.004385/0.631, allocations: 1.851 MB / 0.6296 GB, free: 8.387 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000867/0.6319, allocations: 304 kB / 0.6299 GB, free: 8.086 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00612/0.638, allocations: 3.198 MB / 0.633 GB, free: 4.871 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.795e-05/0.6381, allocations: 19.98 kB / 0.633 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/0.6381, allocations: 8 kB / 0.633 GB, free: 4.844 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.317e-05/0.6381, allocations: 7.969 kB / 0.633 GB, free: 4.836 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/0.6528, allocations: 7.923 MB / 0.6408 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.6528, allocations: 0 / 0.6408 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.654, allocations: 231.6 kB / 0.641 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002084/0.6561, allocations: 0.8085 MB / 0.6418 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001568/0.6563, allocations: 28 kB / 0.6418 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008501/0.6648, allocations: 6.434 MB / 0.6481 GB, free: 5.254 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6648, allocations: 0 / 0.6481 GB, free: 5.254 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008829/0.6736, allocations: 5.817 MB / 0.6538 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008542/0.6745, allocations: 357 kB / 0.6541 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006409/0.6752, allocations: 27.98 kB / 0.6541 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/0.6767, allocations: 94.61 kB / 0.6542 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003055/0.677, allocations: 92.81 kB / 0.6543 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.6772, allocations: 36 kB / 0.6543 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00383/0.681, allocations: 2.209 MB / 0.6565 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.681, allocations: 0 / 0.6565 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004627/0.6857, allocations: 0.8555 MB / 0.6573 GB, free: 11.74 MB / 0.4981 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.009461/0.6952, allocations: 6.444 MB / 0.6636 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009329/0.7045, allocations: 5.626 MB / 0.6691 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7046, allocations: 0 / 0.6691 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00305/0.7076, allocations: 1.774 MB / 0.6708 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002977/0.7106, allocations: 396.7 kB / 0.6712 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.26/0.9706, allocations: 45.02 MB / 0.7152 GB, free: 196.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00312/0.9738, allocations: 2.881 MB / 0.718 GB, free: 195.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004555/0.9783, allocations: 1.703 MB / 0.7197 GB, free: 195.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002084/0.9804, allocations: 1.555 MB / 0.7212 GB, free: 194.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/0.9805, allocations: 3.438 kB / 0.7212 GB, free: 194.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09889/1.079, allocations: 65.74 MB / 0.7854 GB, free: 143.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.7, allocations: 10.81 kB / 0.7854 GB, free: 143.9 MB / 0.545 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