Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008609/0.000861, allocations: 96.84 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000829/0.0008292, allocations: 183.6 kB / 17.88 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.2 MB / 241.8 MB, free: 376 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2635/0.2635, allocations: 44.23 MB / 337.1 MB, free: 2.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003675, allocations: 8 kB / 409.5 MB, free: 27.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1827, allocations: 61.93 MB / 471.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.03746/0.2203, allocations: 35.14 MB / 0.4947 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02775/0.2481, allocations: 8.983 MB / 0.5035 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01128/0.2594, allocations: 171.6 kB / 0.5037 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.4022/0.6616, allocations: 1.731 MB / 0.5053 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02269/0.6844, allocations: 5.156 MB / 0.5104 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005452/0.6899, allocations: 0.5635 MB / 0.5109 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04444/0.7343, allocations: 24.71 MB / 0.5351 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007788/0.7422, allocations: 3.589 MB / 0.5386 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.745, allocations: 0.86 MB / 0.5394 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002663/0.7477, allocations: 1.134 MB / 0.5405 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.7488, allocations: 116 kB / 0.5406 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002909/0.7517, allocations: 0.9011 MB / 0.5415 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002159/0.7539, allocations: 1.321 MB / 0.5428 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001693/0.7556, allocations: 0.7295 MB / 0.5435 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007319/0.763, allocations: 4.94 MB / 0.5483 GB, free: 12.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.763, allocations: 4 kB / 0.5483 GB, free: 12.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.838e-06/0.763, allocations: 0 / 0.5483 GB, free: 12.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002508/0.7633, allocations: 0 / 0.5483 GB, free: 12.98 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: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.01107/0.7744, allocations: 3.703 MB / 0.552 GB, free: 9.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.7744, allocations: 11.97 kB / 0.552 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02558/0.8, allocations: 4.904 MB / 0.5568 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008405/0.8085, allocations: 2.367 MB / 0.5591 GB, free: 3.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002613/0.8088, allocations: 195.2 kB / 0.5593 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001541/0.8104, allocations: 269.3 kB / 0.5595 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01883/0.8292, allocations: 8.777 MB / 0.5681 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001369/0.8294, allocations: 37.53 kB / 0.5681 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004181/0.8299, allocations: 126 kB / 0.5682 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003433/0.8333, allocations: 1.805 MB / 0.57 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01644/0.8497, allocations: 7.663 MB / 0.5775 GB, free: 5.281 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04974/0.8995, allocations: 34.48 MB / 0.6112 GB, free: 2.262 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007061/0.9066, allocations: 3.116 MB / 0.6142 GB, free: 15.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004507/0.9071, allocations: 330.8 kB / 0.6145 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.9072, allocations: 47.22 kB / 0.6146 GB, free: 14.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 4.007e-06/0.9072, allocations: 0 / 0.6146 GB, free: 14.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.03593/0.9431, allocations: 15.1 MB / 0.6293 GB, free: 15.34 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.9433, allocations: 175.2 kB / 0.6295 GB, free: 15.13 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005099/0.9484, allocations: 3.658 MB / 0.633 GB, free: 11.48 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003923/0.9488, allocations: 45.7 kB / 0.6331 GB, free: 11.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/0.9509, allocations: 2.713 MB / 0.6357 GB, free: 8.727 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006869/0.9516, allocations: 0.604 MB / 0.6363 GB, free: 8.125 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.9518, allocations: 109.5 kB / 0.6364 GB, free: 8.023 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003301/0.9521, allocations: 0.529 MB / 0.6369 GB, free: 7.488 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002834/0.955, allocations: 1.997 MB / 0.6389 GB, free: 5.484 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004934/0.9599, allocations: 5.232 MB / 0.644 GB, free: 14.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004326/0.9642, allocations: 3.183 MB / 0.6471 GB, free: 11.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.124e-05/0.9643, allocations: 39.92 kB / 0.6472 GB, free: 11.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01276/0.9771, allocations: 7.798 MB / 0.6548 GB, free: 3.691 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.144e-05/0.9772, allocations: 52 kB / 0.6548 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.9773, allocations: 120.1 kB / 0.6549 GB, free: 3.523 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00222/0.9795, allocations: 0.9804 MB / 0.6559 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003525/0.9831, allocations: 1.197 MB / 0.6571 GB, free: 1.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008313/0.9914, allocations: 6.637 MB / 0.6635 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004399/0.9958, allocations: 303.5 kB / 0.6638 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007053/0.9965, allocations: 327.6 kB / 0.6641 GB, free: 9.953 MB / 0.4981 GB 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 (636): * Single equations (assignments): 632 * 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.003917/1, allocations: 1.88 MB / 0.666 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/1.002, allocations: 304 kB / 0.6663 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005614/1.007, allocations: 3.204 MB / 0.6694 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.405e-05/1.007, allocations: 16 kB / 0.6694 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/1.007, allocations: 12 kB / 0.6694 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/1.007, allocations: 7.922 kB / 0.6694 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/1.022, allocations: 7.973 MB / 0.6772 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/1.022, allocations: 4 kB / 0.6772 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/1.023, allocations: 223.6 kB / 0.6774 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002102/1.025, allocations: 0.8046 MB / 0.6782 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/1.025, allocations: 32 kB / 0.6783 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008125/1.033, allocations: 6.146 MB / 0.6843 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.033, allocations: 4 kB / 0.6843 GB, free: 5.152 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009057/1.042, allocations: 5.874 MB / 0.69 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/1.044, allocations: 369 kB / 0.6903 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000344/1.044, allocations: 27.98 kB / 0.6904 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/1.046, allocations: 95.88 kB / 0.6905 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/1.046, allocations: 92.77 kB / 0.6906 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/1.046, allocations: 40 kB / 0.6906 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003524/1.049, allocations: 2.311 MB / 0.6928 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.01e-07/1.049, allocations: 1.641 kB / 0.6929 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004593/1.054, allocations: 0.9019 MB / 0.6937 GB, free: 11.41 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 (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.0004694/1.055, allocations: 179.6 kB / 0.6939 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007529/1.062, allocations: 4.854 MB / 0.6986 GB, free: 6.383 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/1.062, allocations: 8 kB / 0.6987 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002671/1.065, allocations: 1.767 MB / 0.7004 GB, free: 4.598 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/1.067, allocations: 353.9 kB / 0.7007 GB, free: 4.254 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.313/1.38, allocations: 9.69 MB / 0.7102 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005602/1.385, allocations: 3.006 MB / 0.7131 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005642/1.391, allocations: 1.727 MB / 0.7148 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009225/1.392, allocations: 215.9 kB / 0.715 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of SimCode: time 2.475e-06/1.392, allocations: 0 / 0.715 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.0703/1.462, allocations: 33.6 MB / 0.7478 GB, free: 129.8 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches