Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001669/0.001669, allocations: 113.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002148/0.002148, allocations: 207.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.241/0.241, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001773, allocations: 75.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.359, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01143/0.3704, allocations: 9.463 MB / 0.5398 GB, free: 5.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008141/0.3786, allocations: 3.81 MB / 0.5435 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001601/0.3803, allocations: 51.66 kB / 0.5435 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004542/0.3848, allocations: 2.285 MB / 0.5458 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004291/0.3892, allocations: 1.607 MB / 0.5473 GB, free: 380 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.3911, allocations: 0.6927 MB / 0.548 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005766/0.3969, allocations: 3.79 MB / 0.5517 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003595/0.4005, allocations: 2.91 MB / 0.5546 GB, free: 9.09 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002385/0.4029, allocations: 1.285 MB / 0.5558 GB, free: 7.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00365/0.4066, allocations: 1.721 MB / 0.5575 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001037/0.4077, allocations: 291.9 kB / 0.5578 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002445/0.4101, allocations: 1.151 MB / 0.5589 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001892/0.4121, allocations: 1.586 MB / 0.5604 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002137/0.4142, allocations: 1.884 MB / 0.5623 GB, free: 1.152 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00639/0.4206, allocations: 6.284 MB / 0.5684 GB, free: 10.85 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4206, allocations: 0 / 0.5684 GB, free: 10.85 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4207, allocations: 0 / 0.5684 GB, free: 10.85 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001041/0.4208, allocations: 4 kB / 0.5684 GB, free: 10.84 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.008974/0.4297, allocations: 4.252 MB / 0.5726 GB, free: 6.523 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4298, allocations: 16.03 kB / 0.5726 GB, free: 6.508 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009624/0.4308, allocations: 0.6082 MB / 0.5732 GB, free: 5.891 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02227/0.4531, allocations: 3.736 MB / 0.5768 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005762/0.4589, allocations: 2.518 MB / 0.5793 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.459, allocations: 193.3 kB / 0.5795 GB, free: 15.37 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007443/0.4598, allocations: 263.7 kB / 0.5797 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0137/0.4735, allocations: 8.518 MB / 0.588 GB, free: 5.977 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001006/0.4736, allocations: 43.64 kB / 0.5881 GB, free: 5.934 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003264/0.474, allocations: 123.9 kB / 0.5882 GB, free: 5.812 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003035/0.477, allocations: 1.743 MB / 0.5899 GB, free: 4.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/0.4915, allocations: 7.424 MB / 0.5972 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04162/0.5332, allocations: 33.85 MB / 0.6302 GB, free: 9.797 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006824/0.5401, allocations: 3.022 MB / 0.6332 GB, free: 6.625 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002402/0.5425, allocations: 1.844 MB / 0.635 GB, free: 4.766 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004295/0.543, allocations: 335.8 kB / 0.6353 GB, free: 4.379 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/0.543, allocations: 51.16 kB / 0.6353 GB, free: 4.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.719e-06/0.543, allocations: 0 / 0.6353 GB, free: 4.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03674/0.5798, allocations: 14.36 MB / 0.6494 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.226e-05/0.5799, allocations: 179.2 kB / 0.6495 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004782/0.5847, allocations: 3.521 MB / 0.653 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002902/0.585, allocations: 45.89 kB / 0.653 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002024/0.587, allocations: 2.656 MB / 0.6556 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007056/0.5878, allocations: 0.6132 MB / 0.6562 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001554/0.5893, allocations: 1.059 MB / 0.6572 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5895, allocations: 305.1 kB / 0.6575 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003228/0.5927, allocations: 2.013 MB / 0.6595 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00613/0.5989, allocations: 5.222 MB / 0.6646 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/0.6104, allocations: 7.856 MB / 0.6723 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/0.6105, allocations: 32 kB / 0.6723 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01519/0.6257, allocations: 7.791 MB / 0.6799 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.088e-05/0.6258, allocations: 52 kB / 0.68 GB, free: 3.148 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.626, allocations: 112 kB / 0.6801 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/0.6283, allocations: 0.9731 MB / 0.681 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003862/0.6322, allocations: 1.181 MB / 0.6822 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009697/0.6419, allocations: 6.915 MB / 0.6889 GB, free: 9.828 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003958/0.6459, allocations: 299.5 kB / 0.6892 GB, free: 9.535 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008623/0.6468, allocations: 320 kB / 0.6895 GB, free: 9.223 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.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 (630): * Single equations (assignments): 626 * 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.002827/0.6497, allocations: 1.856 MB / 0.6913 GB, free: 7.352 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005825/0.6503, allocations: 300.1 kB / 0.6916 GB, free: 7.055 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005585/0.6558, allocations: 3.194 MB / 0.6947 GB, free: 3.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.638e-05/0.6559, allocations: 16 kB / 0.6947 GB, free: 3.824 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.6559, allocations: 12 kB / 0.6948 GB, free: 3.812 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.56e-05/0.656, allocations: 7.969 kB / 0.6948 GB, free: 3.805 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.67, allocations: 7.811 MB / 0.7024 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/0.6701, allocations: 0 / 0.7024 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.6714, allocations: 219.7 kB / 0.7026 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002285/0.6737, allocations: 0.8162 MB / 0.7034 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002305/0.6739, allocations: 28 kB / 0.7034 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009157/0.6831, allocations: 6.491 MB / 0.7098 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.6831, allocations: 0 / 0.7098 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00955/0.6927, allocations: 5.829 MB / 0.7155 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009336/0.6937, allocations: 357 kB / 0.7158 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004738/0.6942, allocations: 24 kB / 0.7158 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.6955, allocations: 95.88 kB / 0.7159 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002927/0.6958, allocations: 88.75 kB / 0.716 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.6959, allocations: 40 kB / 0.716 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003985/0.6999, allocations: 2.209 MB / 0.7182 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.81e-07/0.6999, allocations: 0 / 0.7182 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007814/0.7078, allocations: 0.8593 MB / 0.719 GB, free: 10.7 MB / 0.5762 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 (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.01569/0.7235, allocations: 6.459 MB / 0.7253 GB, free: 4.203 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2535/0.977, allocations: 4.881 MB / 0.7301 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/0.9771, allocations: 1.562 kB / 0.7301 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00352/0.9806, allocations: 1.78 MB / 0.7318 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.9835, allocations: 392.4 kB / 0.7322 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0523/1.036, allocations: 40.69 MB / 0.772 GB, free: 149.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002526/1.038, allocations: 2.877 MB / 0.7748 GB, free: 146.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003233/1.042, allocations: 1.717 MB / 0.7764 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001719/1.043, allocations: 1.558 MB / 0.778 GB, free: 142.9 MB / 0.5762 GB Notification: Performance of SimCode: time 8.92e-07/1.043, allocations: 0 / 0.778 GB, free: 142.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08747/1.131, allocations: 63.45 MB / 0.8399 GB, free: 79.86 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.78/21.91, allocations: 18.8 kB / 0.8399 GB, free: 79.84 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches