Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.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: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001914/0.001913, allocations: 113.4 kB / 17.86 MB, free: 5.625 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.00204/0.00204, allocations: 201.9 kB / 18.77 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.066/2.066, allocations: 222.9 MB / 242.5 MB, free: 15.48 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.3527/0.3527, allocations: 44.17 MB / 336.8 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 65.55 kB / 408.3 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1707, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.0524/0.2232, allocations: 37.7 MB / 0.495 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02367/0.2469, allocations: 7.572 MB / 0.5024 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01062/0.2576, allocations: 155.6 kB / 0.5025 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3538/0.6114, allocations: 1.988 MB / 0.5045 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004428/0.6159, allocations: 1.066 MB / 0.5055 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.6171, allocations: 268.2 kB / 0.5058 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00743/0.6246, allocations: 3.396 MB / 0.5091 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005762/0.6304, allocations: 2.324 MB / 0.5114 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002628/0.6331, allocations: 0.8022 MB / 0.5121 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003767/0.6368, allocations: 1.24 MB / 0.5134 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001417/0.6383, allocations: 153.8 kB / 0.5135 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002979/0.6413, allocations: 0.6982 MB / 0.5142 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002801/0.6441, allocations: 1.11 MB / 0.5153 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00439/0.6485, allocations: 1.309 MB / 0.5165 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007406/0.656, allocations: 3.503 MB / 0.52 GB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.656, allocations: 0 / 0.52 GB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.656, allocations: 0 / 0.52 GB, free: 9.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002625/0.6563, allocations: 0.9062 kB / 0.52 GB, free: 9.832 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.01329/0.6696, allocations: 2.943 MB / 0.5228 GB, free: 8.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.078e-05/0.6697, allocations: 13.27 kB / 0.5229 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008333/0.678, allocations: 1.583 MB / 0.5244 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004389/0.6825, allocations: 1.349 MB / 0.5257 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.6827, allocations: 146.8 kB / 0.5259 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007296/0.6834, allocations: 188.1 kB / 0.526 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01538/0.6988, allocations: 6.433 MB / 0.5323 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.435e-05/0.6989, allocations: 13.09 kB / 0.5323 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003936/0.6993, allocations: 85.86 kB / 0.5324 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002953/0.7023, allocations: 1.41 MB / 0.5338 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01534/0.7176, allocations: 5.492 MB / 0.5392 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04432/0.762, allocations: 20.6 MB / 0.5593 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006844/0.7689, allocations: 1.999 MB / 0.5612 GB, free: 7.953 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.7706, allocations: 0.6943 MB / 0.5619 GB, free: 7.258 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.7811, allocations: 3.639 MB / 0.5654 GB, free: 3.504 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/0.7812, allocations: 44.12 kB / 0.5655 GB, free: 3.453 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 6.662e-06/0.7812, allocations: 0 / 0.5655 GB, free: 3.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.008646/0.7899, allocations: 1.984 MB / 0.5674 GB, free: 1.465 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.628e-05/0.79, allocations: 62.94 kB / 0.5675 GB, free: 1.391 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005904/0.7959, allocations: 1.958 MB / 0.5694 GB, free: 15.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.7961, allocations: 33.7 kB / 0.5694 GB, free: 15.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002147/0.7983, allocations: 1.892 MB / 0.5713 GB, free: 13.49 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006245/0.7989, allocations: 310.7 kB / 0.5716 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001891/0.8008, allocations: 0.6211 MB / 0.5722 GB, free: 12.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002364/0.8011, allocations: 357.9 kB / 0.5725 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002311/0.8034, allocations: 0.892 MB / 0.5734 GB, free: 11.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004276/0.8077, allocations: 2.775 MB / 0.5761 GB, free: 7.629 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006951/0.8147, allocations: 3.992 MB / 0.58 GB, free: 2.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.351e-05/0.8148, allocations: 20 kB / 0.58 GB, free: 2.961 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.01001/0.8248, allocations: 3.56 MB / 0.5835 GB, free: 15.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.268e-05/0.8249, allocations: 32 kB / 0.5835 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/0.8251, allocations: 68.84 kB / 0.5836 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.8253, allocations: 88 kB / 0.5837 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003206/0.8285, allocations: 0.665 MB / 0.5843 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001816/0.8287, allocations: 129.4 kB / 0.5845 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003595/0.8323, allocations: 415.5 kB / 0.5848 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006255/0.8329, allocations: 194.6 kB / 0.585 GB, free: 14.32 MB / 446.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.003933/0.8369, allocations: 1.377 MB / 0.5864 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004829/0.8374, allocations: 161.9 kB / 0.5865 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006645/0.8381, allocations: 197.2 kB / 0.5867 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.371e-05/0.8381, allocations: 8 kB / 0.5867 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.8381, allocations: 0 / 0.5867 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/0.8382, allocations: 3.984 kB / 0.5867 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/0.8505, allocations: 4.099 MB / 0.5907 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/0.8506, allocations: 4 kB / 0.5907 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006592/0.8512, allocations: 108.1 kB / 0.5908 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.989e-05/0.8513, allocations: 8 kB / 0.5909 GB, free: 8.316 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.416e-05/0.8514, allocations: 20 kB / 0.5909 GB, free: 8.297 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.247e-05/0.8514, allocations: 14.7 kB / 0.5909 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.281e-05/0.8514, allocations: 10.72 kB / 0.5909 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.8539, allocations: 1.27 MB / 0.5921 GB, free: 6.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008107/0.8548, allocations: 245.5 kB / 0.5924 GB, free: 6.652 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005834/0.8554, allocations: 26.25 kB / 0.5924 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.8565, allocations: 23.98 kB / 0.5924 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.8566, allocations: 61.36 kB / 0.5925 GB, free: 6.551 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.8568, allocations: 31.98 kB / 0.5925 GB, free: 6.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003663/0.8604, allocations: 1.283 MB / 0.5938 GB, free: 5.246 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8604, allocations: 3.938 kB / 0.5938 GB, free: 5.242 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004873/0.8653, allocations: 0.7104 MB / 0.5945 GB, free: 4.531 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.0005587/0.8659, allocations: 147.4 kB / 0.5946 GB, free: 4.387 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004888/0.8708, allocations: 2.036 MB / 0.5966 GB, free: 2.547 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.926e-06/0.8708, allocations: 0 / 0.5966 GB, free: 2.547 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009097/0.8717, allocations: 458.1 kB / 0.597 GB, free: 2.121 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/0.8743, allocations: 250.3 kB / 0.5973 GB, free: 1.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/0.8925, allocations: 6.867 MB / 0.604 GB, free: 10.92 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004797/0.8973, allocations: 2.32 MB / 0.6062 GB, free: 8.566 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/0.898, allocations: 147.4 kB / 0.6064 GB, free: 8.422 MB / 462.1 MB Notification: Performance of SimCode: time 3.026e-06/0.8981, allocations: 0 / 0.6064 GB, free: 8.422 MB / 462.1 MB Notification: Performance of Templates: time 0.07116/0.9692, allocations: 30.52 MB / 0.6362 GB, free: 9.988 MB / 494.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches