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.0009491/0.0009491, allocations: 93 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001147, allocations: 199.8 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.7 MB / 247.5 MB, free: 11.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2076/0.2076, allocations: 46.19 MB / 345.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003135/0.0003135, allocations: 8 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 63.56 MB / 483.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.2869/0.4078, allocations: 36.16 MB / 0.5077 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02071/0.4286, allocations: 8.374 MB / 0.5159 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008306/0.4369, allocations: 158.2 kB / 0.516 GB, free: 10 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001615/0.4385, allocations: 370.8 kB / 0.5164 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005248/0.4438, allocations: 1.512 MB / 0.5179 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001941/0.4458, allocations: 0.6369 MB / 0.5185 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007871/0.4537, allocations: 5.41 MB / 0.5238 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006341/0.46, allocations: 4.003 MB / 0.5277 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002247/0.4623, allocations: 0.9422 MB / 0.5286 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002882/0.4652, allocations: 1.612 MB / 0.5302 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007207/0.4659, allocations: 118 kB / 0.5303 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.4684, allocations: 1.057 MB / 0.5313 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001844/0.4703, allocations: 1.406 MB / 0.5327 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002787/0.4731, allocations: 1.675 MB / 0.5343 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005064/0.4782, allocations: 4.769 MB / 0.539 GB, free: 376 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4782, allocations: 0 / 0.539 GB, free: 376 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4782, allocations: 0 / 0.539 GB, free: 376 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002347/0.4784, allocations: 3.938 kB / 0.539 GB, free: 372 kB / 382.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.00868/0.4871, allocations: 3.412 MB / 0.5423 GB, free: 13.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4872, allocations: 13.22 kB / 0.5423 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008664/0.4959, allocations: 2.048 MB / 0.5443 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005249/0.5011, allocations: 2.292 MB / 0.5466 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/0.5014, allocations: 198.7 kB / 0.5468 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.5024, allocations: 260.1 kB / 0.547 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01532/0.5178, allocations: 8.586 MB / 0.5554 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.5179, allocations: 39.66 kB / 0.5554 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006286/0.5186, allocations: 126.5 kB / 0.5556 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003224/0.5218, allocations: 1.743 MB / 0.5573 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/0.536, allocations: 7.565 MB / 0.5646 GB, free: 8.113 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04731/0.5833, allocations: 34.35 MB / 0.5982 GB, free: 4.953 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007356/0.5907, allocations: 3.087 MB / 0.6012 GB, free: 1.719 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002475/0.5932, allocations: 1.908 MB / 0.6031 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003895/0.5937, allocations: 331.1 kB / 0.6034 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.03e-05/0.5937, allocations: 51.16 kB / 0.6034 GB, free: 15.37 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 3.897e-06/0.5937, allocations: 0 / 0.6034 GB, free: 15.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.04078/0.6345, allocations: 15.31 MB / 0.6184 GB, free: 15.93 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.428e-05/0.6346, allocations: 171.2 kB / 0.6186 GB, free: 15.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006024/0.6407, allocations: 3.511 MB / 0.622 GB, free: 12.21 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000404/0.6411, allocations: 49.7 kB / 0.622 GB, free: 12.16 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002061/0.6432, allocations: 2.636 MB / 0.6246 GB, free: 9.523 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009532/0.6442, allocations: 0.6064 MB / 0.6252 GB, free: 8.922 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000934/0.6451, allocations: 469.7 kB / 0.6256 GB, free: 8.457 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.6452, allocations: 305.1 kB / 0.6259 GB, free: 8.156 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003503/0.6487, allocations: 2.126 MB / 0.628 GB, free: 6.023 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006034/0.6548, allocations: 5.341 MB / 0.6332 GB, free: 15.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009731/0.6645, allocations: 8.036 MB / 0.6411 GB, free: 5.449 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.944e-05/0.6647, allocations: 36 kB / 0.6411 GB, free: 5.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01614/0.6808, allocations: 8.286 MB / 0.6492 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.681, allocations: 56.03 kB / 0.6493 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001842/0.6812, allocations: 112 kB / 0.6494 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00327/0.6845, allocations: 1.226 MB / 0.6506 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004168/0.6886, allocations: 1.216 MB / 0.6517 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00987/0.6985, allocations: 7.121 MB / 0.6587 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003889/0.7025, allocations: 313.6 kB / 0.659 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008476/0.7033, allocations: 335.9 kB / 0.6593 GB, free: 2.621 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.003433/0.7068, allocations: 1.848 MB / 0.6611 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006696/0.7074, allocations: 296.2 kB / 0.6614 GB, free: 476 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006942/0.7144, allocations: 3.572 MB / 0.6649 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-05/0.7145, allocations: 18.97 kB / 0.6649 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.7145, allocations: 11.94 kB / 0.6649 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/0.7145, allocations: 3.984 kB / 0.6649 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/0.7305, allocations: 8.291 MB / 0.673 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.7306, allocations: 0 / 0.673 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.7317, allocations: 223.7 kB / 0.6732 GB, free: 4.297 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002856/0.7346, allocations: 1.062 MB / 0.6743 GB, free: 3.23 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001792/0.7348, allocations: 27.98 kB / 0.6743 GB, free: 3.203 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009442/0.7443, allocations: 6.717 MB / 0.6809 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.7443, allocations: 0 / 0.6809 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/0.7547, allocations: 6.264 MB / 0.687 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.7558, allocations: 365.1 kB / 0.6873 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007419/0.7566, allocations: 27.94 kB / 0.6874 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00174/0.7583, allocations: 107.8 kB / 0.6875 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003135/0.7587, allocations: 85 kB / 0.6875 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/0.7588, allocations: 40 kB / 0.6876 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004359/0.7632, allocations: 2.2 MB / 0.6897 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7632, allocations: 0 / 0.6897 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004728/0.768, allocations: 0.8828 MB / 0.6906 GB, free: 2.359 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.0005132/0.7685, allocations: 171.4 kB / 0.6907 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0082/0.7767, allocations: 5.128 MB / 0.6958 GB, free: 13.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7767, allocations: 0 / 0.6958 GB, free: 13.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003093/0.7798, allocations: 1.86 MB / 0.6976 GB, free: 11.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002967/0.7828, allocations: 359.1 kB / 0.6979 GB, free: 10.85 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0165/0.7993, allocations: 10.47 MB / 0.7081 GB, free: 352 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2192/1.019, allocations: 2.867 MB / 0.7109 GB, free: 191.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/1.02, allocations: 255.9 kB / 0.7112 GB, free: 191.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.593e-06/1.02, allocations: 0 / 0.7112 GB, free: 191.9 MB / 0.545 GB Notification: Performance of Templates: time 0.08202/1.102, allocations: 66.52 MB / 0.7761 GB, free: 149 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