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.0007007/0.0007007, allocations: 98.61 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007676/0.0007677, allocations: 206 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.162/0.162, allocations: 46.18 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002156/0.0002156, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09108, allocations: 63.56 MB / 483.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.1983/0.2895, allocations: 36.16 MB / 0.5072 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01426/0.3037, allocations: 8.386 MB / 0.5154 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005213/0.309, allocations: 158.7 kB / 0.5155 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008252/0.3098, allocations: 362.7 kB / 0.5159 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003009/0.3129, allocations: 1.513 MB / 0.5173 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.314, allocations: 0.6377 MB / 0.518 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005144/0.3192, allocations: 5.41 MB / 0.5232 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004272/0.3235, allocations: 4 MB / 0.5271 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001114/0.3246, allocations: 0.9337 MB / 0.5281 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.3261, allocations: 1.62 MB / 0.5296 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001879/0.3263, allocations: 116.5 kB / 0.5297 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.3277, allocations: 1.05 MB / 0.5308 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008803/0.3286, allocations: 1.419 MB / 0.5322 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009353/0.3295, allocations: 1.692 MB / 0.5338 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003491/0.333, allocations: 5.855 MB / 0.5395 GB, free: 15.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.333, allocations: 0 / 0.5395 GB, free: 15.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.333, allocations: 4 kB / 0.5395 GB, free: 15.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.651e-05/0.3331, allocations: 0 / 0.5395 GB, free: 15.51 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.005448/0.3385, allocations: 3.491 MB / 0.5429 GB, free: 13.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.3386, allocations: 10.31 kB / 0.543 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006062/0.3392, allocations: 0.6044 MB / 0.5435 GB, free: 12.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02022/0.3594, allocations: 3.806 MB / 0.5473 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003603/0.363, allocations: 2.485 MB / 0.5497 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.3632, allocations: 192.2 kB / 0.5499 GB, free: 7.113 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004203/0.3636, allocations: 262.9 kB / 0.5501 GB, free: 6.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/0.3739, allocations: 8.526 MB / 0.5584 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.417e-05/0.374, allocations: 39.66 kB / 0.5585 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000289/0.3743, allocations: 122.5 kB / 0.5586 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.377, allocations: 1.738 MB / 0.5603 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/0.3879, allocations: 7.444 MB / 0.5676 GB, free: 4.523 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03073/0.4186, allocations: 34.04 MB / 0.6008 GB, free: 1.676 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006083/0.4247, allocations: 3.032 MB / 0.6038 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/0.4267, allocations: 1.852 MB / 0.6056 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002794/0.427, allocations: 334 kB / 0.6059 GB, free: 12.26 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.427, allocations: 51.14 kB / 0.6059 GB, free: 12.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 3.056e-06/0.427, allocations: 0 / 0.6059 GB, free: 12.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.03145/0.4585, allocations: 14.35 MB / 0.62 GB, free: 13.71 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.203e-05/0.4586, allocations: 175.2 kB / 0.6201 GB, free: 13.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004158/0.4628, allocations: 3.525 MB / 0.6236 GB, free: 9.977 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.463, allocations: 45.7 kB / 0.6236 GB, free: 9.926 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.4646, allocations: 2.657 MB / 0.6262 GB, free: 7.27 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005099/0.4651, allocations: 0.606 MB / 0.6268 GB, free: 6.668 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004985/0.4656, allocations: 449.3 kB / 0.6272 GB, free: 6.223 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.09e-05/0.4657, allocations: 301.1 kB / 0.6275 GB, free: 5.926 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002606/0.4683, allocations: 2.017 MB / 0.6295 GB, free: 3.902 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00443/0.4727, allocations: 5.222 MB / 0.6346 GB, free: 13.06 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007823/0.4806, allocations: 7.841 MB / 0.6422 GB, free: 3.641 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.011e-05/0.4806, allocations: 32 kB / 0.6423 GB, free: 3.609 MB / 494.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01155/0.4922, allocations: 7.802 MB / 0.6499 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.021e-05/0.4923, allocations: 56 kB / 0.6499 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-05/0.4924, allocations: 112 kB / 0.6501 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002168/0.4946, allocations: 0.9616 MB / 0.651 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003276/0.4978, allocations: 1.189 MB / 0.6522 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007824/0.5057, allocations: 6.475 MB / 0.6585 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003204/0.5089, allocations: 299.5 kB / 0.6588 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003926/0.5093, allocations: 326.2 kB / 0.6591 GB, free: 2.262 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 (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.002509/0.5118, allocations: 1.844 MB / 0.6609 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/0.5122, allocations: 300.1 kB / 0.6612 GB, free: 108 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005304/0.5175, allocations: 3.202 MB / 0.6643 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.54e-05/0.5176, allocations: 16 kB / 0.6643 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.5176, allocations: 12 kB / 0.6643 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.5176, allocations: 7.969 kB / 0.6643 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/0.5293, allocations: 7.921 MB / 0.6721 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.5294, allocations: 288 / 0.6721 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.5304, allocations: 227.7 kB / 0.6723 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00196/0.5324, allocations: 0.8046 MB / 0.6731 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.5325, allocations: 39.16 kB / 0.6731 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007476/0.54, allocations: 5.984 MB / 0.6789 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.54, allocations: 4 kB / 0.6789 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007572/0.5476, allocations: 5.805 MB / 0.6846 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007326/0.5483, allocations: 365 kB / 0.685 GB, free: 7.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.5486, allocations: 24 kB / 0.685 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.5497, allocations: 94.44 kB / 0.6851 GB, free: 7.383 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.5499, allocations: 84.89 kB / 0.6852 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.55, allocations: 39.98 kB / 0.6852 GB, free: 7.262 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002806/0.5529, allocations: 2.213 MB / 0.6874 GB, free: 5.059 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.093e-06/0.5529, allocations: 0 / 0.6874 GB, free: 5.059 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003222/0.5561, allocations: 0.8632 MB / 0.6882 GB, free: 4.195 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.007942/0.564, allocations: 6.445 MB / 0.6945 GB, free: 13.72 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006314/0.5704, allocations: 4.864 MB / 0.6992 GB, free: 8.863 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5704, allocations: 0 / 0.6992 GB, free: 8.863 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002588/0.573, allocations: 1.772 MB / 0.701 GB, free: 7.078 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.575, allocations: 375.4 kB / 0.7013 GB, free: 6.715 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2112/0.7862, allocations: 46.65 MB / 0.7469 GB, free: 169.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/0.7883, allocations: 2.88 MB / 0.7497 GB, free: 168.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002976/0.7913, allocations: 1.713 MB / 0.7514 GB, free: 168.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/0.7926, allocations: 1.555 MB / 0.7529 GB, free: 167.3 MB / 0.545 GB Notification: Performance of SimCode: time 4.1e-07/0.7926, allocations: 4 kB / 0.7529 GB, free: 167.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06074/0.8534, allocations: 63.47 MB / 0.8149 GB, free: 106 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/0.8536, allocations: 246.2 kB / 0.8151 GB, free: 105.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.7, allocations: 0 / 0.8151 GB, free: 105.8 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