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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001163, allocations: 200.7 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000773/0.0007729, allocations: 100.5 kB / 295.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3505/0.3505, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002535, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2723, allocations: 62.97 MB / 0.516 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.06595/0.3383, allocations: 90.25 MB / 0.6041 GB, free: 14.69 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.03853/0.3769, allocations: 18.12 MB / 0.6218 GB, free: 12.78 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01548/0.3924, allocations: 438.9 kB / 0.6222 GB, free: 12.35 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01377/0.4062, allocations: 4.864 MB / 0.627 GB, free: 7.465 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03421/0.4404, allocations: 14.17 MB / 0.6408 GB, free: 9.234 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006011/0.4465, allocations: 1.307 MB / 0.6421 GB, free: 7.926 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.01106/0.4575, allocations: 9.246 MB / 0.6511 GB, free: 14.66 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01336/0.4709, allocations: 10.05 MB / 0.6609 GB, free: 4.496 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004774/0.4757, allocations: 2.445 MB / 0.6633 GB, free: 2.043 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005167/0.4809, allocations: 3.517 MB / 0.6667 GB, free: 14.52 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001593/0.4826, allocations: 260 kB / 0.667 GB, free: 14.26 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003496/0.4861, allocations: 1.131 MB / 0.6681 GB, free: 13.13 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004614/0.4907, allocations: 3.148 MB / 0.6712 GB, free: 9.973 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006036/0.4968, allocations: 3.322 MB / 0.6744 GB, free: 6.625 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2711/0.7679, allocations: 9.281 MB / 0.6835 GB, free: 22.49 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.768, allocations: 0.5938 kB / 0.6835 GB, free: 22.49 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.927e-06/0.768, allocations: 0.5625 kB / 0.6835 GB, free: 22.49 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004841/0.7685, allocations: 3 kB / 0.6835 GB, free: 22.49 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.01611/0.7846, allocations: 7.216 MB / 0.6905 GB, free: 19.45 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.7846, allocations: 13.22 kB / 0.6905 GB, free: 19.45 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003871/0.7885, allocations: 1.217 MB / 0.6917 GB, free: 19.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/0.7998, allocations: 2.686 MB / 0.6943 GB, free: 18.83 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.8119, allocations: 5.375 MB / 0.6996 GB, free: 17.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005348/0.8124, allocations: 437.5 kB / 0.7 GB, free: 17.88 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00246/0.8149, allocations: 0.5576 MB / 0.7006 GB, free: 17.87 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03072/0.8456, allocations: 17.43 MB / 0.7176 GB, free: 14.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001673/0.8459, allocations: 78.73 kB / 0.7177 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007347/0.8466, allocations: 264.1 kB / 0.7179 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004084/0.8507, allocations: 3.176 MB / 0.721 GB, free: 14.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02586/0.8766, allocations: 13.39 MB / 0.7341 GB, free: 14.58 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0802/0.9568, allocations: 66.01 MB / 0.7985 GB, free: 9.578 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01443/0.9713, allocations: 5.367 MB / 0.8038 GB, free: 5.047 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/0.9744, allocations: 2.116 MB / 0.8059 GB, free: 3.66 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01673/0.9911, allocations: 9.994 MB / 0.8156 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.309e-05/0.9912, allocations: 55.91 kB / 0.8157 GB, free: 11.06 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=182): time 6.092e-06/0.9913, allocations: 0 / 0.8157 GB, free: 11.06 MB / 0.5417 GB Notification: Performance of matching and sorting (n=206): time 0.04105/1.032, allocations: 14.24 MB / 0.8296 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.067e-05/1.032, allocations: 145.8 kB / 0.8297 GB, free: 14.02 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01054/1.043, allocations: 6.376 MB / 0.8359 GB, free: 9.23 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003679/1.043, allocations: 60.73 kB / 0.836 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003941/1.047, allocations: 5.245 MB / 0.8411 GB, free: 5.07 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001004/1.048, allocations: 0.8248 MB / 0.8419 GB, free: 4.391 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006383/1.049, allocations: 159.9 kB / 0.8421 GB, free: 4.359 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0006896/1.05, allocations: 0.665 MB / 0.8427 GB, free: 3.82 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004001/1.054, allocations: 2.274 MB / 0.8449 GB, free: 2.199 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007249/1.061, allocations: 7.699 MB / 0.8525 GB, free: 8.844 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/1.073, allocations: 10.9 MB / 0.8631 GB, free: 13.37 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002209/1.073, allocations: 56 kB / 0.8632 GB, free: 13.31 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.01708/1.09, allocations: 9.592 MB / 0.8725 GB, free: 4.863 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002579/1.09, allocations: 88 kB / 0.8726 GB, free: 4.777 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003349/1.091, allocations: 192 kB / 0.8728 GB, free: 4.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/1.091, allocations: 252 kB / 0.873 GB, free: 4.344 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006345/1.097, allocations: 1.921 MB / 0.8749 GB, free: 2.598 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003613/1.098, allocations: 382.1 kB / 0.8753 GB, free: 2.305 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005698/1.103, allocations: 413.9 kB / 0.8757 GB, free: 1.902 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.104, allocations: 0.5182 MB / 0.8762 GB, free: 1.387 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 (1039): * Single equations (assignments): 1028 * 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.006116/1.111, allocations: 3.404 MB / 0.8795 GB, free: 14.15 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/1.112, allocations: 0.5321 MB / 0.88 GB, free: 13.61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/1.113, allocations: 0.6329 MB / 0.8806 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/1.113, allocations: 20 kB / 0.8807 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.905e-05/1.113, allocations: 4 kB / 0.8807 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-05/1.114, allocations: 11.97 kB / 0.8807 GB, free: 12.94 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02443/1.138, allocations: 15.26 MB / 0.8956 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001309/1.138, allocations: 44 kB / 0.8956 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/1.14, allocations: 455.5 kB / 0.896 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.409e-05/1.14, allocations: 63.94 kB / 0.8961 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002111/1.14, allocations: 104 kB / 0.8962 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.159e-05/1.14, allocations: 90.14 kB / 0.8963 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.495e-05/1.14, allocations: 77.55 kB / 0.8964 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004803/1.145, allocations: 4.289 MB / 0.9006 GB, free: 7.625 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/1.146, allocations: 0.6382 MB / 0.9012 GB, free: 6.961 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/1.147, allocations: 112 kB / 0.9013 GB, free: 6.852 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/1.15, allocations: 115.9 kB / 0.9014 GB, free: 6.738 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/1.15, allocations: 315.5 kB / 0.9017 GB, free: 6.469 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001812/1.15, allocations: 123.8 kB / 0.9018 GB, free: 6.352 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.006753/1.157, allocations: 3.965 MB / 0.9057 GB, free: 2.398 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.91e-07/1.157, allocations: 0 / 0.9057 GB, free: 2.398 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.006909/1.164, allocations: 1.355 MB / 0.907 GB, free: 1.043 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.2293/1.393, allocations: 5.026 MB / 0.9119 GB, free: 249.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007927/1.401, allocations: 5.312 MB / 0.9171 GB, free: 248.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.523e-05/1.401, allocations: 9.188 kB / 0.9171 GB, free: 248.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001544/1.403, allocations: 1.186 MB / 0.9183 GB, free: 247.8 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04233/1.445, allocations: 0.8852 MB / 0.9191 GB, free: 247.5 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08666/1.532, allocations: 56.74 MB / 0.9745 GB, free: 207.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006295/1.538, allocations: 5.25 MB / 0.9797 GB, free: 205.5 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003833/1.542, allocations: 3.483 MB / 0.9831 GB, free: 202.7 MB / 0.6198 GB Notification: Performance of SimCode: time 2.404e-06/1.542, allocations: 0 / 0.9831 GB, free: 202.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.851/11.39, allocations: 116 MB / 1.096 GB, free: 88.17 MB / 0.6198 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins1/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