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: 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_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009835/0.0009835, allocations: 94.61 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 204.1 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.7 MB / 247.5 MB, free: 11.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1983/0.1983, allocations: 46.18 MB / 345.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 11.98 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 63.56 MB / 483.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.02894/0.1428, allocations: 29.39 MB / 0.5011 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.1569, allocations: 6.273 MB / 0.5072 GB, free: 368 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00512/0.1621, allocations: 119.8 kB / 0.5073 GB, free: 248 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2246/0.3868, allocations: 292.2 kB / 0.5076 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.39, allocations: 1.039 MB / 0.5086 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00082/0.3909, allocations: 271 kB / 0.5089 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004786/0.3957, allocations: 3.361 MB / 0.5122 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005226/0.4009, allocations: 3.343 MB / 0.5154 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.4024, allocations: 0.6262 MB / 0.516 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/0.4043, allocations: 1.031 MB / 0.5171 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004975/0.4048, allocations: 83.09 kB / 0.5171 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/0.4064, allocations: 0.6357 MB / 0.5178 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001423/0.4078, allocations: 0.9857 MB / 0.5187 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001754/0.4096, allocations: 1.178 MB / 0.5199 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00372/0.4133, allocations: 3.331 MB / 0.5231 GB, free: 8.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4134, allocations: 0 / 0.5231 GB, free: 8.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4134, allocations: 0 / 0.5231 GB, free: 8.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001171/0.4135, allocations: 1.125 kB / 0.5231 GB, free: 8.762 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.004459/0.418, allocations: 2.338 MB / 0.5254 GB, free: 7.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.418, allocations: 9.406 kB / 0.5254 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005194/0.4232, allocations: 1.605 MB / 0.527 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/0.426, allocations: 1.323 MB / 0.5283 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.4262, allocations: 141.4 kB / 0.5284 GB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008068/0.427, allocations: 189.4 kB / 0.5286 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.4412, allocations: 6.247 MB / 0.5347 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.087e-05/0.4413, allocations: 13.66 kB / 0.5347 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004102/0.4417, allocations: 86.78 kB / 0.5348 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001898/0.4436, allocations: 1.339 MB / 0.5361 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00936/0.453, allocations: 5.341 MB / 0.5413 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02998/0.483, allocations: 20.18 MB / 0.561 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004179/0.4873, allocations: 2.002 MB / 0.563 GB, free: 8.902 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009944/0.4883, allocations: 0.7018 MB / 0.5637 GB, free: 8.199 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006404/0.4947, allocations: 3.608 MB / 0.5672 GB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.4948, allocations: 41.72 kB / 0.5672 GB, free: 4.422 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.376e-06/0.4948, allocations: 0 / 0.5672 GB, free: 4.422 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005426/0.5002, allocations: 1.974 MB / 0.5691 GB, free: 2.438 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.5003, allocations: 63.78 kB / 0.5692 GB, free: 2.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.5037, allocations: 1.945 MB / 0.5711 GB, free: 424 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.476e-05/0.5038, allocations: 32.91 kB / 0.5711 GB, free: 388 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.5052, allocations: 1.832 MB / 0.5729 GB, free: 14.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/0.5055, allocations: 324.8 kB / 0.5732 GB, free: 14.22 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004024/0.506, allocations: 279.5 kB / 0.5735 GB, free: 13.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.5061, allocations: 353.9 kB / 0.5738 GB, free: 13.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/0.5075, allocations: 0.8842 MB / 0.5747 GB, free: 12.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00259/0.5101, allocations: 2.753 MB / 0.5774 GB, free: 9.055 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00421/0.5144, allocations: 3.963 MB / 0.5813 GB, free: 4.438 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.025e-05/0.5144, allocations: 20 kB / 0.5813 GB, free: 4.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006131/0.5206, allocations: 3.522 MB / 0.5847 GB, free: 1.285 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.848e-05/0.5207, allocations: 32 kB / 0.5847 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001253/0.5208, allocations: 72.12 kB / 0.5848 GB, free: 1.184 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-05/0.5209, allocations: 84 kB / 0.5849 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.5229, allocations: 0.6515 MB / 0.5855 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001126/0.5231, allocations: 135.6 kB / 0.5857 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/0.5253, allocations: 423.5 kB / 0.5861 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003503/0.5257, allocations: 187 kB / 0.5862 GB, free: 15.78 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.002409/0.5281, allocations: 1.339 MB / 0.5876 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002747/0.5283, allocations: 157.9 kB / 0.5877 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004626/0.5288, allocations: 192.9 kB / 0.5879 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.129e-05/0.5288, allocations: 8 kB / 0.5879 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.5289, allocations: 3.938 kB / 0.5879 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.5289, allocations: 3.984 kB / 0.5879 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007246/0.5361, allocations: 4.03 MB / 0.5918 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.5362, allocations: 11.94 kB / 0.5918 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004055/0.5366, allocations: 103.8 kB / 0.5919 GB, free: 9.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/0.5366, allocations: 11.94 kB / 0.592 GB, free: 9.777 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.331e-05/0.5367, allocations: 16 kB / 0.592 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.528e-05/0.5367, allocations: 20.48 kB / 0.592 GB, free: 9.742 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.5367, allocations: 11.94 kB / 0.592 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.5382, allocations: 1.255 MB / 0.5932 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004588/0.5386, allocations: 270.6 kB / 0.5935 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002618/0.5389, allocations: 16 kB / 0.5935 GB, free: 8.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005427/0.5395, allocations: 27.89 kB / 0.5935 GB, free: 8.047 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.5396, allocations: 65.78 kB / 0.5936 GB, free: 7.984 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.642e-05/0.5396, allocations: 28 kB / 0.5936 GB, free: 7.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001998/0.5416, allocations: 1.267 MB / 0.5949 GB, free: 6.699 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5416, allocations: 0 / 0.5949 GB, free: 6.699 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002714/0.5444, allocations: 0.6802 MB / 0.5955 GB, free: 6.02 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.0004527/0.5448, allocations: 143 kB / 0.5957 GB, free: 5.871 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003275/0.5481, allocations: 2.027 MB / 0.5976 GB, free: 3.855 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.5481, allocations: 0 / 0.5976 GB, free: 3.855 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005836/0.5487, allocations: 462.6 kB / 0.5981 GB, free: 3.406 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002674/0.5514, allocations: 223 kB / 0.5983 GB, free: 3.191 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.5621, allocations: 6.727 MB / 0.6049 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002872/0.565, allocations: 2.279 MB / 0.6071 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004611/0.5655, allocations: 139.4 kB / 0.6072 GB, free: 9.883 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5655, allocations: 4 kB / 0.6072 GB, free: 9.879 MB / 462.1 MB Notification: Performance of Templates: time 0.04671/0.6122, allocations: 29.36 MB / 0.6359 GB, free: 12.58 MB / 494.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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