Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_3_2_3_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.006769/0.00677, allocations: 100.8 kB / 15.87 MB, free: 6.309 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.001431/0.001431, allocations: 195.8 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.1 MB / 222.6 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2924/0.2924, allocations: 43.5 MB / 313.5 MB, free: 8.52 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 64.38 kB / 382.1 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.108, allocations: 57.79 MB / 439.9 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.2371/0.3451, allocations: 41.68 MB / 481.6 MB, free: 25.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01905/0.3642, allocations: 9.258 MB / 490.9 MB, free: 19.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008818/0.373, allocations: 175.3 kB / 491 MB, free: 19.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003943/0.377, allocations: 2.301 MB / 493.3 MB, free: 18.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004141/0.3812, allocations: 1.611 MB / 494.9 MB, free: 17.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001624/0.3828, allocations: 0.6418 MB / 495.6 MB, free: 17.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007291/0.3901, allocations: 5.468 MB / 0.4893 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003988/0.3941, allocations: 2.915 MB / 0.4922 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.3964, allocations: 1.191 MB / 0.4933 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003144/0.3996, allocations: 1.98 MB / 0.4953 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006865/0.4003, allocations: 204.9 kB / 0.4955 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002315/0.4026, allocations: 1.15 MB / 0.4966 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001978/0.4046, allocations: 1.649 MB / 0.4982 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00326/0.4079, allocations: 1.959 MB / 0.5001 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008804/0.4167, allocations: 6.53 MB / 0.5065 GB, free: 8.738 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.4167, allocations: 1.062 kB / 0.5065 GB, free: 8.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4167, allocations: 0 / 0.5065 GB, free: 8.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002289/0.417, allocations: 0 / 0.5065 GB, free: 8.738 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: 1391 * Number of variables: 1391 Notification: Performance of Generate backend data structure: time 0.0136/0.4306, allocations: 4.525 MB / 0.5109 GB, free: 5.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.4306, allocations: 9.625 kB / 0.5109 GB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001341/0.432, allocations: 0.6596 MB / 0.5115 GB, free: 5.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01992/0.4519, allocations: 3.8 MB / 0.5153 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006289/0.4583, allocations: 2.844 MB / 0.518 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.4584, allocations: 205.8 kB / 0.5182 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00058/0.459, allocations: 283.7 kB / 0.5185 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01602/0.475, allocations: 9.216 MB / 0.5275 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001255/0.4752, allocations: 47.58 kB / 0.5275 GB, free: 6.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004286/0.4756, allocations: 131.9 kB / 0.5277 GB, free: 6.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003152/0.4788, allocations: 1.907 MB / 0.5295 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01456/0.4933, allocations: 8.043 MB / 0.5374 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04254/0.5359, allocations: 36.11 MB / 0.5727 GB, free: 7.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007129/0.5431, allocations: 3.61 MB / 0.5762 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002273/0.5454, allocations: 2.021 MB / 0.5782 GB, free: 1.863 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003651/0.5458, allocations: 328.2 kB / 0.5785 GB, free: 1.488 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/0.5458, allocations: 59.5 kB / 0.5785 GB, free: 1.418 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 5.841e-06/0.5459, allocations: 3.984 kB / 0.5785 GB, free: 1.414 MB / 446.1 MB Notification: Performance of matching and sorting (n=177): time 0.03438/0.5802, allocations: 15.36 MB / 0.5935 GB, free: 1.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.417e-05/0.5804, allocations: 175.2 kB / 0.5937 GB, free: 1.703 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00456/0.5849, allocations: 3.66 MB / 0.5973 GB, free: 14.04 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002771/0.5852, allocations: 53.61 kB / 0.5973 GB, free: 13.99 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.5868, allocations: 2.811 MB / 0.6001 GB, free: 11.14 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006405/0.5875, allocations: 0.6826 MB / 0.6007 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001342/0.5888, allocations: 1.119 MB / 0.6018 GB, free: 9.316 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.369e-05/0.5889, allocations: 305.1 kB / 0.6021 GB, free: 9.016 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002863/0.5918, allocations: 2.181 MB / 0.6042 GB, free: 6.828 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004752/0.5965, allocations: 5.52 MB / 0.6096 GB, free: 15.64 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009075/0.6056, allocations: 8.351 MB / 0.6178 GB, free: 5.629 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.372e-05/0.6057, allocations: 36 kB / 0.6178 GB, free: 5.594 MB / 494.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01399/0.6197, allocations: 8.271 MB / 0.6259 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.03e-05/0.6198, allocations: 59.98 kB / 0.626 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/0.6199, allocations: 116 kB / 0.6261 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/0.6221, allocations: 0.973 MB / 0.627 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003846/0.6259, allocations: 1.263 MB / 0.6283 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007608/0.6336, allocations: 6.476 MB / 0.6346 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00455/0.6381, allocations: 323.5 kB / 0.6349 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009233/0.6391, allocations: 339.9 kB / 0.6352 GB, free: 3.637 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * Number of states: 0 () * Number of discrete variables: 24 (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 (671): * Single equations (assignments): 667 * 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.003738/0.6428, allocations: 1.965 MB / 0.6371 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006946/0.6435, allocations: 319.9 kB / 0.6374 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1809/0.8244, allocations: 3.567 MB / 0.6409 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.065e-05/0.8245, allocations: 20.31 kB / 0.6409 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.8245, allocations: 2.656 kB / 0.6409 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.8245, allocations: 9.484 kB / 0.6409 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.8384, allocations: 8.66 MB / 0.6494 GB, free: 155.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.8385, allocations: 3.281 kB / 0.6494 GB, free: 155.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.8397, allocations: 275.1 kB / 0.6497 GB, free: 155.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001851/0.8416, allocations: 0.8079 MB / 0.6505 GB, free: 155 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001657/0.8418, allocations: 24.81 kB / 0.6505 GB, free: 155 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00654/0.8483, allocations: 5.985 MB / 0.6563 GB, free: 151.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.8484, allocations: 2.562 kB / 0.6563 GB, free: 151.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00825/0.8566, allocations: 6.393 MB / 0.6626 GB, free: 149.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.8583, allocations: 0.6625 MB / 0.6632 GB, free: 149.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000436/0.8587, allocations: 29.84 kB / 0.6632 GB, free: 149.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.8602, allocations: 100.8 kB / 0.6633 GB, free: 149 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004336/0.8606, allocations: 100.7 kB / 0.6634 GB, free: 149 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.8608, allocations: 48.88 kB / 0.6635 GB, free: 149 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003995/0.8648, allocations: 2.29 MB / 0.6657 GB, free: 148.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8648, allocations: 0 / 0.6657 GB, free: 148.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005307/0.8701, allocations: 0.9396 MB / 0.6666 GB, free: 148.1 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 (137): * Single equations (assignments): 133 * 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.009487/0.8796, allocations: 7.024 MB / 0.6735 GB, free: 145 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008978/0.8886, allocations: 5.269 MB / 0.6786 GB, free: 143.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.8887, allocations: 5.5 kB / 0.6787 GB, free: 143.2 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003104/0.8918, allocations: 1.95 MB / 0.6806 GB, free: 142.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/0.8946, allocations: 384.7 kB / 0.6809 GB, free: 142.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06493/0.9596, allocations: 50 MB / 0.7297 GB, free: 96.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00277/0.9624, allocations: 3.066 MB / 0.7327 GB, free: 93.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003775/0.9662, allocations: 1.81 MB / 0.7345 GB, free: 91.81 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/0.9681, allocations: 1.733 MB / 0.7362 GB, free: 90.08 MB / 0.4981 GB Notification: Performance of SimCode: time 1.593e-06/0.9681, allocations: 0 / 0.7362 GB, free: 90.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.43/3.398, allocations: 68.33 MB / 0.8029 GB, free: 21.74 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/3.398, allocations: 256.2 kB / 0.8032 GB, free: 21.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.52/6.918, allocations: 15.84 kB / 0.8032 GB, free: 21.46 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches