Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 101.5 kB / 17.77 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 188 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1948/0.1948, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3505, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.009732/0.3603, allocations: 9.737 MB / 0.5279 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006461/0.3668, allocations: 2.929 MB / 0.5308 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001687/0.3685, allocations: 53.34 kB / 0.5308 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003975/0.3725, allocations: 1.995 MB / 0.5328 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002929/0.3755, allocations: 1.129 MB / 0.5339 GB, free: 8.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000714/0.3762, allocations: 290.9 kB / 0.5342 GB, free: 8.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003224/0.3795, allocations: 2.324 MB / 0.5364 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002983/0.3825, allocations: 2.329 MB / 0.5387 GB, free: 5.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.3838, allocations: 0.9035 MB / 0.5396 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.3855, allocations: 1.175 MB / 0.5407 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005043/0.386, allocations: 202 kB / 0.5409 GB, free: 4.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001406/0.3875, allocations: 0.6994 MB / 0.5416 GB, free: 4.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001045/0.3885, allocations: 1.156 MB / 0.5427 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001189/0.3897, allocations: 1.347 MB / 0.5441 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004056/0.3938, allocations: 4.457 MB / 0.5484 GB, free: 13.29 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/0.3938, allocations: 0 / 0.5484 GB, free: 13.29 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3938, allocations: 0 / 0.5484 GB, free: 13.29 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.782e-05/0.3939, allocations: 0 / 0.5484 GB, free: 13.29 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.004342/0.3983, allocations: 2.935 MB / 0.5513 GB, free: 10.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3983, allocations: 12.03 kB / 0.5513 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005199/0.3988, allocations: 0.492 MB / 0.5518 GB, free: 9.793 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004829/0.4037, allocations: 1.584 MB / 0.5533 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/0.4063, allocations: 1.359 MB / 0.5546 GB, free: 6.797 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.4064, allocations: 151.8 kB / 0.5548 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.4068, allocations: 187.9 kB / 0.555 GB, free: 6.465 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008077/0.4148, allocations: 6.44 MB / 0.5612 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.354e-05/0.4149, allocations: 11.88 kB / 0.5613 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000217/0.4151, allocations: 95.89 kB / 0.5614 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00194/0.4171, allocations: 1.395 MB / 0.5627 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008448/0.4255, allocations: 5.495 MB / 0.5681 GB, free: 8.738 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02384/0.4494, allocations: 20.44 MB / 0.588 GB, free: 3.711 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003692/0.4531, allocations: 2.013 MB / 0.59 GB, free: 1.574 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008565/0.454, allocations: 0.6914 MB / 0.5907 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006405/0.4604, allocations: 3.628 MB / 0.5942 GB, free: 13.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.4605, allocations: 39 kB / 0.5943 GB, free: 13.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 4.648e-06/0.4605, allocations: 0 / 0.5943 GB, free: 13.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.004831/0.4653, allocations: 1.989 MB / 0.5962 GB, free: 11.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.4654, allocations: 55.84 kB / 0.5963 GB, free: 10.99 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002317/0.4677, allocations: 1.966 MB / 0.5982 GB, free: 9.023 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.4678, allocations: 37.7 kB / 0.5982 GB, free: 8.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.4689, allocations: 1.883 MB / 0.6001 GB, free: 7.066 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.4691, allocations: 308.1 kB / 0.6003 GB, free: 6.762 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007021/0.4699, allocations: 0.6307 MB / 0.601 GB, free: 6.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.47, allocations: 353.9 kB / 0.6013 GB, free: 5.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.4711, allocations: 0.896 MB / 0.6022 GB, free: 4.871 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/0.4733, allocations: 2.778 MB / 0.6049 GB, free: 1.152 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003745/0.4771, allocations: 4 MB / 0.6088 GB, free: 12.21 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.051e-05/0.4771, allocations: 16 kB / 0.6088 GB, free: 12.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004759/0.4819, allocations: 3.553 MB / 0.6123 GB, free: 8.641 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.013e-05/0.482, allocations: 32 kB / 0.6123 GB, free: 8.609 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.531e-05/0.482, allocations: 68 kB / 0.6124 GB, free: 8.543 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.996e-05/0.4821, allocations: 88 kB / 0.6125 GB, free: 8.457 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.4839, allocations: 0.6589 MB / 0.6131 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.859e-05/0.484, allocations: 131.5 kB / 0.6132 GB, free: 7.668 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.4856, allocations: 419.6 kB / 0.6136 GB, free: 7.254 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/0.4858, allocations: 192 kB / 0.6138 GB, free: 7.066 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.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 (365): * Single equations (assignments): 360 * 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.001726/0.4875, allocations: 1.377 MB / 0.6152 GB, free: 5.68 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.4877, allocations: 157.8 kB / 0.6153 GB, free: 5.523 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002723/0.488, allocations: 197.2 kB / 0.6155 GB, free: 5.328 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.488, allocations: 8 kB / 0.6155 GB, free: 5.32 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.488, allocations: 0 / 0.6155 GB, free: 5.32 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4881, allocations: 7.922 kB / 0.6155 GB, free: 5.312 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005888/0.4939, allocations: 4.096 MB / 0.6195 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.494, allocations: 4 kB / 0.6195 GB, free: 1.066 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003753/0.4944, allocations: 104.7 kB / 0.6196 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.899e-06/0.4944, allocations: 11.94 kB / 0.6196 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.535e-05/0.4944, allocations: 31.97 kB / 0.6197 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/0.4944, allocations: 11.94 kB / 0.6197 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/0.4945, allocations: 11.94 kB / 0.6197 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.4958, allocations: 1.259 MB / 0.6209 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003487/0.4961, allocations: 250.7 kB / 0.6211 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.4963, allocations: 23.98 kB / 0.6212 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.4967, allocations: 23.89 kB / 0.6212 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.4968, allocations: 63.77 kB / 0.6213 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.202e-05/0.4969, allocations: 31.98 kB / 0.6213 GB, free: 15.13 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001483/0.4983, allocations: 1.283 MB / 0.6225 GB, free: 13.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4984, allocations: 0 / 0.6225 GB, free: 13.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002205/0.5006, allocations: 0.7038 MB / 0.6232 GB, free: 13.15 MB / 494.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.001696/0.5023, allocations: 1.876 MB / 0.6251 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.5049, allocations: 2.062 MB / 0.6271 GB, free: 9.109 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.5049, allocations: 4.375 kB / 0.6271 GB, free: 9.105 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004934/0.5054, allocations: 455.9 kB / 0.6275 GB, free: 8.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.5066, allocations: 265.8 kB / 0.6278 GB, free: 8.406 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02375/0.5303, allocations: 21.1 MB / 0.6484 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002172/0.5325, allocations: 2.316 MB / 0.6506 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001905/0.5345, allocations: 0.9678 MB / 0.6516 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/0.5356, allocations: 1.069 MB / 0.6526 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of SimCode: time 1.112e-06/0.5356, allocations: 0 / 0.6526 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05783/0.5935, allocations: 33.44 MB / 0.6853 GB, free: 11.08 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.89, allocations: 7.672 kB / 0.6853 GB, free: 11.07 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches