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.001151/0.001151, allocations: 110.9 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 209.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2292/0.2292, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 79.86 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3538, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01113/0.365, allocations: 9.459 MB / 0.5398 GB, free: 6.016 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008937/0.374, allocations: 3.807 MB / 0.5435 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001934/0.376, allocations: 54.81 kB / 0.5435 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005466/0.3815, allocations: 2.293 MB / 0.5458 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005923/0.3875, allocations: 1.596 MB / 0.5473 GB, free: 404 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002185/0.3897, allocations: 0.6967 MB / 0.548 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006072/0.3958, allocations: 3.794 MB / 0.5517 GB, free: 12.06 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004141/0.3999, allocations: 2.91 MB / 0.5545 GB, free: 9.098 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.4026, allocations: 1.277 MB / 0.5558 GB, free: 7.816 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002496/0.4052, allocations: 1.729 MB / 0.5575 GB, free: 6.082 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007504/0.4059, allocations: 284 kB / 0.5578 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002262/0.4082, allocations: 1.155 MB / 0.5589 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001715/0.4099, allocations: 1.586 MB / 0.5604 GB, free: 3.059 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002882/0.4128, allocations: 1.887 MB / 0.5623 GB, free: 1.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007818/0.4207, allocations: 6.28 MB / 0.5684 GB, free: 10.86 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4207, allocations: 4 kB / 0.5684 GB, free: 10.86 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4207, allocations: 0 / 0.5684 GB, free: 10.86 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002276/0.421, allocations: 4 kB / 0.5684 GB, free: 10.85 MB / 430.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.01217/0.4331, allocations: 4.248 MB / 0.5726 GB, free: 6.535 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/0.4332, allocations: 12.03 kB / 0.5726 GB, free: 6.523 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001921/0.4352, allocations: 0.6043 MB / 0.5732 GB, free: 5.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02142/0.4566, allocations: 3.736 MB / 0.5768 GB, free: 2.164 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006352/0.463, allocations: 2.526 MB / 0.5793 GB, free: 15.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/0.4632, allocations: 193.3 kB / 0.5795 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.4642, allocations: 267.7 kB / 0.5797 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01695/0.4812, allocations: 8.514 MB / 0.588 GB, free: 5.988 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001606/0.4814, allocations: 43.64 kB / 0.5881 GB, free: 5.945 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008075/0.4822, allocations: 123.9 kB / 0.5882 GB, free: 5.824 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00318/0.4854, allocations: 1.743 MB / 0.5899 GB, free: 4.082 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/0.4996, allocations: 7.428 MB / 0.5971 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04354/0.5432, allocations: 33.85 MB / 0.6302 GB, free: 9.812 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006887/0.5501, allocations: 3.036 MB / 0.6332 GB, free: 6.629 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002362/0.5525, allocations: 1.843 MB / 0.635 GB, free: 4.773 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004219/0.5529, allocations: 335.8 kB / 0.6353 GB, free: 4.387 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/0.553, allocations: 55.16 kB / 0.6353 GB, free: 4.324 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.638e-06/0.553, allocations: 0 / 0.6353 GB, free: 4.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03833/0.5913, allocations: 14.37 MB / 0.6494 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.5915, allocations: 175.2 kB / 0.6495 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005284/0.5968, allocations: 3.521 MB / 0.653 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000263/0.5971, allocations: 45.7 kB / 0.653 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001861/0.5989, allocations: 2.66 MB / 0.6556 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007292/0.5997, allocations: 0.6055 MB / 0.6562 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001623/0.6013, allocations: 1.055 MB / 0.6572 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.969e-05/0.6014, allocations: 309.1 kB / 0.6575 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002879/0.6043, allocations: 2.017 MB / 0.6595 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004745/0.6091, allocations: 5.218 MB / 0.6646 GB, free: 4.48 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008018/0.6171, allocations: 7.853 MB / 0.6723 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001149/0.6172, allocations: 32 kB / 0.6723 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01368/0.6309, allocations: 7.793 MB / 0.6799 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001394/0.6311, allocations: 52 kB / 0.68 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/0.6313, allocations: 112.9 kB / 0.6801 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002401/0.6337, allocations: 0.9802 MB / 0.681 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003943/0.6377, allocations: 1.177 MB / 0.6822 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009391/0.6471, allocations: 6.909 MB / 0.6889 GB, free: 9.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004887/0.6521, allocations: 299.5 kB / 0.6892 GB, free: 9.547 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/0.6534, allocations: 320 kB / 0.6895 GB, free: 9.234 MB / 0.545 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.004442/0.6578, allocations: 1.864 MB / 0.6913 GB, free: 7.355 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007664/0.6586, allocations: 304.1 kB / 0.6916 GB, free: 7.055 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005975/0.6646, allocations: 3.19 MB / 0.6947 GB, free: 3.844 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.615e-05/0.6647, allocations: 20 kB / 0.6948 GB, free: 3.824 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/0.6647, allocations: 4 kB / 0.6948 GB, free: 3.82 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.131e-05/0.6647, allocations: 11.91 kB / 0.6948 GB, free: 3.809 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01433/0.679, allocations: 7.81 MB / 0.7024 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.6791, allocations: 0 / 0.7024 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.6802, allocations: 227.6 kB / 0.7026 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/0.6823, allocations: 0.8124 MB / 0.7034 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001685/0.6825, allocations: 24 kB / 0.7034 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008203/0.6907, allocations: 6.491 MB / 0.7098 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6907, allocations: 0 / 0.7098 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008337/0.6991, allocations: 5.826 MB / 0.7155 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000829/0.6999, allocations: 357 kB / 0.7158 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006585/0.7006, allocations: 28 kB / 0.7158 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/0.7021, allocations: 96.14 kB / 0.7159 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002777/0.7024, allocations: 88.72 kB / 0.716 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.7025, allocations: 43.98 kB / 0.716 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003816/0.7064, allocations: 2.209 MB / 0.7182 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7064, allocations: 0 / 0.7182 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004195/0.7106, allocations: 0.8671 MB / 0.719 GB, free: 10.7 MB / 0.5762 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.008938/0.7195, allocations: 6.443 MB / 0.7253 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2748/0.9943, allocations: 4.886 MB / 0.7301 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.9944, allocations: 0.5938 kB / 0.7301 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003393/0.9978, allocations: 1.775 MB / 0.7318 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/1, allocations: 388.1 kB / 0.7322 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04746/1.047, allocations: 40.7 MB / 0.772 GB, free: 149 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002536/1.05, allocations: 2.877 MB / 0.7748 GB, free: 146.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003051/1.053, allocations: 1.711 MB / 0.7764 GB, free: 144.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/1.055, allocations: 1.554 MB / 0.778 GB, free: 142.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.222e-06/1.055, allocations: 0 / 0.778 GB, free: 142.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1028/1.158, allocations: 63.47 MB / 0.8399 GB, free: 79.77 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.41/21.56, allocations: 25.19 kB / 0.84 GB, free: 79.76 MB / 0.5762 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