Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1922/0.1922, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 77.59 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09897, allocations: 62.44 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.009859/0.1089, allocations: 9.524 MB / 489.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005102/0.114, allocations: 2.932 MB / 492.6 MB, free: 8.664 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.1151, allocations: 47.94 kB / 492.6 MB, free: 8.617 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003567/0.1187, allocations: 1.998 MB / 494.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002251/0.121, allocations: 1.101 MB / 495.7 MB, free: 5.508 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006468/0.1216, allocations: 287.5 kB / 496 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002677/0.1243, allocations: 2.318 MB / 498.3 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002506/0.1268, allocations: 2.324 MB / 0.4889 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.1279, allocations: 0.8723 MB / 0.4898 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.1294, allocations: 1.153 MB / 0.4909 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003959/0.1298, allocations: 199.9 kB / 0.4911 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.131, allocations: 0.6943 MB / 0.4918 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009914/0.132, allocations: 1.106 MB / 0.4928 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001445/0.1334, allocations: 1.308 MB / 0.4941 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003724/0.1372, allocations: 4.167 MB / 0.4982 GB, free: 7.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1372, allocations: 0 / 0.4982 GB, free: 7.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1372, allocations: 0 / 0.4982 GB, free: 7.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001018/0.1373, allocations: 0 / 0.4982 GB, free: 7.008 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.004781/0.1421, allocations: 2.853 MB / 0.501 GB, free: 4.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1421, allocations: 8.031 kB / 0.501 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000559/0.1427, allocations: 487.1 kB / 0.5014 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004902/0.1476, allocations: 1.557 MB / 0.503 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.1497, allocations: 1.328 MB / 0.5043 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.1498, allocations: 147.8 kB / 0.5044 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/0.1501, allocations: 187.9 kB / 0.5046 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1737/0.3239, allocations: 6.238 MB / 0.5107 GB, free: 37.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.351e-05/0.324, allocations: 13.81 kB / 0.5107 GB, free: 37.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/0.3243, allocations: 87.28 kB / 0.5108 GB, free: 37.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002407/0.3267, allocations: 1.343 MB / 0.5121 GB, free: 37.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.3378, allocations: 5.332 MB / 0.5173 GB, free: 35.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02179/0.3596, allocations: 20.16 MB / 0.537 GB, free: 20.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003269/0.3629, allocations: 2.017 MB / 0.539 GB, free: 18.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006728/0.3636, allocations: 0.6914 MB / 0.5396 GB, free: 18.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004593/0.3682, allocations: 3.611 MB / 0.5432 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.3683, allocations: 35 kB / 0.5432 GB, free: 14.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.855e-06/0.3683, allocations: 0 / 0.5432 GB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.00429/0.3726, allocations: 1.981 MB / 0.5451 GB, free: 12.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.3726, allocations: 59.84 kB / 0.5452 GB, free: 12.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.3744, allocations: 1.941 MB / 0.5471 GB, free: 10.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.419e-05/0.3744, allocations: 33.7 kB / 0.5471 GB, free: 10.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005808/0.375, allocations: 1.836 MB / 0.5489 GB, free: 8.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.3751, allocations: 312.1 kB / 0.5492 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005134/0.3757, allocations: 0.619 MB / 0.5498 GB, free: 7.457 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.935e-05/0.3757, allocations: 349.9 kB / 0.5501 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000892/0.3766, allocations: 0.892 MB / 0.551 GB, free: 6.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.3781, allocations: 2.755 MB / 0.5537 GB, free: 2.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003135/0.3813, allocations: 3.972 MB / 0.5576 GB, free: 13.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.527e-05/0.3813, allocations: 16 kB / 0.5576 GB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.004548/0.3858, allocations: 3.519 MB / 0.561 GB, free: 10.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.3859, allocations: 35.98 kB / 0.5611 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.563e-05/0.386, allocations: 68 kB / 0.5611 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.359e-05/0.386, allocations: 87.94 kB / 0.5612 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/0.3877, allocations: 0.6511 MB / 0.5618 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.048e-05/0.3878, allocations: 128.1 kB / 0.562 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.3893, allocations: 423.5 kB / 0.5624 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001888/0.3895, allocations: 188 kB / 0.5626 GB, free: 8.52 MB / 398.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.001553/0.3911, allocations: 1.342 MB / 0.5639 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002111/0.3913, allocations: 153.9 kB / 0.564 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.3916, allocations: 204.8 kB / 0.5642 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/0.3916, allocations: 8 kB / 0.5642 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3916, allocations: 0 / 0.5642 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3916, allocations: 3.375 kB / 0.5642 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005437/0.3971, allocations: 4.033 MB / 0.5682 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.946e-06/0.3971, allocations: 8.156 kB / 0.5682 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/0.3975, allocations: 107.8 kB / 0.5683 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/0.3975, allocations: 8 kB / 0.5683 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.3976, allocations: 16 kB / 0.5683 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.053e-05/0.3976, allocations: 11.94 kB / 0.5683 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.3976, allocations: 8 kB / 0.5683 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.399, allocations: 1.26 MB / 0.5695 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.3993, allocations: 252.2 kB / 0.5698 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001667/0.3995, allocations: 16 kB / 0.5698 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004549/0.4, allocations: 31.98 kB / 0.5698 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.4001, allocations: 51.81 kB / 0.5699 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.082e-05/0.4001, allocations: 31.98 kB / 0.5699 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.4018, allocations: 1.275 MB / 0.5711 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4018, allocations: 0 / 0.5711 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002422/0.4042, allocations: 0.687 MB / 0.5718 GB, free: 14.76 MB / 414.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.001842/0.4061, allocations: 1.873 MB / 0.5736 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003137/0.4093, allocations: 2.247 MB / 0.5758 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.4093, allocations: 0 / 0.5758 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005671/0.4099, allocations: 465.7 kB / 0.5763 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.4114, allocations: 231 kB / 0.5765 GB, free: 9.871 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.029/0.4404, allocations: 22.09 MB / 0.5981 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00277/0.4432, allocations: 2.272 MB / 0.6003 GB, free: 14.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002215/0.4455, allocations: 0.9529 MB / 0.6012 GB, free: 13.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/0.4467, allocations: 1.042 MB / 0.6023 GB, free: 12.5 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4468, allocations: 4 kB / 0.6023 GB, free: 12.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05799/0.5048, allocations: 32 MB / 0.6335 GB, free: 12.63 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.223/9.728, allocations: 20.62 kB / 0.6335 GB, free: 12.61 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches