Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001028, allocations: 198.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 243.4 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008176/0.0008176, allocations: 98.45 kB / 295.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3158/0.3158, allocations: 44.83 MB / 392.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002845, allocations: 11.98 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3027, allocations: 62.95 MB / 0.5159 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.1056/0.4083, allocations: 90.25 MB / 0.604 GB, free: 14.8 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04353/0.4519, allocations: 18.12 MB / 0.6217 GB, free: 12.85 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0217/0.4737, allocations: 438.9 kB / 0.6221 GB, free: 12.42 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01663/0.4903, allocations: 4.864 MB / 0.6269 GB, free: 7.535 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03793/0.5283, allocations: 14.18 MB / 0.6407 GB, free: 9.301 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006688/0.535, allocations: 1.318 MB / 0.642 GB, free: 7.98 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.01225/0.5473, allocations: 9.246 MB / 0.651 GB, free: 14.72 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01434/0.5617, allocations: 10.03 MB / 0.6608 GB, free: 4.566 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005989/0.5677, allocations: 2.441 MB / 0.6632 GB, free: 2.117 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005967/0.5737, allocations: 3.525 MB / 0.6666 GB, free: 14.58 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001719/0.5755, allocations: 256 kB / 0.6669 GB, free: 14.33 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003521/0.579, allocations: 1.135 MB / 0.668 GB, free: 13.2 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004781/0.5838, allocations: 3.148 MB / 0.6711 GB, free: 10.04 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005178/0.5891, allocations: 3.306 MB / 0.6743 GB, free: 6.707 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3156/0.9047, allocations: 9.256 MB / 0.6833 GB, free: 22.56 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.9048, allocations: 0 / 0.6833 GB, free: 22.56 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.9048, allocations: 1.719 kB / 0.6833 GB, free: 22.56 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005275/0.9053, allocations: 0 / 0.6833 GB, free: 22.56 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.01713/0.9225, allocations: 7.187 MB / 0.6904 GB, free: 19.53 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.9225, allocations: 10.88 kB / 0.6904 GB, free: 19.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01163/0.9342, allocations: 2.639 MB / 0.6929 GB, free: 19.02 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.9443, allocations: 4.493 MB / 0.6973 GB, free: 18.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004065/0.9448, allocations: 434.6 kB / 0.6978 GB, free: 18.08 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002613/0.9474, allocations: 0.5642 MB / 0.6983 GB, free: 18.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03989/0.9873, allocations: 17.44 MB / 0.7153 GB, free: 14.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000269/0.9876, allocations: 66.14 kB / 0.7154 GB, free: 14.91 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002076/0.9897, allocations: 273.1 kB / 0.7157 GB, free: 14.91 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004596/0.9943, allocations: 3.171 MB / 0.7188 GB, free: 14.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02883/1.023, allocations: 13.38 MB / 0.7318 GB, free: 14.81 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08537/1.109, allocations: 66.01 MB / 0.7963 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/1.123, allocations: 5.369 MB / 0.8015 GB, free: 6.582 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003181/1.127, allocations: 2.108 MB / 0.8036 GB, free: 5.195 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01891/1.146, allocations: 10.01 MB / 0.8134 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.883e-05/1.146, allocations: 54.22 kB / 0.8134 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=182): time 7.684e-06/1.146, allocations: 4 kB / 0.8134 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=206): time 0.04117/1.187, allocations: 14.22 MB / 0.8273 GB, free: 15.74 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.746e-05/1.187, allocations: 149.4 kB / 0.8274 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01168/1.199, allocations: 6.346 MB / 0.8336 GB, free: 10.79 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003743/1.199, allocations: 60.81 kB / 0.8337 GB, free: 10.75 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003855/1.203, allocations: 5.232 MB / 0.8388 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001009/1.204, allocations: 0.8239 MB / 0.8396 GB, free: 5.957 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007116/1.205, allocations: 170.7 kB / 0.8398 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000766/1.206, allocations: 0.6676 MB / 0.8404 GB, free: 5.383 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/1.21, allocations: 2.314 MB / 0.8427 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00783/1.218, allocations: 7.732 MB / 0.8502 GB, free: 10.35 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/1.231, allocations: 10.95 MB / 0.8609 GB, free: 15.39 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000265/1.231, allocations: 56 kB / 0.861 GB, free: 15.34 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.01938/1.251, allocations: 9.671 MB / 0.8704 GB, free: 6.871 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004109/1.251, allocations: 91.84 kB / 0.8705 GB, free: 6.785 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004943/1.252, allocations: 192 kB / 0.8707 GB, free: 6.598 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000407/1.252, allocations: 256 kB / 0.8709 GB, free: 6.348 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006928/1.259, allocations: 1.948 MB / 0.8729 GB, free: 4.574 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007191/1.26, allocations: 380.4 kB / 0.8732 GB, free: 4.285 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006818/1.267, allocations: 413.3 kB / 0.8736 GB, free: 3.883 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001639/1.268, allocations: 0.5233 MB / 0.8741 GB, free: 3.363 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1055): * Single equations (assignments): 1044 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007033/1.275, allocations: 3.406 MB / 0.8774 GB, free: 124 kB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001264/1.277, allocations: 0.5282 MB / 0.878 GB, free: 15.58 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/1.279, allocations: 0.6326 MB / 0.8786 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.953e-05/1.279, allocations: 20 kB / 0.8786 GB, free: 14.93 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/1.279, allocations: 4 kB / 0.8786 GB, free: 14.93 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-05/1.279, allocations: 11.97 kB / 0.8786 GB, free: 14.91 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02871/1.307, allocations: 15.25 MB / 0.8935 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001776/1.308, allocations: 48.22 kB / 0.8936 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/1.309, allocations: 454.3 kB / 0.894 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.246e-05/1.309, allocations: 63.94 kB / 0.894 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003578/1.31, allocations: 96 kB / 0.8941 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-05/1.31, allocations: 90.61 kB / 0.8942 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.236e-05/1.31, allocations: 75.78 kB / 0.8943 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006118/1.316, allocations: 4.286 MB / 0.8985 GB, free: 9.621 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001981/1.318, allocations: 0.6422 MB / 0.8991 GB, free: 8.953 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001498/1.32, allocations: 109.7 kB / 0.8992 GB, free: 8.848 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/1.322, allocations: 115.9 kB / 0.8993 GB, free: 8.734 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000438/1.323, allocations: 314.6 kB / 0.8996 GB, free: 8.469 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002501/1.323, allocations: 128 kB / 0.8997 GB, free: 8.344 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.008408/1.332, allocations: 3.945 MB / 0.9036 GB, free: 4.41 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.41e-07/1.332, allocations: 0 / 0.9036 GB, free: 4.41 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.008473/1.34, allocations: 1.375 MB / 0.9049 GB, free: 3.035 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * 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 (238): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008958/1.341, allocations: 273.7 kB / 0.9052 GB, free: 2.805 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.2502/1.591, allocations: 5.358 MB / 0.9104 GB, free: 258.7 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.456e-05/1.591, allocations: 7.281 kB / 0.9104 GB, free: 258.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001785/1.593, allocations: 1.194 MB / 0.9116 GB, free: 258.6 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04275/1.636, allocations: 0.8861 MB / 0.9125 GB, free: 258.6 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03768/1.674, allocations: 19.22 MB / 0.9312 GB, free: 248.1 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01004/1.684, allocations: 5.242 MB / 0.9364 GB, free: 246.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001836/1.686, allocations: 428.3 kB / 0.9368 GB, free: 246.4 MB / 0.6198 GB Notification: Performance of SimCode: time 2.334e-06/1.686, allocations: 2.312 kB / 0.9368 GB, free: 246.4 MB / 0.6198 GB Notification: Performance of Templates: time 0.1373/1.823, allocations: 85.48 MB / 1.02 GB, free: 175.3 MB / 0.6198 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches