Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 106.3 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 193.3 kB / 18.25 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2589/0.2589, allocations: 44.18 MB / 336.2 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 69.3 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1301, allocations: 60.82 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.04045/0.1706, allocations: 41.06 MB / 0.4979 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2855/0.4562, allocations: 9.037 MB / 0.5067 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009608/0.4658, allocations: 170.9 kB / 0.5069 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004648/0.4705, allocations: 2.208 MB / 0.5091 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00456/0.4751, allocations: 1.547 MB / 0.5106 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001735/0.4769, allocations: 0.6555 MB / 0.5112 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006735/0.4836, allocations: 4.022 MB / 0.5151 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004551/0.4882, allocations: 3.081 MB / 0.5182 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002829/0.491, allocations: 1.323 MB / 0.5194 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003288/0.4944, allocations: 1.949 MB / 0.5213 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008962/0.4953, allocations: 284 kB / 0.5216 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003004/0.4983, allocations: 1.185 MB / 0.5228 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002005/0.5003, allocations: 1.651 MB / 0.5244 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002142/0.5025, allocations: 1.959 MB / 0.5263 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007242/0.5097, allocations: 6.266 MB / 0.5324 GB, free: 2.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.5098, allocations: 0 / 0.5324 GB, free: 2.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.5098, allocations: 1.875 kB / 0.5324 GB, free: 2.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002146/0.51, allocations: 0 / 0.5324 GB, free: 2.617 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.01096/0.521, allocations: 4.322 MB / 0.5366 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.086e-05/0.521, allocations: 9.844 kB / 0.5367 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001672/0.5227, allocations: 0.6143 MB / 0.5373 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02088/0.5436, allocations: 3.773 MB / 0.5409 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006612/0.5503, allocations: 2.605 MB / 0.5435 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.5505, allocations: 200.5 kB / 0.5437 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.5518, allocations: 265.7 kB / 0.5439 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01768/0.5695, allocations: 8.713 MB / 0.5524 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002014/0.5698, allocations: 41.8 kB / 0.5525 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001108/0.5709, allocations: 128.6 kB / 0.5526 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003521/0.5744, allocations: 1.798 MB / 0.5544 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01588/0.5903, allocations: 7.598 MB / 0.5618 GB, free: 8 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04635/0.6367, allocations: 34.43 MB / 0.5954 GB, free: 4.781 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006843/0.6436, allocations: 3.025 MB / 0.5983 GB, free: 1.609 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/0.646, allocations: 1.854 MB / 0.6002 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004342/0.6465, allocations: 325.7 kB / 0.6005 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/0.6465, allocations: 51.16 kB / 0.6005 GB, free: 15.32 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 4.528e-06/0.6465, allocations: 0 / 0.6005 GB, free: 15.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.04034/0.6869, allocations: 14.44 MB / 0.6146 GB, free: 0.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.687, allocations: 167.2 kB / 0.6148 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007234/0.6943, allocations: 3.567 MB / 0.6183 GB, free: 12.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000423/0.6947, allocations: 45.7 kB / 0.6183 GB, free: 12.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002166/0.6969, allocations: 2.705 MB / 0.6209 GB, free: 10.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009616/0.6979, allocations: 0.601 MB / 0.6215 GB, free: 9.633 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002396/0.7003, allocations: 1.077 MB / 0.6226 GB, free: 8.547 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.7004, allocations: 305.3 kB / 0.6229 GB, free: 8.246 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003217/0.7036, allocations: 2.021 MB / 0.6248 GB, free: 6.219 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00634/0.71, allocations: 5.267 MB / 0.63 GB, free: 15.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009761/0.7198, allocations: 7.914 MB / 0.6377 GB, free: 5.801 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/0.7199, allocations: 36 kB / 0.6378 GB, free: 5.766 MB / 494.1 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01518/0.7351, allocations: 7.847 MB / 0.6454 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.7353, allocations: 55.98 kB / 0.6455 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001802/0.7355, allocations: 119.9 kB / 0.6456 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002495/0.738, allocations: 0.9649 MB / 0.6465 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/0.7423, allocations: 1.193 MB / 0.6477 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009271/0.7516, allocations: 6.923 MB / 0.6545 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004456/0.7561, allocations: 303.4 kB / 0.6547 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/0.7572, allocations: 324 kB / 0.655 GB, free: 3.906 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 522 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.arrowLine.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 (636): * Single equations (assignments): 632 * 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.7617, allocations: 1.893 MB / 0.6569 GB, free: 2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00081/0.7625, allocations: 300.1 kB / 0.6572 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006225/0.7687, allocations: 3.202 MB / 0.6603 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.344e-05/0.7688, allocations: 23.94 kB / 0.6603 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/0.7688, allocations: 4 kB / 0.6603 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-05/0.7688, allocations: 7.969 kB / 0.6603 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/0.7851, allocations: 7.964 MB / 0.6681 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.945e-05/0.7852, allocations: 4 kB / 0.6681 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.7864, allocations: 231.6 kB / 0.6683 GB, free: 6.219 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/0.7885, allocations: 0.81 MB / 0.6691 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001689/0.7886, allocations: 27.98 kB / 0.6692 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009245/0.7979, allocations: 6.443 MB / 0.6755 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.7979, allocations: 0 / 0.6755 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009116/0.807, allocations: 5.809 MB / 0.6811 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/0.8084, allocations: 365 kB / 0.6815 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008204/0.8093, allocations: 24 kB / 0.6815 GB, free: 8.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001896/0.8112, allocations: 95.86 kB / 0.6816 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003995/0.8116, allocations: 88.81 kB / 0.6817 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/0.8118, allocations: 40 kB / 0.6817 GB, free: 8.348 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004878/0.8167, allocations: 2.229 MB / 0.6839 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.61e-07/0.8167, allocations: 0 / 0.6839 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006552/0.8233, allocations: 0.8857 MB / 0.6848 GB, free: 5.246 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.0104/0.8337, allocations: 6.446 MB / 0.6911 GB, free: 14.77 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009545/0.8433, allocations: 5.654 MB / 0.6966 GB, free: 9.125 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.8433, allocations: 0 / 0.6966 GB, free: 9.125 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003011/0.8463, allocations: 1.767 MB / 0.6983 GB, free: 7.344 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/0.8493, allocations: 407.6 kB / 0.6987 GB, free: 6.953 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3002/1.149, allocations: 47.07 MB / 0.7447 GB, free: 179.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002782/1.152, allocations: 2.936 MB / 0.7475 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003935/1.156, allocations: 1.717 MB / 0.7492 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002358/1.159, allocations: 1.604 MB / 0.7508 GB, free: 176.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.643e-06/1.159, allocations: 0 / 0.7508 GB, free: 176.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09323/1.252, allocations: 66.24 MB / 0.8155 GB, free: 111.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/1.252, allocations: 242 kB / 0.8157 GB, free: 111.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.92/5.173, allocations: 4 kB / 0.8157 GB, free: 111.3 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches