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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001227/0.001227, allocations: 115.7 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 201.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2859/0.2859, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 78.69 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.146, allocations: 62.45 MB / 479.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.03759/0.1837, allocations: 37.22 MB / 0.5047 GB, free: 144 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3232/0.5069, allocations: 8.339 MB / 0.5128 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01002/0.5169, allocations: 163.3 kB / 0.513 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005121/0.5222, allocations: 2.193 MB / 0.5151 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005382/0.5276, allocations: 1.501 MB / 0.5166 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.5295, allocations: 0.6602 MB / 0.5173 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006823/0.5364, allocations: 4 MB / 0.5212 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004204/0.5406, allocations: 3.051 MB / 0.5241 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002641/0.5432, allocations: 1.303 MB / 0.5254 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002915/0.5462, allocations: 1.921 MB / 0.5273 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007077/0.5469, allocations: 281.2 kB / 0.5276 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002334/0.5493, allocations: 1.169 MB / 0.5287 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001548/0.5508, allocations: 1.605 MB / 0.5303 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.5528, allocations: 1.902 MB / 0.5321 GB, free: 3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0064/0.5592, allocations: 6.13 MB / 0.5381 GB, free: 14.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.5593, allocations: 0 / 0.5381 GB, free: 14.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.5593, allocations: 0 / 0.5381 GB, free: 14.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001395/0.5594, allocations: 0 / 0.5381 GB, free: 14.95 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.009888/0.5693, allocations: 4.234 MB / 0.5422 GB, free: 12.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.5694, allocations: 11.62 kB / 0.5423 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001092/0.5705, allocations: 0.6073 MB / 0.5428 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0214/0.5919, allocations: 3.739 MB / 0.5465 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006631/0.5986, allocations: 2.491 MB / 0.5489 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002062/0.5988, allocations: 194.8 kB / 0.5491 GB, free: 5.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001481/0.6003, allocations: 263.3 kB / 0.5494 GB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01664/0.6169, allocations: 8.525 MB / 0.5577 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/0.6171, allocations: 43.59 kB / 0.5577 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005078/0.6176, allocations: 124 kB / 0.5579 GB, free: 12.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00292/0.6206, allocations: 1.737 MB / 0.5595 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01384/0.6344, allocations: 7.442 MB / 0.5668 GB, free: 3.289 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04032/0.6748, allocations: 34 MB / 0.6 GB, free: 492 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006561/0.6814, allocations: 3.018 MB / 0.603 GB, free: 13.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002117/0.6835, allocations: 1.851 MB / 0.6048 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003779/0.6839, allocations: 330.1 kB / 0.6051 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.684, allocations: 51.16 kB / 0.6051 GB, free: 11.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 3.998e-06/0.684, allocations: 0 / 0.6051 GB, free: 11.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.03838/0.7224, allocations: 14.36 MB / 0.6192 GB, free: 12.52 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.964e-05/0.7225, allocations: 179.2 kB / 0.6193 GB, free: 12.31 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007568/0.7301, allocations: 3.517 MB / 0.6228 GB, free: 8.789 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002847/0.7304, allocations: 45.7 kB / 0.6228 GB, free: 8.738 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002388/0.7328, allocations: 2.661 MB / 0.6254 GB, free: 6.078 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001219/0.734, allocations: 0.6103 MB / 0.626 GB, free: 5.473 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003239/0.7373, allocations: 1.059 MB / 0.627 GB, free: 4.402 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.7374, allocations: 301.1 kB / 0.6273 GB, free: 4.105 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005243/0.7427, allocations: 2.017 MB / 0.6293 GB, free: 2.082 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008391/0.7511, allocations: 5.222 MB / 0.6344 GB, free: 11.24 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01405/0.7652, allocations: 7.847 MB / 0.6421 GB, free: 1.812 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001443/0.7654, allocations: 32 kB / 0.6421 GB, free: 1.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.02311/0.7885, allocations: 7.787 MB / 0.6497 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.7887, allocations: 55.94 kB / 0.6498 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002276/0.789, allocations: 116 kB / 0.6499 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003846/0.7928, allocations: 0.9692 MB / 0.6508 GB, free: 8.844 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006338/0.7992, allocations: 1.189 MB / 0.652 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01339/0.8126, allocations: 6.916 MB / 0.6587 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006178/0.8188, allocations: 295.5 kB / 0.659 GB, free: 320 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/0.8198, allocations: 328.4 kB / 0.6593 GB, free: 15.99 MB / 0.5137 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 (630): * Single equations (assignments): 626 * 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005908/0.8258, allocations: 1.844 MB / 0.6611 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009988/0.8268, allocations: 311.9 kB / 0.6614 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008925/0.8357, allocations: 3.206 MB / 0.6646 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.385e-05/0.8358, allocations: 16 kB / 0.6646 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.331e-05/0.8358, allocations: 8 kB / 0.6646 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-05/0.8359, allocations: 3.984 kB / 0.6646 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02232/0.8582, allocations: 7.926 MB / 0.6723 GB, free: 2.613 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/0.8582, allocations: 4 kB / 0.6723 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001872/0.8601, allocations: 227.6 kB / 0.6725 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003538/0.8637, allocations: 0.8085 MB / 0.6733 GB, free: 1.574 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002235/0.8639, allocations: 28 kB / 0.6734 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/0.8772, allocations: 6.441 MB / 0.6796 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.8773, allocations: 0 / 0.6796 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/0.891, allocations: 5.816 MB / 0.6853 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.8923, allocations: 357 kB / 0.6857 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/0.8934, allocations: 24 kB / 0.6857 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002496/0.8959, allocations: 99.14 kB / 0.6858 GB, free: 4.641 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004858/0.8964, allocations: 84.83 kB / 0.6859 GB, free: 4.559 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/0.8966, allocations: 39.98 kB / 0.6859 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006847/0.9035, allocations: 2.205 MB / 0.6881 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.91e-07/0.9035, allocations: 4 kB / 0.6881 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008305/0.9118, allocations: 0.8632 MB / 0.6889 GB, free: 1.457 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.009981/0.9218, allocations: 6.442 MB / 0.6952 GB, free: 10.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01012/0.932, allocations: 5.618 MB / 0.7007 GB, free: 5.379 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.932, allocations: 0 / 0.7007 GB, free: 5.379 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003167/0.9352, allocations: 1.785 MB / 0.7024 GB, free: 3.582 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003219/0.9384, allocations: 386.6 kB / 0.7028 GB, free: 3.207 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2854/1.224, allocations: 46.55 MB / 0.7483 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002674/1.227, allocations: 2.879 MB / 0.7511 GB, free: 169.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003541/1.23, allocations: 1.708 MB / 0.7527 GB, free: 169.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/1.232, allocations: 1.55 MB / 0.7542 GB, free: 168.3 MB / 0.545 GB Notification: Performance of SimCode: time 2.034e-06/1.232, allocations: 4 kB / 0.7542 GB, free: 168.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09647/1.328, allocations: 65.62 MB / 0.8183 GB, free: 103.1 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/1.329, allocations: 243.2 kB / 0.8186 GB, free: 102.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.854/5.183, allocations: 0 / 0.8186 GB, free: 102.9 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > 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