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.001117/0.001117, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001276, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 9.008 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.12 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 77.16 kB / 417.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.122, allocations: 62.43 MB / 479.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.03659/0.1587, allocations: 37.22 MB / 0.505 GB, free: 332 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2781/0.4368, allocations: 8.441 MB / 0.5133 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008742/0.4456, allocations: 157.8 kB / 0.5134 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004833/0.4505, allocations: 2.277 MB / 0.5156 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005088/0.4556, allocations: 1.501 MB / 0.5171 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.4575, allocations: 0.6389 MB / 0.5177 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008032/0.4655, allocations: 5.413 MB / 0.523 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003663/0.4692, allocations: 2.832 MB / 0.5258 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002228/0.4715, allocations: 1.119 MB / 0.5269 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.4742, allocations: 1.844 MB / 0.5287 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005003/0.4747, allocations: 192.3 kB / 0.5289 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002126/0.4768, allocations: 1.13 MB / 0.53 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001379/0.4782, allocations: 1.511 MB / 0.5314 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001522/0.4797, allocations: 1.789 MB / 0.5332 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00381/0.4836, allocations: 4.882 MB / 0.538 GB, free: 15.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.4836, allocations: 0 / 0.538 GB, free: 15.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4836, allocations: 2.438 kB / 0.538 GB, free: 15.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001138/0.4837, allocations: 7.938 kB / 0.538 GB, free: 15.59 MB / 398.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.008474/0.4922, allocations: 4.143 MB / 0.542 GB, free: 12.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.4923, allocations: 15.16 kB / 0.542 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007814/0.5001, allocations: 2.001 MB / 0.544 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005164/0.5053, allocations: 2.284 MB / 0.5462 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.5055, allocations: 192.3 kB / 0.5464 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008965/0.5064, allocations: 259.8 kB / 0.5466 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01767/0.5241, allocations: 8.588 MB / 0.555 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001731/0.5243, allocations: 39.66 kB / 0.5551 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001002/0.5253, allocations: 128.3 kB / 0.5552 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003204/0.5285, allocations: 1.741 MB / 0.5569 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01507/0.5436, allocations: 7.562 MB / 0.5643 GB, free: 6.227 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04542/0.5891, allocations: 34.32 MB / 0.5978 GB, free: 3.102 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007211/0.5963, allocations: 3.084 MB / 0.6008 GB, free: 15.87 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002559/0.5989, allocations: 1.921 MB / 0.6027 GB, free: 13.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004382/0.5994, allocations: 326.6 kB / 0.603 GB, free: 13.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.33e-05/0.5995, allocations: 47.2 kB / 0.603 GB, free: 13.51 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 5.591e-06/0.5995, allocations: 0 / 0.603 GB, free: 13.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.04047/0.64, allocations: 15.33 MB / 0.618 GB, free: 14.06 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.6401, allocations: 175.2 kB / 0.6182 GB, free: 13.86 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007857/0.648, allocations: 3.507 MB / 0.6216 GB, free: 10.34 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000392/0.6484, allocations: 48.55 kB / 0.6216 GB, free: 10.29 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002621/0.6511, allocations: 2.64 MB / 0.6242 GB, free: 7.656 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009659/0.6521, allocations: 0.6096 MB / 0.6248 GB, free: 7.051 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002654/0.6547, allocations: 1.094 MB / 0.6259 GB, free: 5.949 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.6549, allocations: 309.1 kB / 0.6262 GB, free: 5.645 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003533/0.6584, allocations: 2.123 MB / 0.6282 GB, free: 3.516 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006061/0.6645, allocations: 5.337 MB / 0.6335 GB, free: 12.56 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.6748, allocations: 8.038 MB / 0.6413 GB, free: 2.941 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/0.6749, allocations: 32 kB / 0.6413 GB, free: 2.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.017/0.6919, allocations: 8.291 MB / 0.6494 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001548/0.6921, allocations: 55.5 kB / 0.6495 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002053/0.6923, allocations: 112 kB / 0.6496 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003278/0.6956, allocations: 1.222 MB / 0.6508 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004144/0.6998, allocations: 1.216 MB / 0.652 GB, free: 8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.7099, allocations: 7.121 MB / 0.6589 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00496/0.7149, allocations: 315.4 kB / 0.6592 GB, free: 452 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001196/0.7161, allocations: 334.1 kB / 0.6596 GB, free: 120 kB / 0.4981 GB 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.004372/0.7205, allocations: 1.844 MB / 0.6614 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009565/0.7215, allocations: 296.2 kB / 0.6616 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00694/0.7285, allocations: 3.572 MB / 0.6651 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-05/0.7285, allocations: 20 kB / 0.6651 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.7285, allocations: 4 kB / 0.6651 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.947e-05/0.7286, allocations: 7.984 kB / 0.6652 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/0.7454, allocations: 8.277 MB / 0.6732 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.7454, allocations: 0 / 0.6732 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.7466, allocations: 231.6 kB / 0.6735 GB, free: 1.805 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0029/0.7495, allocations: 1.058 MB / 0.6745 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002165/0.7497, allocations: 24 kB / 0.6745 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009645/0.7594, allocations: 6.727 MB / 0.6811 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.7594, allocations: 0 / 0.6811 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01121/0.7706, allocations: 6.265 MB / 0.6872 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.7719, allocations: 357.1 kB / 0.6875 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008856/0.7728, allocations: 24 kB / 0.6876 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001914/0.7747, allocations: 107.8 kB / 0.6877 GB, free: 3.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003586/0.7751, allocations: 88.75 kB / 0.6878 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.7753, allocations: 42.03 kB / 0.6878 GB, free: 2.945 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004825/0.7801, allocations: 2.2 MB / 0.6899 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.61e-07/0.7801, allocations: 4.094 kB / 0.6899 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005409/0.7855, allocations: 0.8867 MB / 0.6908 GB, free: 15.86 MB / 0.545 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.0006009/0.7861, allocations: 158.1 kB / 0.691 GB, free: 15.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008706/0.7949, allocations: 5.117 MB / 0.696 GB, free: 10.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.7949, allocations: 0 / 0.696 GB, free: 10.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003125/0.798, allocations: 1.864 MB / 0.6978 GB, free: 8.723 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002919/0.801, allocations: 351.6 kB / 0.6981 GB, free: 8.379 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.271/1.072, allocations: 10.39 MB / 0.7083 GB, free: 193.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004335/1.076, allocations: 2.87 MB / 0.7111 GB, free: 192.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/1.078, allocations: 254 kB / 0.7113 GB, free: 192.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.533e-06/1.078, allocations: 3.406 kB / 0.7113 GB, free: 192.5 MB / 0.545 GB Notification: Performance of Templates: time 0.1019/1.18, allocations: 67.23 MB / 0.777 GB, free: 147.8 MB / 0.545 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 -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