Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 198.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 226.5 MB / 243.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007798/0.00078, allocations: 95.92 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3041/0.3041, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002514/0.0002515, allocations: 11.98 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3044, allocations: 62.95 MB / 0.516 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.02617/0.3306, allocations: 37.22 MB / 0.5523 GB, free: 10.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.3496, allocations: 8.645 MB / 0.5607 GB, free: 4.582 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008515/0.3581, allocations: 173.3 kB / 0.5609 GB, free: 4.555 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008804/0.367, allocations: 1.931 MB / 0.5628 GB, free: 3.871 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01949/0.3865, allocations: 5.821 MB / 0.5685 GB, free: 1.402 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003641/0.3902, allocations: 0.63 MB / 0.5691 GB, free: 1 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04082/0.431, allocations: 31.92 MB / 0.6003 GB, free: 2.949 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006467/0.4375, allocations: 3.872 MB / 0.604 GB, free: 15.01 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002627/0.4402, allocations: 1.039 MB / 0.6051 GB, free: 13.96 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002778/0.443, allocations: 1.62 MB / 0.6066 GB, free: 12.34 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007648/0.4438, allocations: 127.9 kB / 0.6068 GB, free: 12.21 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002554/0.4464, allocations: 1.049 MB / 0.6078 GB, free: 11.16 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001999/0.4484, allocations: 1.41 MB / 0.6092 GB, free: 9.75 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002828/0.4513, allocations: 1.64 MB / 0.6108 GB, free: 8.094 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006224/0.4575, allocations: 4.953 MB / 0.6156 GB, free: 3.129 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.4575, allocations: 4 kB / 0.6156 GB, free: 3.125 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4576, allocations: 0 / 0.6156 GB, free: 3.125 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001853/0.4577, allocations: 0 / 0.6156 GB, free: 3.125 MB / 426.7 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.008418/0.4662, allocations: 3.551 MB / 0.6191 GB, free: 15.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4662, allocations: 12.03 kB / 0.6191 GB, free: 15.5 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001543/0.4678, allocations: 0.6167 MB / 0.6197 GB, free: 14.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02108/0.4889, allocations: 3.845 MB / 0.6234 GB, free: 11.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005666/0.4946, allocations: 2.502 MB / 0.6259 GB, free: 8.449 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.4948, allocations: 201.1 kB / 0.6261 GB, free: 8.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007211/0.4955, allocations: 263.8 kB / 0.6263 GB, free: 7.992 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0142/0.5097, allocations: 8.704 MB / 0.6348 GB, free: 14.67 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.5099, allocations: 39.66 kB / 0.6349 GB, free: 14.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003405/0.5102, allocations: 123.9 kB / 0.635 GB, free: 14.51 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003021/0.5133, allocations: 1.797 MB / 0.6367 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01364/0.5269, allocations: 7.566 MB / 0.6441 GB, free: 5.137 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04106/0.568, allocations: 34.47 MB / 0.6778 GB, free: 1.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2176/0.7857, allocations: 3.014 MB / 0.6807 GB, free: 133.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00226/0.788, allocations: 1.848 MB / 0.6825 GB, free: 133 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003507/0.7884, allocations: 325.5 kB / 0.6828 GB, free: 132.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.7884, allocations: 52.52 kB / 0.6829 GB, free: 132.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=135): time 4.098e-06/0.7884, allocations: 0 / 0.6829 GB, free: 132.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.03186/0.8203, allocations: 14.42 MB / 0.697 GB, free: 127.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.8204, allocations: 168.7 kB / 0.6971 GB, free: 127.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004168/0.8246, allocations: 3.54 MB / 0.7006 GB, free: 125.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002856/0.8249, allocations: 50.55 kB / 0.7006 GB, free: 125.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.8263, allocations: 2.705 MB / 0.7033 GB, free: 123.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006037/0.827, allocations: 0.6085 MB / 0.7039 GB, free: 123.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.8272, allocations: 108.3 kB / 0.704 GB, free: 123.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002759/0.8275, allocations: 0.5236 MB / 0.7045 GB, free: 122.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003106/0.8306, allocations: 2.002 MB / 0.7064 GB, free: 122.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005021/0.8356, allocations: 5.244 MB / 0.7116 GB, free: 117 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008755/0.8444, allocations: 7.875 MB / 0.7193 GB, free: 110.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001575/0.8446, allocations: 37.91 kB / 0.7193 GB, free: 110.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01355/0.8581, allocations: 7.806 MB / 0.7269 GB, free: 107.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.453e-05/0.8582, allocations: 55.78 kB / 0.727 GB, free: 107.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.8584, allocations: 119.7 kB / 0.7271 GB, free: 107.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002065/0.8604, allocations: 0.9664 MB / 0.728 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003503/0.8639, allocations: 1.193 MB / 0.7292 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006494/0.8704, allocations: 6.453 MB / 0.7355 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004388/0.8749, allocations: 315.4 kB / 0.7358 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006946/0.8756, allocations: 327.5 kB / 0.7361 GB, free: 100.6 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002868/0.8785, allocations: 1.88 MB / 0.7379 GB, free: 98.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006226/0.8791, allocations: 304.1 kB / 0.7382 GB, free: 98.63 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00476/0.8839, allocations: 3.207 MB / 0.7414 GB, free: 95.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/0.8839, allocations: 20.55 kB / 0.7414 GB, free: 95.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.8839, allocations: 4 kB / 0.7414 GB, free: 95.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.884, allocations: 15.91 kB / 0.7414 GB, free: 95.66 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/0.8953, allocations: 7.949 MB / 0.7492 GB, free: 87.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.8954, allocations: 0 / 0.7492 GB, free: 87.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.8964, allocations: 227.6 kB / 0.7494 GB, free: 87.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001817/0.8983, allocations: 0.8046 MB / 0.7502 GB, free: 86.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.8984, allocations: 28 kB / 0.7502 GB, free: 86.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00625/0.9047, allocations: 5.988 MB / 0.756 GB, free: 80.52 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.9047, allocations: 7.969 kB / 0.7561 GB, free: 80.51 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00695/0.9116, allocations: 5.793 MB / 0.7617 GB, free: 74.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009879/0.9127, allocations: 368.9 kB / 0.7621 GB, free: 74.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003386/0.913, allocations: 24 kB / 0.7621 GB, free: 74.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.9142, allocations: 100.7 kB / 0.7622 GB, free: 74.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003724/0.9146, allocations: 88.81 kB / 0.7623 GB, free: 74.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.9147, allocations: 40.94 kB / 0.7623 GB, free: 74.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002721/0.9175, allocations: 2.214 MB / 0.7645 GB, free: 71.85 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9175, allocations: 0 / 0.7645 GB, free: 71.85 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004293/0.9218, allocations: 0.8809 MB / 0.7653 GB, free: 70.98 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00708/0.9289, allocations: 6.43 MB / 0.7716 GB, free: 64.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006334/0.9352, allocations: 4.86 MB / 0.7764 GB, free: 59.68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.9353, allocations: 4.188 kB / 0.7764 GB, free: 59.67 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002286/0.9376, allocations: 1.76 MB / 0.7781 GB, free: 57.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.9402, allocations: 380.8 kB / 0.7784 GB, free: 57.53 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04427/0.9845, allocations: 31.11 MB / 0.8088 GB, free: 23.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002325/0.9868, allocations: 2.938 MB / 0.8117 GB, free: 20.38 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001926/0.9888, allocations: 1.64 MB / 0.8133 GB, free: 18.74 MB / 490.7 MB Notification: Performance of SimCode: time 8.92e-07/0.9888, allocations: 0 / 0.8133 GB, free: 18.74 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.849/7.838, allocations: 81.11 MB / 0.8925 GB, free: 168.6 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches