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.001456/0.001456, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00196/0.001961, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 75.95 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1107, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01091/0.1216, allocations: 9.447 MB / 489.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007057/0.1287, allocations: 3.812 MB / 493.4 MB, free: 7.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.1302, allocations: 55.88 kB / 493.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004311/0.1345, allocations: 2.285 MB / 495.7 MB, free: 5.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003862/0.1384, allocations: 1.599 MB / 497.3 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.14, allocations: 0.6979 MB / 498 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00485/0.1449, allocations: 3.794 MB / 0.4901 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003605/0.1485, allocations: 2.899 MB / 0.4929 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001934/0.1505, allocations: 1.281 MB / 0.4941 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002594/0.1531, allocations: 1.717 MB / 0.4958 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008249/0.1539, allocations: 280 kB / 0.4961 GB, free: 9.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.1563, allocations: 1.159 MB / 0.4972 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00177/0.1581, allocations: 1.578 MB / 0.4988 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00296/0.161, allocations: 1.891 MB / 0.5006 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2143/0.3754, allocations: 6.072 MB / 0.5065 GB, free: 20.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.3754, allocations: 1.125 kB / 0.5065 GB, free: 20.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3754, allocations: 0 / 0.5065 GB, free: 20.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002945/0.3757, allocations: 0 / 0.5065 GB, free: 20.52 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: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.01338/0.3891, allocations: 4.235 MB / 0.5107 GB, free: 18.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3892, allocations: 10.55 kB / 0.5107 GB, free: 18.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001861/0.391, allocations: 0.6095 MB / 0.5113 GB, free: 18.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02221/0.4133, allocations: 3.748 MB / 0.5149 GB, free: 18.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007152/0.4205, allocations: 2.479 MB / 0.5174 GB, free: 18.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000257/0.4207, allocations: 196 kB / 0.5175 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001853/0.4226, allocations: 256.7 kB / 0.5178 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01671/0.4393, allocations: 8.526 MB / 0.5261 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001959/0.4396, allocations: 42.45 kB / 0.5262 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001131/0.4407, allocations: 124.9 kB / 0.5263 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003071/0.4438, allocations: 1.738 MB / 0.528 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.4559, allocations: 7.441 MB / 0.5352 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04021/0.4962, allocations: 34 MB / 0.5684 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006538/0.5027, allocations: 3.029 MB / 0.5714 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002091/0.5049, allocations: 1.844 MB / 0.5732 GB, free: 4.852 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003487/0.5052, allocations: 330.6 kB / 0.5735 GB, free: 4.484 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.5053, allocations: 56.73 kB / 0.5736 GB, free: 4.422 MB / 414.1 MB Notification: Performance of pre-optimization done (n=135): time 4.318e-06/0.5053, allocations: 0 / 0.5736 GB, free: 4.422 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.03811/0.5434, allocations: 14.37 MB / 0.5876 GB, free: 5.969 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.5436, allocations: 174.8 kB / 0.5878 GB, free: 5.766 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006338/0.5499, allocations: 3.525 MB / 0.5912 GB, free: 2.242 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003428/0.5503, allocations: 45.7 kB / 0.5913 GB, free: 2.191 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/0.5522, allocations: 2.659 MB / 0.5939 GB, free: 15.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008437/0.5531, allocations: 0.6064 MB / 0.5944 GB, free: 14.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001944/0.555, allocations: 1.062 MB / 0.5955 GB, free: 13.87 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.5552, allocations: 305.1 kB / 0.5958 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/0.5581, allocations: 2.009 MB / 0.5977 GB, free: 11.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005893/0.564, allocations: 5.225 MB / 0.6028 GB, free: 4.766 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.5743, allocations: 7.844 MB / 0.6105 GB, free: 11.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/0.5745, allocations: 32 kB / 0.6105 GB, free: 11.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01698/0.5914, allocations: 7.791 MB / 0.6181 GB, free: 4.188 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.573e-05/0.5916, allocations: 59.92 kB / 0.6182 GB, free: 4.129 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/0.5917, allocations: 116 kB / 0.6183 GB, free: 4.016 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.594, allocations: 0.9615 MB / 0.6192 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00353/0.5976, allocations: 1.189 MB / 0.6204 GB, free: 1.859 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008076/0.6056, allocations: 6.919 MB / 0.6272 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/0.609, allocations: 295.5 kB / 0.6274 GB, free: 10.53 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005398/0.6095, allocations: 332 kB / 0.6278 GB, free: 10.2 MB / 478.1 MB 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.002512/0.612, allocations: 1.848 MB / 0.6296 GB, free: 8.344 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005407/0.6126, allocations: 316 kB / 0.6299 GB, free: 8.031 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00515/0.6177, allocations: 3.194 MB / 0.633 GB, free: 4.82 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/0.6178, allocations: 20.55 kB / 0.633 GB, free: 4.801 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.6178, allocations: 4 kB / 0.633 GB, free: 4.797 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.6178, allocations: 7.969 kB / 0.633 GB, free: 4.789 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.6295, allocations: 7.916 MB / 0.6407 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.6296, allocations: 4 kB / 0.6407 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.6307, allocations: 227.6 kB / 0.641 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.6326, allocations: 0.8085 MB / 0.6418 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.6327, allocations: 27.98 kB / 0.6418 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00833/0.6411, allocations: 6.445 MB / 0.6481 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.6411, allocations: 3.844 kB / 0.6481 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009027/0.6502, allocations: 5.816 MB / 0.6538 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008251/0.651, allocations: 361 kB / 0.6541 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000564/0.6516, allocations: 24 kB / 0.6541 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.653, allocations: 91.86 kB / 0.6542 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.6533, allocations: 88.83 kB / 0.6543 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.6534, allocations: 43.11 kB / 0.6543 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003211/0.6566, allocations: 2.209 MB / 0.6565 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.6566, allocations: 0 / 0.6565 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003564/0.6602, allocations: 0.8594 MB / 0.6573 GB, free: 11.69 MB / 0.4981 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.008255/0.6684, allocations: 6.439 MB / 0.6636 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009054/0.6775, allocations: 5.617 MB / 0.6691 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.6776, allocations: 0 / 0.6691 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00335/0.6809, allocations: 1.774 MB / 0.6708 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003847/0.6848, allocations: 393.8 kB / 0.6712 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2818/0.9667, allocations: 45.02 MB / 0.7152 GB, free: 196.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004136/0.9708, allocations: 2.885 MB / 0.718 GB, free: 195.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005574/0.9764, allocations: 1.707 MB / 0.7197 GB, free: 195.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003025/0.9795, allocations: 1.555 MB / 0.7212 GB, free: 194.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/0.9795, allocations: 0 / 0.7212 GB, free: 194.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1032/1.083, allocations: 65.73 MB / 0.7854 GB, free: 143.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/12.08, allocations: 6.984 kB / 0.7854 GB, free: 143.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