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.00123/0.00123, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 202.4 kB / 18.57 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2184/0.2184, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 77.81 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.122, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01135/0.1334, allocations: 9.514 MB / 489.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006513/0.1399, allocations: 2.935 MB / 492.6 MB, free: 8.691 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001893/0.1419, allocations: 51.88 kB / 492.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004052/0.1459, allocations: 1.99 MB / 494.6 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003321/0.1494, allocations: 1.105 MB / 495.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009257/0.1503, allocations: 295.4 kB / 496 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003564/0.1539, allocations: 2.322 MB / 498.3 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003471/0.1574, allocations: 2.313 MB / 0.4889 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.159, allocations: 0.88 MB / 0.4898 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001855/0.1608, allocations: 1.156 MB / 0.4909 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006496/0.1615, allocations: 192 kB / 0.4911 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.1633, allocations: 0.6943 MB / 0.4918 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001447/0.1648, allocations: 1.107 MB / 0.4928 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001835/0.1666, allocations: 1.301 MB / 0.4941 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004683/0.1713, allocations: 4.163 MB / 0.4982 GB, free: 7.047 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1714, allocations: 0 / 0.4982 GB, free: 7.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1714, allocations: 0 / 0.4982 GB, free: 7.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001806/0.1716, allocations: 0 / 0.4982 GB, free: 7.047 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.007491/0.1791, allocations: 2.865 MB / 0.501 GB, free: 4.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.1791, allocations: 8.031 kB / 0.501 GB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001056/0.1802, allocations: 483.1 kB / 0.5014 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005377/0.1856, allocations: 1.565 MB / 0.503 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/0.1882, allocations: 1.312 MB / 0.5043 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.1884, allocations: 151.8 kB / 0.5044 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005678/0.189, allocations: 187.9 kB / 0.5046 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2298/0.4188, allocations: 6.244 MB / 0.5107 GB, free: 37.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.287e-05/0.4189, allocations: 11.91 kB / 0.5107 GB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/0.4191, allocations: 87.94 kB / 0.5108 GB, free: 37.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002145/0.4213, allocations: 1.344 MB / 0.5121 GB, free: 37.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01019/0.4315, allocations: 5.333 MB / 0.5173 GB, free: 35.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02139/0.4529, allocations: 20.17 MB / 0.537 GB, free: 21.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003353/0.4563, allocations: 2.008 MB / 0.5389 GB, free: 19.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007103/0.457, allocations: 0.6893 MB / 0.5396 GB, free: 18.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004915/0.4619, allocations: 3.608 MB / 0.5431 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.462, allocations: 35 kB / 0.5432 GB, free: 14.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 3.286e-06/0.462, allocations: 0 / 0.5432 GB, free: 14.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004469/0.4665, allocations: 1.985 MB / 0.5451 GB, free: 12.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.4665, allocations: 55.84 kB / 0.5452 GB, free: 12.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.4684, allocations: 1.941 MB / 0.5471 GB, free: 10.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.4685, allocations: 34.33 kB / 0.5471 GB, free: 10.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/0.4692, allocations: 1.841 MB / 0.5489 GB, free: 8.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.4693, allocations: 312 kB / 0.5492 GB, free: 8.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005412/0.4699, allocations: 0.6229 MB / 0.5498 GB, free: 7.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.823e-05/0.4699, allocations: 353.9 kB / 0.5501 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009205/0.4709, allocations: 0.8842 MB / 0.551 GB, free: 6.758 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.4724, allocations: 2.751 MB / 0.5537 GB, free: 3.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003258/0.4756, allocations: 3.972 MB / 0.5576 GB, free: 14.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.606e-05/0.4757, allocations: 20 kB / 0.5576 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005451/0.4811, allocations: 3.523 MB / 0.561 GB, free: 10.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.599e-05/0.4812, allocations: 36.25 kB / 0.5611 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.49e-05/0.4813, allocations: 71.31 kB / 0.5611 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.011e-05/0.4814, allocations: 87.94 kB / 0.5612 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00173/0.4831, allocations: 0.655 MB / 0.5619 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.903e-05/0.4832, allocations: 127.5 kB / 0.562 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.4849, allocations: 411.5 kB / 0.5624 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002399/0.4852, allocations: 192 kB / 0.5626 GB, free: 9.062 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.002138/0.4873, allocations: 1.346 MB / 0.5639 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.4875, allocations: 153.9 kB / 0.564 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003141/0.4879, allocations: 200.8 kB / 0.5642 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/0.4879, allocations: 8 kB / 0.5642 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.4879, allocations: 0 / 0.5642 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.4879, allocations: 3.984 kB / 0.5642 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005862/0.4938, allocations: 4.029 MB / 0.5682 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.4938, allocations: 4 kB / 0.5682 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003805/0.4942, allocations: 107.8 kB / 0.5683 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/0.4942, allocations: 8 kB / 0.5683 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.4943, allocations: 16 kB / 0.5683 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.076e-05/0.4943, allocations: 12.56 kB / 0.5683 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.796e-06/0.4943, allocations: 19.92 kB / 0.5683 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.4957, allocations: 1.253 MB / 0.5695 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.496, allocations: 254.7 kB / 0.5698 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.4962, allocations: 16 kB / 0.5698 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.4967, allocations: 31.97 kB / 0.5698 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.4968, allocations: 55.77 kB / 0.5699 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.834e-05/0.4968, allocations: 28 kB / 0.5699 GB, free: 1.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00162/0.4984, allocations: 1.275 MB / 0.5711 GB, free: 15.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4985, allocations: 4 kB / 0.5712 GB, free: 15.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002276/0.5007, allocations: 0.6753 MB / 0.5718 GB, free: 15.3 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.001662/0.5024, allocations: 1.878 MB / 0.5736 GB, free: 13.31 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002894/0.5053, allocations: 2.246 MB / 0.5758 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.5053, allocations: 4 kB / 0.5758 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005079/0.5058, allocations: 465.2 kB / 0.5763 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.5069, allocations: 240.6 kB / 0.5765 GB, free: 10.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0294/0.5363, allocations: 22.09 MB / 0.5981 GB, free: 1.336 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002599/0.539, allocations: 2.275 MB / 0.6003 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002275/0.5413, allocations: 0.9519 MB / 0.6012 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/0.5426, allocations: 1.05 MB / 0.6023 GB, free: 13.02 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5426, allocations: 0 / 0.6023 GB, free: 13.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06059/0.6032, allocations: 31.98 MB / 0.6335 GB, free: 13.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.619/9.222, allocations: 9.5 kB / 0.6335 GB, free: 13.16 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv","/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