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: translateModel(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") translateModel(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000963/0.0009631, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2051/0.2051, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 75.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1268, allocations: 62.45 MB / 481.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01053/0.1374, allocations: 9.446 MB / 490.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006906/0.1443, allocations: 3.812 MB / 494.7 MB, free: 7.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.1457, allocations: 51.88 kB / 494.8 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004045/0.1498, allocations: 2.285 MB / 497 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003974/0.1538, allocations: 1.599 MB / 498.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.1555, allocations: 0.694 MB / 499.3 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005323/0.1609, allocations: 3.805 MB / 0.4914 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003218/0.1641, allocations: 2.902 MB / 0.4942 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.166, allocations: 1.277 MB / 0.4954 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002169/0.1682, allocations: 1.725 MB / 0.4971 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005104/0.1687, allocations: 283.9 kB / 0.4974 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001777/0.1705, allocations: 1.147 MB / 0.4985 GB, free: 7.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.1718, allocations: 1.578 MB / 0.5001 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001671/0.1735, allocations: 1.856 MB / 0.5019 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2118/0.3852, allocations: 6.207 MB / 0.5079 GB, free: 21.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3853, allocations: 0 / 0.5079 GB, free: 21.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3853, allocations: 0 / 0.5079 GB, free: 21.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002143/0.3855, allocations: 0 / 0.5079 GB, free: 21.04 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.01072/0.3963, allocations: 4.156 MB / 0.512 GB, free: 19.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.3963, allocations: 9.625 kB / 0.512 GB, free: 19.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007769/0.4041, allocations: 2 MB / 0.5139 GB, free: 19.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005501/0.4096, allocations: 2.326 MB / 0.5162 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.4098, allocations: 189.9 kB / 0.5164 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006169/0.4104, allocations: 260.6 kB / 0.5166 GB, free: 18.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.4234, allocations: 8.589 MB / 0.525 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/0.4236, allocations: 42.11 kB / 0.5251 GB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003529/0.4239, allocations: 129.1 kB / 0.5252 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002675/0.4266, allocations: 1.738 MB / 0.5269 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/0.4391, allocations: 7.567 MB / 0.5343 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03922/0.4784, allocations: 34.15 MB / 0.5676 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006299/0.4847, allocations: 3.085 MB / 0.5706 GB, free: 8.906 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002097/0.4868, allocations: 1.923 MB / 0.5725 GB, free: 6.977 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003647/0.4872, allocations: 331.8 kB / 0.5728 GB, free: 6.605 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.652e-05/0.4873, allocations: 49.39 kB / 0.5729 GB, free: 6.551 MB / 414.1 MB Notification: Performance of pre-optimization done (n=135): time 3.526e-06/0.4873, allocations: 0 / 0.5729 GB, free: 6.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.03473/0.522, allocations: 15.31 MB / 0.5878 GB, free: 7.156 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.961e-05/0.5221, allocations: 175.2 kB / 0.588 GB, free: 6.949 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004273/0.5264, allocations: 3.521 MB / 0.5914 GB, free: 3.426 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.5266, allocations: 45.7 kB / 0.5915 GB, free: 3.375 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.5282, allocations: 2.636 MB / 0.5941 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005079/0.5287, allocations: 0.6086 MB / 0.5947 GB, free: 160 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001361/0.53, allocations: 1.091 MB / 0.5957 GB, free: 15.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.5301, allocations: 307.9 kB / 0.596 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.5329, allocations: 2.13 MB / 0.5981 GB, free: 12.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004962/0.5379, allocations: 5.335 MB / 0.6033 GB, free: 5.723 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008229/0.5461, allocations: 8.042 MB / 0.6112 GB, free: 12.56 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-05/0.5462, allocations: 32 kB / 0.6112 GB, free: 12.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01347/0.5597, allocations: 8.283 MB / 0.6193 GB, free: 4.453 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.5598, allocations: 54.19 kB / 0.6193 GB, free: 4.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.5599, allocations: 112.9 kB / 0.6194 GB, free: 4.293 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002985/0.5629, allocations: 1.226 MB / 0.6206 GB, free: 3.062 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00462/0.5676, allocations: 1.213 MB / 0.6218 GB, free: 1.848 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.578, allocations: 7.614 MB / 0.6293 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003951/0.582, allocations: 307.5 kB / 0.6296 GB, free: 9.797 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009193/0.5829, allocations: 331.9 kB / 0.6299 GB, free: 9.477 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 (649): * Single equations (assignments): 645 * 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 {(3,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003534/0.5865, allocations: 1.85 MB / 0.6317 GB, free: 7.613 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007317/0.5872, allocations: 300.1 kB / 0.632 GB, free: 7.316 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006451/0.5937, allocations: 3.564 MB / 0.6354 GB, free: 3.738 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-05/0.5937, allocations: 16 kB / 0.6355 GB, free: 3.723 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.99e-05/0.5938, allocations: 8 kB / 0.6355 GB, free: 3.715 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.5938, allocations: 7.969 kB / 0.6355 GB, free: 3.707 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01584/0.6096, allocations: 8.276 MB / 0.6436 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.6097, allocations: 0 / 0.6436 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.6107, allocations: 223.6 kB / 0.6438 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002604/0.6134, allocations: 1.062 MB / 0.6448 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001771/0.6136, allocations: 27.98 kB / 0.6448 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009392/0.623, allocations: 7.193 MB / 0.6519 GB, free: 2.762 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/0.623, allocations: 11.88 kB / 0.6519 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009848/0.6329, allocations: 6.271 MB / 0.658 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/0.6342, allocations: 361 kB / 0.6583 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000724/0.635, allocations: 20 kB / 0.6584 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/0.6366, allocations: 103.8 kB / 0.6585 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/0.6369, allocations: 84.89 kB / 0.6585 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/0.6371, allocations: 46.06 kB / 0.6586 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004275/0.6413, allocations: 2.192 MB / 0.6607 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6413, allocations: 0 / 0.6607 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005062/0.6464, allocations: 0.8906 MB / 0.6616 GB, free: 8.762 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.0004369/0.6469, allocations: 154.1 kB / 0.6617 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008169/0.655, allocations: 5.134 MB / 0.6668 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.341e-06/0.6551, allocations: 8.062 kB / 0.6668 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002853/0.6579, allocations: 1.861 MB / 0.6686 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.6602, allocations: 374.9 kB / 0.6689 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/0.6746, allocations: 8.287 MB / 0.677 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002956/0.6776, allocations: 2.886 MB / 0.6798 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003658/0.6812, allocations: 1.714 MB / 0.6815 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006031/0.6819, allocations: 207.4 kB / 0.6817 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of SimCode: time 8.51e-07/0.6819, allocations: 4 kB / 0.6817 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of Templates: time 0.2914/0.9733, allocations: 31.58 MB / 0.7126 GB, free: 180.6 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches