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.001558/0.001558, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001735/0.001735, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2568/0.2568, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002317, allocations: 79.86 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3852, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01251/0.3978, allocations: 9.465 MB / 0.5399 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009595/0.4075, allocations: 3.811 MB / 0.5436 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.4099, allocations: 52.34 kB / 0.5436 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007312/0.4173, allocations: 2.281 MB / 0.5459 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007381/0.4247, allocations: 1.611 MB / 0.5474 GB, free: 324 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003491/0.4282, allocations: 0.6902 MB / 0.5481 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007644/0.4359, allocations: 3.805 MB / 0.5518 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004502/0.4405, allocations: 2.902 MB / 0.5547 GB, free: 9 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003043/0.4436, allocations: 1.281 MB / 0.5559 GB, free: 7.715 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00353/0.4472, allocations: 1.721 MB / 0.5576 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.4483, allocations: 284 kB / 0.5579 GB, free: 5.711 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.4514, allocations: 1.155 MB / 0.559 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002121/0.4536, allocations: 1.57 MB / 0.5605 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003793/0.4574, allocations: 1.887 MB / 0.5624 GB, free: 1.082 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01065/0.4681, allocations: 6.304 MB / 0.5685 GB, free: 10.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.4681, allocations: 0 / 0.5685 GB, free: 10.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4681, allocations: 0 / 0.5685 GB, free: 10.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002231/0.4684, allocations: 4 kB / 0.5685 GB, free: 10.75 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.0123/0.4807, allocations: 4.355 MB / 0.5728 GB, free: 6.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.4808, allocations: 8.031 kB / 0.5728 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001803/0.4826, allocations: 0.6121 MB / 0.5734 GB, free: 5.691 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02338/0.506, allocations: 3.758 MB / 0.5771 GB, free: 1.926 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006327/0.5124, allocations: 2.531 MB / 0.5795 GB, free: 15.33 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002373/0.5126, allocations: 193.3 kB / 0.5797 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001264/0.5139, allocations: 259.8 kB / 0.58 GB, free: 14.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01966/0.5336, allocations: 8.522 MB / 0.5883 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002524/0.5339, allocations: 43.69 kB / 0.5883 GB, free: 5.703 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001353/0.5353, allocations: 127.9 kB / 0.5884 GB, free: 5.578 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004383/0.5397, allocations: 1.743 MB / 0.5902 GB, free: 3.836 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0159/0.5556, allocations: 7.424 MB / 0.5974 GB, free: 12.4 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04968/0.6054, allocations: 33.91 MB / 0.6305 GB, free: 9.516 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007553/0.613, allocations: 3.023 MB / 0.6335 GB, free: 6.344 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002713/0.6158, allocations: 1.853 MB / 0.6353 GB, free: 4.477 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004551/0.6162, allocations: 335.8 kB / 0.6356 GB, free: 4.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/0.6163, allocations: 47.22 kB / 0.6356 GB, free: 4.035 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.258e-06/0.6163, allocations: 3.938 kB / 0.6356 GB, free: 4.031 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03854/0.6549, allocations: 14.55 MB / 0.6499 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.655, allocations: 179.1 kB / 0.65 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005109/0.6601, allocations: 3.53 MB / 0.6535 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002735/0.6604, allocations: 49.7 kB / 0.6535 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002327/0.6628, allocations: 2.765 MB / 0.6562 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009909/0.6638, allocations: 0.6319 MB / 0.6568 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001765/0.6656, allocations: 1.068 MB / 0.6579 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001898/0.6658, allocations: 305.1 kB / 0.6582 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003299/0.6691, allocations: 2.021 MB / 0.6601 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006635/0.6757, allocations: 5.218 MB / 0.6652 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/0.687, allocations: 7.849 MB / 0.6729 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.603e-05/0.6872, allocations: 32 kB / 0.6729 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01622/0.7034, allocations: 7.811 MB / 0.6806 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.17e-05/0.7035, allocations: 56 kB / 0.6806 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001561/0.7037, allocations: 112 kB / 0.6807 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00273/0.7064, allocations: 0.9733 MB / 0.6817 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004066/0.7105, allocations: 1.181 MB / 0.6828 GB, free: 276 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009936/0.7205, allocations: 6.915 MB / 0.6896 GB, free: 9.219 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/0.7246, allocations: 303.5 kB / 0.6899 GB, free: 8.922 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008671/0.7255, allocations: 320 kB / 0.6902 GB, free: 8.609 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.003293/0.7288, allocations: 1.852 MB / 0.692 GB, free: 6.742 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006659/0.7295, allocations: 325.9 kB / 0.6923 GB, free: 6.422 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006082/0.7356, allocations: 3.19 MB / 0.6954 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.056e-05/0.7357, allocations: 20 kB / 0.6954 GB, free: 3.191 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.7357, allocations: 8 kB / 0.6954 GB, free: 3.184 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-05/0.7357, allocations: 11.97 kB / 0.6955 GB, free: 3.172 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/0.7517, allocations: 7.807 MB / 0.7031 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.19e-05/0.7518, allocations: 4 kB / 0.7031 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.7531, allocations: 216 kB / 0.7033 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002283/0.7554, allocations: 0.8201 MB / 0.7041 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003025/0.7557, allocations: 24 kB / 0.7041 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009554/0.7653, allocations: 6.503 MB / 0.7105 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.7653, allocations: 0 / 0.7105 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009754/0.7751, allocations: 5.844 MB / 0.7162 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.7762, allocations: 370.9 kB / 0.7165 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004847/0.7767, allocations: 24 kB / 0.7165 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.7781, allocations: 99.81 kB / 0.7166 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000325/0.7784, allocations: 84.83 kB / 0.7167 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.7785, allocations: 47.94 kB / 0.7168 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003971/0.7825, allocations: 2.209 MB / 0.7189 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.61e-07/0.7825, allocations: 0 / 0.7189 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004639/0.7872, allocations: 0.8593 MB / 0.7198 GB, free: 10.02 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.01073/0.7979, allocations: 6.465 MB / 0.7261 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2961/1.094, allocations: 4.892 MB / 0.7309 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-05/1.094, allocations: 0.5938 kB / 0.7309 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00353/1.098, allocations: 1.781 MB / 0.7326 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002891/1.101, allocations: 385.9 kB / 0.733 GB, free: 182.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06179/1.162, allocations: 40.83 MB / 0.7728 GB, free: 147.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002629/1.165, allocations: 2.885 MB / 0.7757 GB, free: 144.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003321/1.169, allocations: 1.71 MB / 0.7773 GB, free: 143.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/1.17, allocations: 1.558 MB / 0.7788 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.372e-06/1.17, allocations: 0 / 0.7788 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/1.275, allocations: 62.55 MB / 0.8399 GB, free: 79.36 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.89/22.17, allocations: 7.609 kB / 0.8399 GB, free: 79.36 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