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.00167/0.00167, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002251/0.002252, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.711/1.711, allocations: 227.4 MB / 247.1 MB, free: 10.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2278/0.2278, allocations: 46.11 MB / 344.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 75.5 kB / 417.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1602, allocations: 62.44 MB / 480.2 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.03829/0.1985, allocations: 37.21 MB / 0.5052 GB, free: 268 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2675/0.466, allocations: 8.334 MB / 0.5134 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007949/0.474, allocations: 161.6 kB / 0.5135 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004825/0.4789, allocations: 2.193 MB / 0.5157 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00538/0.4843, allocations: 1.496 MB / 0.5171 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.4862, allocations: 0.663 MB / 0.5178 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00643/0.4926, allocations: 4.013 MB / 0.5217 GB, free: 8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003901/0.4966, allocations: 3.053 MB / 0.5247 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.4991, allocations: 1.299 MB / 0.5259 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002811/0.5019, allocations: 1.921 MB / 0.5278 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008926/0.5028, allocations: 282.8 kB / 0.5281 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002595/0.5054, allocations: 1.168 MB / 0.5292 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.5075, allocations: 1.6 MB / 0.5308 GB, free: 4.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002722/0.5102, allocations: 1.88 MB / 0.5326 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00593/0.5161, allocations: 4.933 MB / 0.5374 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.066e-06/0.5162, allocations: 0 / 0.5374 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5162, allocations: 2.531 kB / 0.5375 GB, free: 15.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002025/0.5164, allocations: 0 / 0.5375 GB, free: 15.88 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.01134/0.5278, allocations: 4.151 MB / 0.5415 GB, free: 13.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.5278, allocations: 7.469 kB / 0.5415 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007627/0.5355, allocations: 1.999 MB / 0.5435 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005166/0.5407, allocations: 2.285 MB / 0.5457 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.5409, allocations: 195.3 kB / 0.5459 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009617/0.5419, allocations: 259.7 kB / 0.5461 GB, free: 9.512 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01708/0.5589, allocations: 8.586 MB / 0.5545 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001768/0.5592, allocations: 39.59 kB / 0.5546 GB, free: 368 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009116/0.5601, allocations: 127.2 kB / 0.5547 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00336/0.5635, allocations: 1.741 MB / 0.5564 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/0.5791, allocations: 7.566 MB / 0.5638 GB, free: 6.957 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05057/0.6297, allocations: 34.32 MB / 0.5973 GB, free: 3.828 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007678/0.6374, allocations: 3.083 MB / 0.6003 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002875/0.6403, allocations: 1.915 MB / 0.6022 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004979/0.6409, allocations: 344.4 kB / 0.6025 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.641, allocations: 47.22 kB / 0.6025 GB, free: 14.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 6.432e-06/0.641, allocations: 3.984 kB / 0.6025 GB, free: 14.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.04396/0.6849, allocations: 15.32 MB / 0.6175 GB, free: 14.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001779/0.6852, allocations: 175.2 kB / 0.6177 GB, free: 14.58 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007303/0.6925, allocations: 3.507 MB / 0.6211 GB, free: 11.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000613/0.6931, allocations: 49.7 kB / 0.6211 GB, free: 11.02 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003084/0.6962, allocations: 2.641 MB / 0.6237 GB, free: 8.379 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001393/0.6976, allocations: 0.6061 MB / 0.6243 GB, free: 7.777 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003353/0.701, allocations: 1.102 MB / 0.6254 GB, free: 6.668 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.7012, allocations: 301.1 kB / 0.6257 GB, free: 6.371 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003881/0.705, allocations: 2.119 MB / 0.6277 GB, free: 4.246 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00653/0.7116, allocations: 5.337 MB / 0.633 GB, free: 13.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01296/0.7246, allocations: 8.042 MB / 0.6408 GB, free: 3.664 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002/0.7249, allocations: 32 kB / 0.6408 GB, free: 3.633 MB / 494.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.02676/0.7516, allocations: 8.288 MB / 0.6489 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.7518, allocations: 56 kB / 0.649 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002091/0.7521, allocations: 112 kB / 0.6491 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004915/0.757, allocations: 1.234 MB / 0.6503 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006756/0.7638, allocations: 1.209 MB / 0.6515 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01604/0.7799, allocations: 7.611 MB / 0.6589 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/0.7847, allocations: 315.5 kB / 0.6592 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/0.7859, allocations: 328 kB / 0.6595 GB, free: 356 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.004743/0.7907, allocations: 1.851 MB / 0.6613 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009374/0.7916, allocations: 296.2 kB / 0.6616 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007517/0.7991, allocations: 3.576 MB / 0.6651 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.978e-05/0.7992, allocations: 16 kB / 0.6651 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/0.7993, allocations: 12 kB / 0.6651 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.26e-05/0.7993, allocations: 8.25 kB / 0.6651 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01768/0.817, allocations: 8.272 MB / 0.6732 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.822e-05/0.817, allocations: 0 / 0.6732 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.8182, allocations: 235.6 kB / 0.6734 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002861/0.8211, allocations: 1.062 MB / 0.6745 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002198/0.8214, allocations: 24 kB / 0.6745 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/0.8328, allocations: 7.218 MB / 0.6816 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.8328, allocations: 0 / 0.6816 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0105/0.8433, allocations: 6.268 MB / 0.6877 GB, free: 3.297 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.8445, allocations: 365 kB / 0.688 GB, free: 2.918 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008585/0.8454, allocations: 24 kB / 0.688 GB, free: 2.895 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/0.8472, allocations: 99.84 kB / 0.6881 GB, free: 2.797 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/0.8475, allocations: 84.88 kB / 0.6882 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.8477, allocations: 40 kB / 0.6883 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004942/0.8526, allocations: 2.196 MB / 0.6904 GB, free: 500 kB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8527, allocations: 3.938 kB / 0.6904 GB, free: 496 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006258/0.8589, allocations: 0.8868 MB / 0.6913 GB, free: 15.59 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.0006946/0.8596, allocations: 153.4 kB / 0.6914 GB, free: 15.44 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01071/0.8704, allocations: 5.888 MB / 0.6972 GB, free: 9.566 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.8704, allocations: 0 / 0.6972 GB, free: 9.566 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003389/0.8738, allocations: 1.858 MB / 0.699 GB, free: 7.695 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003796/0.8776, allocations: 378.8 kB / 0.6993 GB, free: 7.328 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2784/1.156, allocations: 10.38 MB / 0.7095 GB, free: 193.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004969/1.161, allocations: 2.875 MB / 0.7123 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00136/1.162, allocations: 249.9 kB / 0.7125 GB, free: 192.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.403e-06/1.162, allocations: 3.719 kB / 0.7125 GB, free: 192.3 MB / 0.545 GB Notification: Performance of Templates: time 0.1011/1.264, allocations: 67.24 MB / 0.7782 GB, free: 146.3 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