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.001197/0.001197, allocations: 110.5 kB / 16.41 MB, free: 6.461 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.001279/0.001279, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.361/1.361, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2032/0.2032, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 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.001526/0.001526, allocations: 65.47 kB / 441.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1149, allocations: 57.8 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01405/0.129, allocations: 10.22 MB / 0.4974 GB, free: 2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1398, allocations: 3.921 MB / 0.5012 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002004/0.1419, allocations: 55.88 kB / 0.5013 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006171/0.1482, allocations: 2.316 MB / 0.5035 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006602/0.1548, allocations: 1.735 MB / 0.5052 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002487/0.1573, allocations: 0.7018 MB / 0.5059 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00719/0.1645, allocations: 3.809 MB / 0.5096 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005255/0.1698, allocations: 2.985 MB / 0.5125 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002716/0.1725, allocations: 1.374 MB / 0.5139 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003231/0.1758, allocations: 1.853 MB / 0.5157 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000878/0.1767, allocations: 312 kB / 0.516 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002393/0.1791, allocations: 1.19 MB / 0.5172 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002109/0.1812, allocations: 1.726 MB / 0.5188 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003115/0.1843, allocations: 2.051 MB / 0.5208 GB, free: 9.855 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008056/0.1924, allocations: 6.829 MB / 0.5275 GB, free: 3.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1925, allocations: 0 / 0.5275 GB, free: 3.004 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1925, allocations: 0 / 0.5275 GB, free: 3.004 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003014/0.1928, allocations: 4 kB / 0.5275 GB, free: 3 MB / 414.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.3123/0.5051, allocations: 4.522 MB / 0.5319 GB, free: 36.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.5052, allocations: 14.33 kB / 0.5319 GB, free: 36.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001155/0.5063, allocations: 0.6559 MB / 0.5326 GB, free: 36.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02197/0.5283, allocations: 3.808 MB / 0.5363 GB, free: 36.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007864/0.5362, allocations: 2.865 MB / 0.5391 GB, free: 35.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.5365, allocations: 213.8 kB / 0.5393 GB, free: 35.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007641/0.5372, allocations: 276 kB / 0.5396 GB, free: 35.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01547/0.5527, allocations: 9.223 MB / 0.5486 GB, free: 31.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/0.5529, allocations: 43.36 kB / 0.5486 GB, free: 31.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003482/0.5532, allocations: 131.3 kB / 0.5487 GB, free: 30.95 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003087/0.5563, allocations: 1.924 MB / 0.5506 GB, free: 30.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01367/0.57, allocations: 8.038 MB / 0.5585 GB, free: 25.69 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03762/0.6077, allocations: 35.92 MB / 0.5936 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007557/0.6153, allocations: 3.61 MB / 0.5971 GB, free: 1.051 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002507/0.6178, allocations: 2.017 MB / 0.5991 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004337/0.6182, allocations: 347.5 kB / 0.5994 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.259e-05/0.6183, allocations: 55.44 kB / 0.5994 GB, free: 14.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.717e-06/0.6183, allocations: 0 / 0.5994 GB, free: 14.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=177): time 0.03531/0.6536, allocations: 15.35 MB / 0.6144 GB, free: 15.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.6538, allocations: 175.2 kB / 0.6146 GB, free: 14.86 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005084/0.6589, allocations: 3.649 MB / 0.6182 GB, free: 11.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002947/0.6592, allocations: 53.7 kB / 0.6182 GB, free: 11.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002016/0.6612, allocations: 2.823 MB / 0.621 GB, free: 8.289 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007385/0.662, allocations: 0.6749 MB / 0.6216 GB, free: 7.605 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/0.6635, allocations: 1.126 MB / 0.6227 GB, free: 6.469 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.6636, allocations: 301.1 kB / 0.623 GB, free: 6.172 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002915/0.6665, allocations: 2.185 MB / 0.6251 GB, free: 3.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005226/0.6717, allocations: 5.52 MB / 0.6305 GB, free: 12.79 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009667/0.6814, allocations: 8.358 MB / 0.6387 GB, free: 2.781 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/0.6816, allocations: 32 kB / 0.6387 GB, free: 2.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01561/0.6972, allocations: 8.271 MB / 0.6468 GB, free: 10.46 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.221e-05/0.6973, allocations: 52 kB / 0.6469 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/0.6975, allocations: 120.9 kB / 0.647 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002336/0.6998, allocations: 0.9687 MB / 0.6479 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004253/0.7041, allocations: 1.271 MB / 0.6492 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008821/0.7129, allocations: 6.917 MB / 0.6559 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004858/0.7178, allocations: 319.5 kB / 0.6562 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009422/0.7188, allocations: 344 kB / 0.6565 GB, free: 336 kB / 494.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.003915/0.7227, allocations: 1.973 MB / 0.6585 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00078/0.7235, allocations: 319.9 kB / 0.6588 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006155/0.7297, allocations: 3.566 MB / 0.6623 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.251e-05/0.7297, allocations: 20 kB / 0.6623 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.7297, allocations: 7.938 kB / 0.6623 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.7298, allocations: 7.969 kB / 0.6623 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/0.7447, allocations: 8.567 MB / 0.6707 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.7448, allocations: 2.438 kB / 0.6707 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.7461, allocations: 275.5 kB / 0.6709 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/0.7482, allocations: 0.8046 MB / 0.6717 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/0.7483, allocations: 31.98 kB / 0.6717 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008272/0.7566, allocations: 6.492 MB / 0.6781 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.7566, allocations: 0 / 0.6781 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009673/0.7663, allocations: 6.394 MB / 0.6843 GB, free: 3.609 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/0.7681, allocations: 0.6569 MB / 0.685 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004031/0.7685, allocations: 31.94 kB / 0.685 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.7698, allocations: 107.8 kB / 0.6851 GB, free: 2.793 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002841/0.7701, allocations: 104.8 kB / 0.6852 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.7702, allocations: 44 kB / 0.6852 GB, free: 2.648 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003596/0.7738, allocations: 2.29 MB / 0.6875 GB, free: 380 kB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7738, allocations: 0 / 0.6875 GB, free: 380 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004775/0.7786, allocations: 0.9428 MB / 0.6884 GB, free: 15.43 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 (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.01023/0.7888, allocations: 7.044 MB / 0.6953 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009033/0.7979, allocations: 5.274 MB / 0.7004 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.7979, allocations: 0 / 0.7004 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003151/0.8011, allocations: 1.952 MB / 0.7023 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/0.8039, allocations: 410.8 kB / 0.7027 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06444/0.8684, allocations: 43.43 MB / 0.7451 GB, free: 164 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2927/1.161, allocations: 3.057 MB / 0.7481 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004304/1.166, allocations: 1.812 MB / 0.7499 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002643/1.168, allocations: 1.729 MB / 0.7516 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/1.168, allocations: 2.75 kB / 0.7516 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1085/1.277, allocations: 67.51 MB / 0.8175 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.94/18.22, allocations: 4.062 kB / 0.8175 GB, free: 147.4 MB / 0.5762 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