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.001092/0.001092, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.001218/0.001218, allocations: 192 kB / 18.56 MB, free: 4.562 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.321/1.321, allocations: 222.9 MB / 242.3 MB, free: 15.18 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.2215/0.2215, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 64.59 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1098, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01052/0.1203, allocations: 9.576 MB / 478.9 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007206/0.1276, allocations: 3.808 MB / 482.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009933/0.1286, allocations: 51.88 kB / 482.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00397/0.1326, allocations: 2.301 MB / 485.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003638/0.1363, allocations: 1.657 MB / 486.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.1377, allocations: 0.694 MB / 487.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004671/0.1424, allocations: 3.806 MB / 491.2 MB, free: 8.301 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003066/0.1454, allocations: 2.918 MB / 494.2 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001943/0.1474, allocations: 1.297 MB / 495.5 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002256/0.1497, allocations: 1.748 MB / 497.2 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004736/0.1502, allocations: 284 kB / 497.5 MB, free: 2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001849/0.152, allocations: 1.174 MB / 498.7 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001398/0.1534, allocations: 1.621 MB / 0.4886 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001724/0.1552, allocations: 1.934 MB / 0.4904 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00576/0.1609, allocations: 6.227 MB / 0.4965 GB, free: 7.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.161, allocations: 4 kB / 0.4965 GB, free: 7.004 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.161, allocations: 0 / 0.4965 GB, free: 7.004 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001133/0.1611, allocations: 0 / 0.4965 GB, free: 7.004 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.007741/0.1688, allocations: 4.314 MB / 0.5007 GB, free: 2.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1689, allocations: 12.02 kB / 0.5008 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007245/0.1696, allocations: 0.6207 MB / 0.5014 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2123/0.3819, allocations: 3.756 MB / 0.505 GB, free: 45.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006048/0.388, allocations: 2.616 MB / 0.5076 GB, free: 44.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.3882, allocations: 197.6 kB / 0.5078 GB, free: 44.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007683/0.389, allocations: 264.2 kB / 0.508 GB, free: 44.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01459/0.4036, allocations: 8.712 MB / 0.5165 GB, free: 40.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.4037, allocations: 44.19 kB / 0.5166 GB, free: 40.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003351/0.4041, allocations: 128.3 kB / 0.5167 GB, free: 40.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002935/0.407, allocations: 1.799 MB / 0.5185 GB, free: 40.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.4207, allocations: 7.587 MB / 0.5259 GB, free: 36.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03661/0.4574, allocations: 34.44 MB / 0.5595 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006611/0.464, allocations: 3.026 MB / 0.5624 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002275/0.4663, allocations: 1.852 MB / 0.5643 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004155/0.4668, allocations: 331.8 kB / 0.5646 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/0.4669, allocations: 51.09 kB / 0.5646 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=135): time 5.06e-06/0.4669, allocations: 1.312 kB / 0.5646 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=156): time 0.03685/0.5037, allocations: 14.43 MB / 0.5787 GB, free: 12.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.5039, allocations: 171.2 kB / 0.5789 GB, free: 12.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005548/0.5094, allocations: 3.554 MB / 0.5824 GB, free: 9.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002264/0.5097, allocations: 49.7 kB / 0.5824 GB, free: 9.121 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001925/0.5116, allocations: 2.706 MB / 0.585 GB, free: 6.375 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006727/0.5123, allocations: 0.6056 MB / 0.5856 GB, free: 5.762 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001583/0.5139, allocations: 1.075 MB / 0.5867 GB, free: 4.676 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.514, allocations: 309.1 kB / 0.587 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003088/0.5171, allocations: 2.021 MB / 0.589 GB, free: 2.344 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00523/0.5223, allocations: 5.267 MB / 0.5941 GB, free: 11.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009293/0.5316, allocations: 7.91 MB / 0.6018 GB, free: 1.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/0.5318, allocations: 36.84 kB / 0.6019 GB, free: 1.895 MB / 430.1 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01713/0.5489, allocations: 7.841 MB / 0.6095 GB, free: 10.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.5491, allocations: 62.44 kB / 0.6096 GB, free: 9.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001934/0.5493, allocations: 112 kB / 0.6097 GB, free: 9.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002629/0.552, allocations: 0.9726 MB / 0.6106 GB, free: 8.895 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004423/0.5564, allocations: 1.193 MB / 0.6118 GB, free: 7.699 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009122/0.5655, allocations: 6.915 MB / 0.6185 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00392/0.5695, allocations: 303.4 kB / 0.6188 GB, free: 360 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/0.5705, allocations: 324 kB / 0.6191 GB, free: 36 kB / 446.1 MB 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.004005/0.5746, allocations: 1.887 MB / 0.621 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008555/0.5754, allocations: 308 kB / 0.6213 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006092/0.5815, allocations: 3.21 MB / 0.6244 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/0.5816, allocations: 16 kB / 0.6244 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.5816, allocations: 4 kB / 0.6244 GB, free: 10.58 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.321e-05/0.5816, allocations: 11.92 kB / 0.6244 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/0.598, allocations: 7.964 MB / 0.6322 GB, free: 2.535 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.5981, allocations: 0 / 0.6322 GB, free: 2.535 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.5993, allocations: 231.6 kB / 0.6324 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.6015, allocations: 0.8046 MB / 0.6332 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002061/0.6017, allocations: 24 kB / 0.6333 GB, free: 1.477 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008803/0.6105, allocations: 6.445 MB / 0.6395 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.6106, allocations: 3.938 kB / 0.6396 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.6208, allocations: 5.805 MB / 0.6452 GB, free: 5.059 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.6221, allocations: 361 kB / 0.6456 GB, free: 4.684 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008564/0.623, allocations: 31.88 kB / 0.6456 GB, free: 4.652 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/0.6249, allocations: 99.84 kB / 0.6457 GB, free: 4.555 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004107/0.6254, allocations: 88.88 kB / 0.6458 GB, free: 4.469 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/0.6256, allocations: 36 kB / 0.6458 GB, free: 4.434 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00504/0.6306, allocations: 2.233 MB / 0.648 GB, free: 2.211 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6307, allocations: 0 / 0.648 GB, free: 2.211 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005157/0.6358, allocations: 0.8802 MB / 0.6489 GB, free: 1.336 MB / 478.1 MB 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.00985/0.6457, allocations: 6.454 MB / 0.6552 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009706/0.6554, allocations: 5.638 MB / 0.6607 GB, free: 5.23 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.6555, allocations: 0 / 0.6607 GB, free: 5.23 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003229/0.6587, allocations: 1.764 MB / 0.6624 GB, free: 3.457 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003521/0.6623, allocations: 414.6 kB / 0.6628 GB, free: 3.066 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2802/0.9425, allocations: 45.5 MB / 0.7072 GB, free: 160.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003842/0.9464, allocations: 2.928 MB / 0.7101 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004792/0.9512, allocations: 1.726 MB / 0.7118 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/0.9534, allocations: 1.601 MB / 0.7133 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.152e-06/0.9534, allocations: 0 / 0.7133 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/1.056, allocations: 66.35 MB / 0.7781 GB, free: 102.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/12.35, allocations: 23.02 kB / 0.7781 GB, free: 102.2 MB / 0.5137 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