Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 197.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007879/0.0007882, allocations: 97.12 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2992/0.2992, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003225, allocations: 11.98 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3336, allocations: 62.96 MB / 0.5159 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.0266/0.3602, allocations: 37.21 MB / 0.5522 GB, free: 10.78 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0192/0.3795, allocations: 8.644 MB / 0.5607 GB, free: 4.891 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009036/0.3886, allocations: 173.8 kB / 0.5608 GB, free: 4.863 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006942/0.3955, allocations: 1.932 MB / 0.5627 GB, free: 4.18 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0186/0.4142, allocations: 5.822 MB / 0.5684 GB, free: 1.633 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003299/0.4175, allocations: 0.6187 MB / 0.569 GB, free: 1.242 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03957/0.4571, allocations: 31.92 MB / 0.6002 GB, free: 2.969 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005847/0.463, allocations: 3.861 MB / 0.6039 GB, free: 15.04 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002136/0.4652, allocations: 1.055 MB / 0.605 GB, free: 13.98 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002538/0.4677, allocations: 1.62 MB / 0.6066 GB, free: 12.36 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004793/0.4682, allocations: 120 kB / 0.6067 GB, free: 12.24 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002138/0.4704, allocations: 1.049 MB / 0.6077 GB, free: 11.19 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001446/0.4718, allocations: 1.422 MB / 0.6091 GB, free: 9.762 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001686/0.4735, allocations: 1.613 MB / 0.6107 GB, free: 8.133 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005027/0.4786, allocations: 4.883 MB / 0.6154 GB, free: 3.238 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.321e-05/0.4786, allocations: 0 / 0.6154 GB, free: 3.238 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4786, allocations: 3.938 kB / 0.6154 GB, free: 3.234 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001498/0.4788, allocations: 0 / 0.6154 GB, free: 3.234 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.007127/0.4859, allocations: 3.477 MB / 0.6188 GB, free: 15.69 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.486, allocations: 12.03 kB / 0.6188 GB, free: 15.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007524/0.4935, allocations: 2.074 MB / 0.6209 GB, free: 13.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004921/0.4985, allocations: 2.319 MB / 0.6231 GB, free: 11.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.4986, allocations: 193.4 kB / 0.6233 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006091/0.4992, allocations: 267.7 kB / 0.6236 GB, free: 10.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01406/0.5133, allocations: 8.762 MB / 0.6321 GB, free: 1.395 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001126/0.5135, allocations: 39.64 kB / 0.6322 GB, free: 1.355 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003692/0.5139, allocations: 127.8 kB / 0.6323 GB, free: 1.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002892/0.5168, allocations: 1.801 MB / 0.634 GB, free: 15.43 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01399/0.5308, allocations: 7.686 MB / 0.6416 GB, free: 7.73 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04649/0.5773, allocations: 34.78 MB / 0.6755 GB, free: 3.965 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007134/0.5845, allocations: 3.087 MB / 0.6785 GB, free: 0.7305 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2717/0.8562, allocations: 1.907 MB / 0.6804 GB, free: 134.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005004/0.8568, allocations: 330 kB / 0.6807 GB, free: 133.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.8568, allocations: 47.41 kB / 0.6808 GB, free: 133.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=135): time 5.38e-06/0.8568, allocations: 3.844 kB / 0.6808 GB, free: 133.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.03575/0.8926, allocations: 15.36 MB / 0.6958 GB, free: 128.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/0.8927, allocations: 170.3 kB / 0.6959 GB, free: 128.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005187/0.8979, allocations: 3.531 MB / 0.6994 GB, free: 126.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003969/0.8983, allocations: 47.2 kB / 0.6994 GB, free: 126.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001739/0.9001, allocations: 2.695 MB / 0.702 GB, free: 124.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008067/0.9009, allocations: 0.609 MB / 0.7026 GB, free: 124.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/0.9011, allocations: 105.7 kB / 0.7027 GB, free: 124.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003083/0.9015, allocations: 0.5354 MB / 0.7033 GB, free: 123.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003541/0.905, allocations: 2.111 MB / 0.7053 GB, free: 123.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005537/0.9106, allocations: 5.362 MB / 0.7106 GB, free: 117.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01056/0.9212, allocations: 8.067 MB / 0.7184 GB, free: 111.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001823/0.9214, allocations: 34.38 kB / 0.7185 GB, free: 111.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=703) (initialization): time 0.01552/0.9369, allocations: 8.296 MB / 0.7266 GB, free: 108.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/0.937, allocations: 55.97 kB / 0.7266 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.9372, allocations: 116.4 kB / 0.7267 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/0.9399, allocations: 1.214 MB / 0.7279 GB, free: 107.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003508/0.9434, allocations: 1.224 MB / 0.7291 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007633/0.951, allocations: 7.204 MB / 0.7362 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004941/0.956, allocations: 311.4 kB / 0.7364 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007585/0.9568, allocations: 336.3 kB / 0.7368 GB, free: 100.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 522 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.arrowLine.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 (655): * Single equations (assignments): 651 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00346/0.9602, allocations: 1.885 MB / 0.7386 GB, free: 98.59 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006943/0.9609, allocations: 300.1 kB / 0.7389 GB, free: 98.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005622/0.9666, allocations: 3.567 MB / 0.7424 GB, free: 94.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/0.9666, allocations: 23.94 kB / 0.7424 GB, free: 94.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/0.9666, allocations: 6.5 kB / 0.7424 GB, free: 94.69 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.9667, allocations: 7.969 kB / 0.7424 GB, free: 94.68 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/0.9796, allocations: 8.337 MB / 0.7506 GB, free: 86.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/0.9797, allocations: 0 / 0.7506 GB, free: 86.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.9808, allocations: 235.6 kB / 0.7508 GB, free: 86.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002466/0.9833, allocations: 1.058 MB / 0.7518 GB, free: 85.03 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/0.9835, allocations: 28.94 kB / 0.7518 GB, free: 85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007392/0.9909, allocations: 6.716 MB / 0.7584 GB, free: 78.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.991, allocations: 4 kB / 0.7584 GB, free: 78.15 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008041/0.999, allocations: 6.25 MB / 0.7645 GB, free: 71.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/1, allocations: 368.9 kB / 0.7649 GB, free: 71.49 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003871/1, allocations: 25.09 kB / 0.7649 GB, free: 71.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/1.002, allocations: 107.8 kB / 0.765 GB, free: 71.36 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002912/1.002, allocations: 84.88 kB / 0.7651 GB, free: 71.28 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/1.002, allocations: 41.09 kB / 0.7651 GB, free: 71.24 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002837/1.005, allocations: 2.197 MB / 0.7673 GB, free: 69.05 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.005, allocations: 4 kB / 0.7673 GB, free: 69.05 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004268/1.009, allocations: 0.9137 MB / 0.7682 GB, free: 68.14 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003566/1.01, allocations: 163.5 kB / 0.7683 GB, free: 67.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006642/1.016, allocations: 5.066 MB / 0.7733 GB, free: 62.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.016, allocations: 4.062 kB / 0.7733 GB, free: 62.92 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002499/1.019, allocations: 1.858 MB / 0.7751 GB, free: 61.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/1.022, allocations: 364 kB / 0.7754 GB, free: 60.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01388/1.035, allocations: 10.25 MB / 0.7854 GB, free: 50.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00246/1.038, allocations: 2.914 MB / 0.7883 GB, free: 47.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.039, allocations: 251.4 kB / 0.7885 GB, free: 47.21 MB / 490.7 MB Notification: Performance of SimCode: time 9.72e-07/1.039, allocations: 0 / 0.7885 GB, free: 47.21 MB / 490.7 MB Notification: Performance of Templates: time 0.07976/1.119, allocations: 67.67 MB / 0.8546 GB, free: 11.56 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches