Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.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.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009754/0.0009751, allocations: 95.84 kB / 17.35 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 211.4 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.7 MB / 246.8 MB, free: 9.449 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1901/0.1901, allocations: 46.18 MB / 345.2 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002559/0.0002559, allocations: 8 kB / 419.6 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1182, allocations: 63.55 MB / 483.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.02917/0.1474, allocations: 29.4 MB / 0.5006 GB, free: 6.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.1614, allocations: 6.271 MB / 0.5067 GB, free: 220 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005436/0.1669, allocations: 123.8 kB / 0.5068 GB, free: 96 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2236/0.3905, allocations: 284.7 kB / 0.5071 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002932/0.3934, allocations: 1.051 MB / 0.5081 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006215/0.3941, allocations: 259.5 kB / 0.5083 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004108/0.3982, allocations: 3.372 MB / 0.5116 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00454/0.4027, allocations: 3.336 MB / 0.5149 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.4039, allocations: 0.6294 MB / 0.5155 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001389/0.4053, allocations: 1.029 MB / 0.5165 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002121/0.4055, allocations: 83.25 kB / 0.5166 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001243/0.4067, allocations: 0.6339 MB / 0.5172 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001014/0.4078, allocations: 0.9903 MB / 0.5182 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000852/0.4086, allocations: 1.178 MB / 0.5193 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003733/0.4124, allocations: 4.002 MB / 0.5232 GB, free: 8.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4124, allocations: 1 kB / 0.5232 GB, free: 8.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4124, allocations: 0 / 0.5232 GB, free: 8.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.494e-05/0.4124, allocations: 4 kB / 0.5232 GB, free: 8.219 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: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.003786/0.4162, allocations: 2.342 MB / 0.5255 GB, free: 6.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.4163, allocations: 14.69 kB / 0.5255 GB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005697/0.4169, allocations: 484.6 kB / 0.526 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004923/0.4218, allocations: 1.602 MB / 0.5276 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.4238, allocations: 1.32 MB / 0.5289 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.4239, allocations: 145.2 kB / 0.529 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003535/0.4242, allocations: 187.4 kB / 0.5292 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008311/0.4326, allocations: 6.247 MB / 0.5353 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.922e-05/0.4326, allocations: 14.91 kB / 0.5353 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/0.4329, allocations: 86.72 kB / 0.5354 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001825/0.4347, allocations: 1.342 MB / 0.5367 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01/0.4447, allocations: 5.338 MB / 0.5419 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02914/0.4739, allocations: 20.18 MB / 0.5616 GB, free: 9.738 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004152/0.4781, allocations: 2.009 MB / 0.5636 GB, free: 7.609 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009804/0.4791, allocations: 0.6914 MB / 0.5642 GB, free: 6.914 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006415/0.4855, allocations: 3.612 MB / 0.5678 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.4856, allocations: 41.06 kB / 0.5678 GB, free: 3.133 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.877e-06/0.4856, allocations: 0 / 0.5678 GB, free: 3.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.00553/0.4911, allocations: 1.977 MB / 0.5697 GB, free: 1.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.196e-05/0.4913, allocations: 65 kB / 0.5698 GB, free: 1.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004269/0.4955, allocations: 1.933 MB / 0.5717 GB, free: 15.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.107e-05/0.4956, allocations: 37.7 kB / 0.5717 GB, free: 15.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00158/0.4972, allocations: 1.835 MB / 0.5735 GB, free: 13.25 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004655/0.4977, allocations: 318.7 kB / 0.5738 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005387/0.4983, allocations: 276.1 kB / 0.5741 GB, free: 12.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.4985, allocations: 353.9 kB / 0.5744 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001655/0.5001, allocations: 0.8874 MB / 0.5753 GB, free: 11.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003429/0.5036, allocations: 2.75 MB / 0.578 GB, free: 7.773 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004736/0.5083, allocations: 3.97 MB / 0.5818 GB, free: 3.152 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.708e-05/0.5084, allocations: 20 kB / 0.5819 GB, free: 3.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005979/0.5144, allocations: 3.521 MB / 0.5853 GB, free: 4 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.412e-05/0.5145, allocations: 33.05 kB / 0.5853 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.5146, allocations: 64 kB / 0.5854 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.754e-05/0.5147, allocations: 92 kB / 0.5855 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/0.5168, allocations: 0.6554 MB / 0.5861 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001731/0.517, allocations: 135.5 kB / 0.5863 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/0.5194, allocations: 415.5 kB / 0.5867 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000337/0.5197, allocations: 195.1 kB / 0.5868 GB, free: 14.49 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (362): * Single equations (assignments): 357 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002786/0.5225, allocations: 1.335 MB / 0.5881 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003964/0.5229, allocations: 153.9 kB / 0.5883 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005518/0.5235, allocations: 196.9 kB / 0.5885 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.599e-05/0.5235, allocations: 15.88 kB / 0.5885 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.5235, allocations: 7.922 kB / 0.5885 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5235, allocations: 0 / 0.5885 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008742/0.5323, allocations: 4.032 MB / 0.5924 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.5323, allocations: 4 kB / 0.5924 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.5328, allocations: 103.8 kB / 0.5925 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.691e-05/0.5328, allocations: 8 kB / 0.5925 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.463e-05/0.5329, allocations: 27.97 kB / 0.5926 GB, free: 8.461 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.354e-05/0.5329, allocations: 11.94 kB / 0.5926 GB, free: 8.449 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/0.5329, allocations: 8 kB / 0.5926 GB, free: 8.441 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.5346, allocations: 1.265 MB / 0.5938 GB, free: 7.078 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006287/0.5352, allocations: 258.7 kB / 0.5941 GB, free: 6.805 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003576/0.5356, allocations: 20 kB / 0.5941 GB, free: 6.785 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006667/0.5363, allocations: 31.88 kB / 0.5941 GB, free: 6.754 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.5364, allocations: 62.73 kB / 0.5942 GB, free: 6.695 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/0.5366, allocations: 28 kB / 0.5942 GB, free: 6.668 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.539, allocations: 1.271 MB / 0.5954 GB, free: 5.406 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.539, allocations: 0 / 0.5954 GB, free: 5.406 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003187/0.5422, allocations: 0.6727 MB / 0.5961 GB, free: 4.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * 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 (57): * Single equations (assignments): 54 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002371/0.5446, allocations: 1.875 MB / 0.5979 GB, free: 2.746 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003469/0.5481, allocations: 2.02 MB / 0.5999 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5481, allocations: 1.875 kB / 0.5999 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006167/0.5487, allocations: 469.1 kB / 0.6004 GB, free: 288 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/0.5517, allocations: 219.4 kB / 0.6006 GB, free: 72 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03664/0.5883, allocations: 23.32 MB / 0.6233 GB, free: 5.785 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003593/0.592, allocations: 2.279 MB / 0.6256 GB, free: 3.477 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002538/0.5945, allocations: 0.9559 MB / 0.6265 GB, free: 2.516 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001735/0.5963, allocations: 1.038 MB / 0.6275 GB, free: 1.477 MB / 478.1 MB Notification: Performance of SimCode: time 1.452e-06/0.5963, allocations: 4 kB / 0.6275 GB, free: 1.473 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06171/0.658, allocations: 31.16 MB / 0.6579 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002911/0.6584, allocations: 195.7 kB / 0.6581 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/3.155, allocations: 4 kB / 0.6581 GB, free: 2.23 MB / 0.4981 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches