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.001135/0.001135, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 206.3 kB / 18.29 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.319/1.319, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.202/0.202, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002799, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1182, allocations: 63.56 MB / 483.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.2841/0.4023, allocations: 36.16 MB / 0.5072 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.4189, allocations: 8.387 MB / 0.5154 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006107/0.425, allocations: 158.2 kB / 0.5155 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009983/0.426, allocations: 360.7 kB / 0.5159 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003855/0.4299, allocations: 1.522 MB / 0.5173 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.4313, allocations: 0.6345 MB / 0.518 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007402/0.4387, allocations: 5.409 MB / 0.5232 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006459/0.4452, allocations: 3.998 MB / 0.5271 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002411/0.4476, allocations: 0.938 MB / 0.5281 GB, free: 6.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002586/0.4502, allocations: 1.616 MB / 0.5296 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005702/0.4508, allocations: 115.5 kB / 0.5297 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002128/0.453, allocations: 1.05 MB / 0.5308 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.4544, allocations: 1.418 MB / 0.5322 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.4559, allocations: 1.693 MB / 0.5338 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004273/0.4602, allocations: 5.856 MB / 0.5395 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.4602, allocations: 0 / 0.5395 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4602, allocations: 0 / 0.5395 GB, free: 15.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001111/0.4604, allocations: 4 kB / 0.5395 GB, free: 15.61 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.006628/0.467, allocations: 3.492 MB / 0.5429 GB, free: 13.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.467, allocations: 11.03 kB / 0.543 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008018/0.4679, allocations: 0.6023 MB / 0.5435 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02167/0.4895, allocations: 3.806 MB / 0.5473 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00614/0.4957, allocations: 2.486 MB / 0.5497 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.4959, allocations: 196.5 kB / 0.5499 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000678/0.4966, allocations: 264.3 kB / 0.5501 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01568/0.5123, allocations: 8.519 MB / 0.5584 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/0.5124, allocations: 39.66 kB / 0.5585 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003551/0.5128, allocations: 123.2 kB / 0.5586 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002867/0.5157, allocations: 1.743 MB / 0.5603 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01306/0.5287, allocations: 7.443 MB / 0.5676 GB, free: 4.586 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04432/0.5731, allocations: 34.04 MB / 0.6008 GB, free: 1.738 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006798/0.58, allocations: 3.032 MB / 0.6038 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00226/0.5822, allocations: 1.85 MB / 0.6056 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004052/0.5827, allocations: 337.5 kB / 0.6059 GB, free: 12.33 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.863e-05/0.5827, allocations: 55.14 kB / 0.606 GB, free: 12.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 4.237e-06/0.5828, allocations: 0 / 0.606 GB, free: 12.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.03734/0.6201, allocations: 14.34 MB / 0.62 GB, free: 13.77 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.6203, allocations: 175.2 kB / 0.6201 GB, free: 13.57 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005674/0.6259, allocations: 3.521 MB / 0.6236 GB, free: 10.04 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002216/0.6262, allocations: 45.7 kB / 0.6236 GB, free: 9.992 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/0.628, allocations: 2.657 MB / 0.6262 GB, free: 7.336 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006736/0.6287, allocations: 0.6099 MB / 0.6268 GB, free: 6.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000745/0.6294, allocations: 447.6 kB / 0.6272 GB, free: 6.289 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.359e-05/0.6295, allocations: 301.1 kB / 0.6275 GB, free: 5.992 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002988/0.6325, allocations: 2.013 MB / 0.6295 GB, free: 3.973 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004879/0.6374, allocations: 5.226 MB / 0.6346 GB, free: 13.13 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0084/0.6458, allocations: 7.841 MB / 0.6422 GB, free: 3.707 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.893e-05/0.6459, allocations: 36 kB / 0.6423 GB, free: 3.672 MB / 494.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01377/0.6597, allocations: 7.8 MB / 0.6499 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.474e-05/0.6599, allocations: 52 kB / 0.6499 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001497/0.66, allocations: 112 kB / 0.6501 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002326/0.6624, allocations: 0.9654 MB / 0.651 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003793/0.6662, allocations: 1.185 MB / 0.6522 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008295/0.6745, allocations: 6.469 MB / 0.6585 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003745/0.6782, allocations: 307.5 kB / 0.6588 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008224/0.6791, allocations: 327.1 kB / 0.6591 GB, free: 2.328 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.003349/0.6824, allocations: 1.844 MB / 0.6609 GB, free: 480 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007639/0.6832, allocations: 304 kB / 0.6612 GB, free: 172 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006145/0.6894, allocations: 3.202 MB / 0.6643 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.335e-05/0.6894, allocations: 16 kB / 0.6643 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.6894, allocations: 4 kB / 0.6643 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-05/0.6895, allocations: 7.969 kB / 0.6643 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01481/0.7043, allocations: 7.928 MB / 0.6721 GB, free: 4.961 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/0.7043, allocations: 0 / 0.6721 GB, free: 4.961 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/0.7056, allocations: 227.7 kB / 0.6723 GB, free: 4.738 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002129/0.7077, allocations: 0.8007 MB / 0.6731 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/0.7079, allocations: 35.92 kB / 0.6731 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008296/0.7162, allocations: 5.985 MB / 0.6789 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7163, allocations: 0 / 0.6789 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008996/0.7253, allocations: 5.809 MB / 0.6846 GB, free: 7.945 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.7264, allocations: 365 kB / 0.685 GB, free: 7.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006694/0.7271, allocations: 20 kB / 0.685 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.7285, allocations: 95.86 kB / 0.6851 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.7288, allocations: 83.86 kB / 0.6852 GB, free: 7.375 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.7289, allocations: 43.98 kB / 0.6852 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003276/0.7322, allocations: 2.213 MB / 0.6874 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7322, allocations: 4 kB / 0.6874 GB, free: 5.125 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003849/0.7361, allocations: 0.8555 MB / 0.6882 GB, free: 4.27 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.00854/0.7446, allocations: 6.446 MB / 0.6945 GB, free: 13.79 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007114/0.7518, allocations: 4.861 MB / 0.6992 GB, free: 8.938 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7518, allocations: 0 / 0.6992 GB, free: 8.938 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002797/0.7546, allocations: 1.778 MB / 0.701 GB, free: 7.148 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.7571, allocations: 375.6 kB / 0.7013 GB, free: 6.781 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2693/1.026, allocations: 46.65 MB / 0.7469 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002389/1.029, allocations: 2.883 MB / 0.7497 GB, free: 168.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003405/1.032, allocations: 1.714 MB / 0.7514 GB, free: 168.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/1.034, allocations: 1.547 MB / 0.7529 GB, free: 167.5 MB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/1.034, allocations: 3.719 kB / 0.7529 GB, free: 167.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07908/1.113, allocations: 63.47 MB / 0.8149 GB, free: 106.2 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001456/1.113, allocations: 249.3 kB / 0.8151 GB, free: 106 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.688/4.801, allocations: 0 / 0.8151 GB, free: 106 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