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.0008298/0.0008296, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009159/0.0009159, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.8 MB / 246.8 MB, free: 9.734 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.18 MB / 345.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.0003111, allocations: 11.98 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1537, allocations: 63.56 MB / 483.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.3612/0.5149, allocations: 36.16 MB / 0.5071 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02048/0.5354, allocations: 8.379 MB / 0.5153 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007755/0.5432, allocations: 157.4 kB / 0.5154 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.5445, allocations: 369.5 kB / 0.5158 GB, free: 10 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00528/0.5498, allocations: 1.515 MB / 0.5172 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001958/0.5517, allocations: 0.6345 MB / 0.5179 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009957/0.5617, allocations: 5.419 MB / 0.5231 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007021/0.5688, allocations: 3.996 MB / 0.527 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003838/0.5726, allocations: 0.938 MB / 0.528 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003045/0.5757, allocations: 1.615 MB / 0.5295 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004626/0.5762, allocations: 120.6 kB / 0.5297 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002232/0.5784, allocations: 1.055 MB / 0.5307 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001405/0.5799, allocations: 1.407 MB / 0.5321 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001824/0.5817, allocations: 1.67 MB / 0.5337 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006574/0.5883, allocations: 5.79 MB / 0.5393 GB, free: 15.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.5883, allocations: 0 / 0.5393 GB, free: 15.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.5883, allocations: 0 / 0.5393 GB, free: 15.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001932/0.5885, allocations: 0 / 0.5393 GB, free: 15.64 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.008484/0.597, allocations: 3.412 MB / 0.5427 GB, free: 13.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.5971, allocations: 13.16 kB / 0.5427 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008045/0.6051, allocations: 2.049 MB / 0.5447 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004639/0.6098, allocations: 2.286 MB / 0.5469 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.61, allocations: 192.6 kB / 0.5471 GB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004991/0.6105, allocations: 267.1 kB / 0.5474 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/0.6235, allocations: 8.592 MB / 0.5558 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.369e-05/0.6236, allocations: 35.66 kB / 0.5558 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003124/0.6239, allocations: 126.1 kB / 0.5559 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003015/0.6269, allocations: 1.74 MB / 0.5576 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.6402, allocations: 7.582 MB / 0.565 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04188/0.6822, allocations: 34.35 MB / 0.5986 GB, free: 3.969 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007023/0.6892, allocations: 3.085 MB / 0.6016 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002484/0.6917, allocations: 1.908 MB / 0.6034 GB, free: 14.81 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003764/0.6921, allocations: 336.1 kB / 0.6037 GB, free: 14.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.6922, allocations: 51.22 kB / 0.6038 GB, free: 14.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 4.088e-06/0.6922, allocations: 0 / 0.6038 GB, free: 14.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.05425/0.7464, allocations: 15.32 MB / 0.6188 GB, free: 14.93 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.7466, allocations: 171.2 kB / 0.6189 GB, free: 14.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007446/0.7541, allocations: 3.515 MB / 0.6224 GB, free: 11.21 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005053/0.7546, allocations: 49.7 kB / 0.6224 GB, free: 11.16 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0028/0.7574, allocations: 2.633 MB / 0.625 GB, free: 8.527 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.7586, allocations: 0.606 MB / 0.6256 GB, free: 7.926 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008398/0.7594, allocations: 469.7 kB / 0.626 GB, free: 7.461 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.7596, allocations: 305.1 kB / 0.6263 GB, free: 7.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004732/0.7643, allocations: 2.119 MB / 0.6284 GB, free: 5.035 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008014/0.7723, allocations: 5.345 MB / 0.6336 GB, free: 14.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01463/0.787, allocations: 8.036 MB / 0.6414 GB, free: 4.457 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001315/0.7872, allocations: 32 kB / 0.6415 GB, free: 4.426 MB / 494.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.02461/0.8118, allocations: 8.286 MB / 0.6496 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.99e-05/0.812, allocations: 56 kB / 0.6496 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/0.8121, allocations: 112 kB / 0.6497 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003131/0.8152, allocations: 1.223 MB / 0.6509 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004125/0.8194, allocations: 1.212 MB / 0.6521 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009598/0.829, allocations: 7.12 MB / 0.6591 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/0.8334, allocations: 323.3 kB / 0.6594 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008319/0.8342, allocations: 331.8 kB / 0.6597 GB, free: 1.637 MB / 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.003668/0.8379, allocations: 1.848 MB / 0.6615 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006993/0.8386, allocations: 296.2 kB / 0.6618 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006772/0.8454, allocations: 3.568 MB / 0.6652 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.617e-05/0.8455, allocations: 26.81 kB / 0.6653 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.91e-05/0.8455, allocations: 8 kB / 0.6653 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/0.8455, allocations: 3.984 kB / 0.6653 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/0.8615, allocations: 8.284 MB / 0.6734 GB, free: 3.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-05/0.8616, allocations: 0 / 0.6734 GB, free: 3.535 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.8628, allocations: 227.7 kB / 0.6736 GB, free: 3.312 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002813/0.8656, allocations: 1.062 MB / 0.6746 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001846/0.8658, allocations: 27.36 kB / 0.6747 GB, free: 2.223 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009761/0.8756, allocations: 6.721 MB / 0.6812 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.8756, allocations: 4 kB / 0.6812 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.8864, allocations: 6.261 MB / 0.6873 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.8876, allocations: 365.2 kB / 0.6877 GB, free: 4.699 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004024/0.888, allocations: 22.66 kB / 0.6877 GB, free: 4.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.8894, allocations: 103.8 kB / 0.6878 GB, free: 4.578 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.8897, allocations: 96.69 kB / 0.6879 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.8898, allocations: 48 kB / 0.6879 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003626/0.8935, allocations: 2.196 MB / 0.6901 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8935, allocations: 0 / 0.6901 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004823/0.8983, allocations: 0.8867 MB / 0.691 GB, free: 1.363 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.0005084/0.8988, allocations: 154.4 kB / 0.6911 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008354/0.9072, allocations: 5.126 MB / 0.6961 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.9072, allocations: 0.75 kB / 0.6961 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.9103, allocations: 1.859 MB / 0.6979 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.9131, allocations: 367.4 kB / 0.6983 GB, free: 9.863 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2685/1.182, allocations: 10.11 MB / 0.7081 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005323/1.187, allocations: 2.885 MB / 0.711 GB, free: 191.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004766/1.192, allocations: 1.707 MB / 0.7126 GB, free: 191.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007525/1.193, allocations: 218.8 kB / 0.7128 GB, free: 191.4 MB / 0.545 GB Notification: Performance of SimCode: time 8.01e-07/1.193, allocations: 0 / 0.7128 GB, free: 191.4 MB / 0.545 GB Notification: Performance of Templates: time 0.06884/1.261, allocations: 34.12 MB / 0.7462 GB, free: 178.4 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches