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.001875/0.001875, allocations: 102.8 kB / 16.27 MB, free: 5.93 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.001853/0.001853, allocations: 190.7 kB / 17.2 MB, free: 5.574 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.364/1.364, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.201/0.201, allocations: 43.52 MB / 313.9 MB, free: 0.5273 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.001788/0.001788, allocations: 69.95 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1059, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.009922/0.1158, allocations: 10.22 MB / 450.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007986/0.1239, allocations: 3.91 MB / 454.8 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001629/0.1255, allocations: 59.81 kB / 454.8 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004325/0.1299, allocations: 2.324 MB / 457.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00433/0.1343, allocations: 1.724 MB / 458.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.1359, allocations: 0.7057 MB / 459.6 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005176/0.1411, allocations: 3.812 MB / 463.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003887/0.145, allocations: 2.989 MB / 466.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003143/0.1482, allocations: 1.367 MB / 467.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003553/0.1517, allocations: 1.861 MB / 469.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.153, allocations: 304 kB / 469.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003226/0.1562, allocations: 1.178 MB / 471.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00228/0.1585, allocations: 1.714 MB / 472.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003683/0.1622, allocations: 2.058 MB / 474.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008383/0.1706, allocations: 6.597 MB / 481.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.1707, allocations: 8 kB / 481.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1707, allocations: 0 / 481.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002054/0.1709, allocations: 0 / 481.4 MB, free: 13.79 MB / 366.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.01213/0.1831, allocations: 4.519 MB / 486 MB, free: 9.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.349e-05/0.1831, allocations: 11.89 kB / 486 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001282/0.1844, allocations: 0.658 MB / 486.6 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02229/0.2067, allocations: 3.802 MB / 490.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006024/0.2128, allocations: 2.842 MB / 493.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.213, allocations: 213.6 kB / 493.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006405/0.2136, allocations: 283.7 kB / 493.8 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.2282, allocations: 9.209 MB / 0.4912 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.2284, allocations: 47.59 kB / 0.4912 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000358/0.2287, allocations: 131.9 kB / 0.4914 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003212/0.2319, allocations: 1.915 MB / 0.4932 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01614/0.2481, allocations: 8.039 MB / 0.5011 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2472/0.4954, allocations: 36.1 MB / 0.5363 GB, free: 63.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007698/0.5031, allocations: 3.614 MB / 0.5399 GB, free: 62.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002381/0.5056, allocations: 2.019 MB / 0.5418 GB, free: 62.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003506/0.5059, allocations: 329.8 kB / 0.5421 GB, free: 62.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.506, allocations: 56.48 kB / 0.5422 GB, free: 62.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 5.29e-06/0.506, allocations: 1.375 kB / 0.5422 GB, free: 62.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=177): time 0.03478/0.5408, allocations: 15.36 MB / 0.5572 GB, free: 57.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.5409, allocations: 170.2 kB / 0.5574 GB, free: 57.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00424/0.5451, allocations: 3.661 MB / 0.5609 GB, free: 56.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003165/0.5454, allocations: 53.02 kB / 0.561 GB, free: 56.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001676/0.5471, allocations: 2.815 MB / 0.5637 GB, free: 53.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000747/0.5479, allocations: 0.6819 MB / 0.5644 GB, free: 53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001388/0.5493, allocations: 1.123 MB / 0.5655 GB, free: 52.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.319e-05/0.5494, allocations: 301.1 kB / 0.5658 GB, free: 52.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002697/0.5521, allocations: 2.185 MB / 0.5679 GB, free: 50.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003775/0.5558, allocations: 5.52 MB / 0.5733 GB, free: 43.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007356/0.5632, allocations: 8.357 MB / 0.5815 GB, free: 33.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/0.5634, allocations: 32 kB / 0.5815 GB, free: 33.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01354/0.5769, allocations: 8.278 MB / 0.5896 GB, free: 25.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.842e-05/0.5771, allocations: 56 kB / 0.5896 GB, free: 25.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001765/0.5772, allocations: 116.6 kB / 0.5898 GB, free: 25.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/0.5793, allocations: 0.9738 MB / 0.5907 GB, free: 24.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003727/0.583, allocations: 1.271 MB / 0.5919 GB, free: 23.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006681/0.5897, allocations: 6.924 MB / 0.5987 GB, free: 16.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004251/0.594, allocations: 319.4 kB / 0.599 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006332/0.5947, allocations: 340 kB / 0.5993 GB, free: 15.53 MB / 414.1 MB 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.002668/0.5974, allocations: 1.977 MB / 0.6013 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005952/0.598, allocations: 323.9 kB / 0.6016 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005191/0.6032, allocations: 3.566 MB / 0.6051 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/0.6032, allocations: 16 kB / 0.6051 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.6032, allocations: 8 kB / 0.6051 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.6032, allocations: 12.66 kB / 0.6051 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/0.6156, allocations: 8.669 MB / 0.6136 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.6157, allocations: 0 / 0.6136 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.617, allocations: 271.6 kB / 0.6138 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.619, allocations: 0.8065 MB / 0.6146 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001766/0.6191, allocations: 43.75 kB / 0.6146 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008395/0.6276, allocations: 6.432 MB / 0.6209 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.6276, allocations: 7.938 kB / 0.6209 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009678/0.6373, allocations: 6.385 MB / 0.6272 GB, free: 2.836 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/0.6391, allocations: 0.6608 MB / 0.6278 GB, free: 2.152 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005269/0.6396, allocations: 31.22 kB / 0.6278 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/0.6411, allocations: 111.8 kB / 0.628 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/0.6415, allocations: 99.67 kB / 0.628 GB, free: 1.922 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.6416, allocations: 44 kB / 0.6281 GB, free: 1.879 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003528/0.6452, allocations: 2.294 MB / 0.6303 GB, free: 15.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.265e-06/0.6452, allocations: 0 / 0.6303 GB, free: 15.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004818/0.65, allocations: 0.941 MB / 0.6312 GB, free: 14.66 MB / 446.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 (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.009269/0.6593, allocations: 7.028 MB / 0.6381 GB, free: 7.594 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01036/0.6697, allocations: 6.292 MB / 0.6443 GB, free: 1.336 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.6697, allocations: 0.875 kB / 0.6443 GB, free: 1.336 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003233/0.673, allocations: 1.946 MB / 0.6462 GB, free: 15.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003024/0.676, allocations: 415 kB / 0.6466 GB, free: 14.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07082/0.7468, allocations: 48.31 MB / 0.6937 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00423/0.7511, allocations: 3.065 MB / 0.6967 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004652/0.7558, allocations: 1.81 MB / 0.6985 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002744/0.7586, allocations: 1.733 MB / 0.7002 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of SimCode: time 1.242e-06/0.7586, allocations: 4 kB / 0.7002 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3218/1.08, allocations: 69.83 MB / 0.7684 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.85, allocations: 11.09 kB / 0.7684 GB, free: 184.5 MB / 0.5294 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches