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.001091/0.001092, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001226, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2364/0.2364, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 79.88 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3903, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01125/0.4016, allocations: 9.456 MB / 0.5402 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009778/0.4114, allocations: 3.815 MB / 0.544 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003578/0.415, allocations: 52.72 kB / 0.544 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005341/0.4205, allocations: 2.277 MB / 0.5462 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007151/0.4276, allocations: 1.607 MB / 0.5478 GB, free: 484 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002956/0.4306, allocations: 0.6979 MB / 0.5485 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008053/0.4387, allocations: 3.801 MB / 0.5522 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004995/0.4437, allocations: 2.894 MB / 0.555 GB, free: 9.023 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/0.4469, allocations: 1.289 MB / 0.5563 GB, free: 7.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004513/0.4515, allocations: 1.721 MB / 0.558 GB, free: 6.004 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001624/0.4531, allocations: 284 kB / 0.5582 GB, free: 5.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003691/0.4568, allocations: 1.147 MB / 0.5594 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002588/0.4594, allocations: 1.574 MB / 0.5609 GB, free: 3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004083/0.4635, allocations: 1.86 MB / 0.5627 GB, free: 1.129 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01024/0.4738, allocations: 6.235 MB / 0.5688 GB, free: 10.87 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.4739, allocations: 0 / 0.5688 GB, free: 10.87 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.4739, allocations: 4 kB / 0.5688 GB, free: 10.87 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002852/0.4742, allocations: 0 / 0.5688 GB, free: 10.87 MB / 430.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.01287/0.487, allocations: 4.254 MB / 0.573 GB, free: 6.539 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.4871, allocations: 16.02 kB / 0.573 GB, free: 6.523 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008105/0.4952, allocations: 2.022 MB / 0.5749 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007139/0.5024, allocations: 2.328 MB / 0.5772 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/0.5027, allocations: 193.3 kB / 0.5774 GB, free: 1.93 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009342/0.5036, allocations: 263.9 kB / 0.5777 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/0.521, allocations: 8.588 MB / 0.586 GB, free: 8.465 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/0.5212, allocations: 39.64 kB / 0.5861 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000356/0.5216, allocations: 131.9 kB / 0.5862 GB, free: 8.297 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003128/0.5247, allocations: 1.735 MB / 0.5879 GB, free: 6.562 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01486/0.5396, allocations: 7.565 MB / 0.5953 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04714/0.5868, allocations: 34.22 MB / 0.6287 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007551/0.5944, allocations: 3.09 MB / 0.6317 GB, free: 8.551 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002644/0.5971, allocations: 1.919 MB / 0.6336 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004411/0.5976, allocations: 335.7 kB / 0.6339 GB, free: 6.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.5977, allocations: 47.22 kB / 0.634 GB, free: 6.176 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.929e-06/0.5977, allocations: 0 / 0.634 GB, free: 6.176 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.04037/0.638, allocations: 15.51 MB / 0.6491 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.6382, allocations: 175.2 kB / 0.6493 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005351/0.6436, allocations: 3.524 MB / 0.6527 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004934/0.6441, allocations: 49.7 kB / 0.6528 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002432/0.6465, allocations: 2.749 MB / 0.6554 GB, free: 0 / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00117/0.6477, allocations: 0.6319 MB / 0.6561 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001972/0.6497, allocations: 1.111 MB / 0.6571 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000252/0.65, allocations: 301.1 kB / 0.6574 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003226/0.6532, allocations: 2.123 MB / 0.6595 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008128/0.6614, allocations: 5.337 MB / 0.6647 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/0.6735, allocations: 8.033 MB / 0.6726 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002099/0.6738, allocations: 35.98 kB / 0.6726 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01813/0.6919, allocations: 8.303 MB / 0.6807 GB, free: 2.895 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/0.6921, allocations: 56 kB / 0.6808 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002101/0.6923, allocations: 112 kB / 0.6809 GB, free: 2.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003204/0.6955, allocations: 1.235 MB / 0.6821 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004229/0.6998, allocations: 1.209 MB / 0.6833 GB, free: 288 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/0.71, allocations: 7.606 MB / 0.6907 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00451/0.7145, allocations: 311.5 kB / 0.691 GB, free: 8.227 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009805/0.7155, allocations: 328 kB / 0.6913 GB, free: 7.906 MB / 0.545 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.004078/0.7196, allocations: 1.848 MB / 0.6931 GB, free: 6.043 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/0.7207, allocations: 317.9 kB / 0.6934 GB, free: 5.73 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007458/0.7281, allocations: 3.572 MB / 0.6969 GB, free: 2.145 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-05/0.7282, allocations: 20 kB / 0.6969 GB, free: 2.125 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.297e-05/0.7282, allocations: 4 kB / 0.6969 GB, free: 2.121 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.592e-05/0.7283, allocations: 7.969 kB / 0.6969 GB, free: 2.113 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01963/0.7479, allocations: 8.165 MB / 0.7049 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.748, allocations: 4 kB / 0.7049 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.7491, allocations: 231.9 kB / 0.7051 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002811/0.7519, allocations: 1.066 MB / 0.7062 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001896/0.7521, allocations: 24 kB / 0.7062 GB, free: 8.547 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009695/0.7618, allocations: 7.272 MB / 0.7133 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.7619, allocations: 4 kB / 0.7133 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009994/0.7719, allocations: 6.292 MB / 0.7194 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/0.7732, allocations: 378.8 kB / 0.7198 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009598/0.7741, allocations: 24 kB / 0.7198 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/0.776, allocations: 99.84 kB / 0.7199 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/0.7764, allocations: 84.89 kB / 0.72 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001559/0.7766, allocations: 43.98 kB / 0.72 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005084/0.7817, allocations: 2.192 MB / 0.7222 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7817, allocations: 3.938 kB / 0.7222 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006484/0.7882, allocations: 0.8944 MB / 0.723 GB, free: 7.102 MB / 0.5762 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.0007433/0.7889, allocations: 151 kB / 0.7232 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009329/0.7983, allocations: 5.149 MB / 0.7282 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.7983, allocations: 4.312 kB / 0.7282 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.315/1.113, allocations: 1.866 MB / 0.73 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003773/1.117, allocations: 363.7 kB / 0.7304 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01692/1.134, allocations: 8.41 MB / 0.7386 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003836/1.138, allocations: 2.89 MB / 0.7414 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00384/1.142, allocations: 1.711 MB / 0.7431 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008336/1.143, allocations: 218 kB / 0.7433 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.794e-06/1.143, allocations: 0 / 0.7433 GB, free: 177.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.05516/1.198, allocations: 33.46 MB / 0.776 GB, free: 148.9 MB / 0.5762 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