Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009102/0.0009103, allocations: 174.8 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007604/0.0007604, allocations: 85.42 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3064/0.3064, allocations: 43.57 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003472, allocations: 16 kB / 432.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09527/0.09563, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.2333/0.3289, allocations: 92.56 MB / 0.5698 GB, free: 440 kB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03928/0.3683, allocations: 18.42 MB / 0.5878 GB, free: 3.883 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01893/0.3872, allocations: 448.4 kB / 0.5882 GB, free: 3.816 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01713/0.4044, allocations: 4.917 MB / 0.593 GB, free: 1.578 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04026/0.4447, allocations: 14.46 MB / 0.6071 GB, free: 3.184 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006928/0.4517, allocations: 1.323 MB / 0.6084 GB, free: 1.863 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01256/0.4642, allocations: 9.802 MB / 0.618 GB, free: 8.047 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01535/0.4796, allocations: 10.31 MB / 0.6281 GB, free: 13.64 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005241/0.4849, allocations: 2.666 MB / 0.6307 GB, free: 10.97 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006192/0.4911, allocations: 3.98 MB / 0.6346 GB, free: 6.977 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001954/0.4931, allocations: 296 kB / 0.6348 GB, free: 6.688 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004138/0.4973, allocations: 1.174 MB / 0.636 GB, free: 5.512 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005094/0.5024, allocations: 3.483 MB / 0.6394 GB, free: 2.02 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006342/0.5088, allocations: 3.737 MB / 0.643 GB, free: 14.25 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.5197, allocations: 10.47 MB / 0.6533 GB, free: 3.758 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5198, allocations: 3.984 kB / 0.6533 GB, free: 3.754 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5198, allocations: 0 / 0.6533 GB, free: 3.754 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003938/0.5202, allocations: 4 kB / 0.6533 GB, free: 3.75 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2935 * Number of variables: 2935 Notification: Performance of Generate backend data structure: time 0.01812/0.5383, allocations: 7.859 MB / 0.6609 GB, free: 11.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.5384, allocations: 8.031 kB / 0.6609 GB, free: 11.79 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004326/0.5427, allocations: 1.38 MB / 0.6623 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.5549, allocations: 2.817 MB / 0.665 GB, free: 7.562 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/0.5659, allocations: 6.637 MB / 0.6715 GB, free: 0.8438 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003676/0.5663, allocations: 487.9 kB / 0.672 GB, free: 372 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.3202/0.8866, allocations: 0.6034 MB / 0.6726 GB, free: 136.9 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03041/0.917, allocations: 19.49 MB / 0.6916 GB, free: 130.4 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001752/0.9172, allocations: 77.88 kB / 0.6917 GB, free: 130.4 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007721/0.918, allocations: 300.8 kB / 0.692 GB, free: 130.3 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004346/0.9224, allocations: 3.641 MB / 0.6955 GB, free: 129.6 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02654/0.9489, allocations: 15.12 MB / 0.7103 GB, free: 124.9 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07003/1.019, allocations: 73.04 MB / 0.7816 GB, free: 60.56 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01402/1.033, allocations: 6.102 MB / 0.7876 GB, free: 54.31 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003043/1.036, allocations: 2.535 MB / 0.7901 GB, free: 51.77 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/1.051, allocations: 11.17 MB / 0.801 GB, free: 40.21 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/1.051, allocations: 60.55 kB / 0.801 GB, free: 40.14 MB / 490.8 MB Notification: Performance of pre-optimization done (n=250): time 5.19e-06/1.051, allocations: 2.719 kB / 0.801 GB, free: 40.14 MB / 490.8 MB Notification: Performance of matching and sorting (n=274): time 0.03402/1.085, allocations: 16.53 MB / 0.8172 GB, free: 23.64 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/1.085, allocations: 154.5 kB / 0.8173 GB, free: 23.46 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007152/1.093, allocations: 6.786 MB / 0.8239 GB, free: 16.7 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003614/1.093, allocations: 72.45 kB / 0.824 GB, free: 16.62 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002418/1.095, allocations: 5.744 MB / 0.8296 GB, free: 10.88 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007775/1.096, allocations: 1.056 MB / 0.8307 GB, free: 9.828 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003139/1.097, allocations: 188 kB / 0.8308 GB, free: 9.645 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003169/1.097, allocations: 0.707 MB / 0.8315 GB, free: 8.93 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003527/1.1, allocations: 2.7 MB / 0.8342 GB, free: 6.223 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006307/1.107, allocations: 8.583 MB / 0.8425 GB, free: 10.71 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/1.12, allocations: 12.34 MB / 0.8546 GB, free: 11.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000141/1.12, allocations: 56 kB / 0.8546 GB, free: 11.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1243) (initialization): time 0.02081/1.141, allocations: 10.96 MB / 0.8654 GB, free: 448 kB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001394/1.141, allocations: 98.59 kB / 0.8654 GB, free: 352 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000251/1.141, allocations: 208.8 kB / 0.8656 GB, free: 144 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1833/1.324, allocations: 274 kB / 0.8659 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007395/1.332, allocations: 2.18 MB / 0.868 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004052/1.332, allocations: 411.4 kB / 0.8684 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006538/1.339, allocations: 462 kB / 0.8689 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002032/1.341, allocations: 0.5728 MB / 0.8694 GB, free: 144.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 951 * Number of states: 0 () * Number of discrete variables: 60 (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 (1179): * Single equations (assignments): 1168 * 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.008698/1.35, allocations: 3.756 MB / 0.8731 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001166/1.351, allocations: 0.5938 MB / 0.8737 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00576/1.357, allocations: 2.98 MB / 0.8766 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.995e-05/1.357, allocations: 33.75 kB / 0.8766 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/1.357, allocations: 1.75 kB / 0.8766 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.861e-05/1.357, allocations: 18.5 kB / 0.8766 GB, free: 144.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03326/1.39, allocations: 25.12 MB / 0.9012 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001563/1.39, allocations: 63.34 kB / 0.9012 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002192/1.392, allocations: 0.6126 MB / 0.9018 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.682e-05/1.393, allocations: 83.7 kB / 0.9019 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000309/1.393, allocations: 138.3 kB / 0.902 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001085/1.393, allocations: 124 kB / 0.9022 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.53e-05/1.393, allocations: 99.66 kB / 0.9023 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00649/1.4, allocations: 5.873 MB / 0.908 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002187/1.402, allocations: 0.7214 MB / 0.9087 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000795/1.403, allocations: 146.6 kB / 0.9088 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002346/1.405, allocations: 153 kB / 0.909 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004971/1.405, allocations: 431.7 kB / 0.9094 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002622/1.406, allocations: 177.5 kB / 0.9096 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006376/1.412, allocations: 4.223 MB / 0.9137 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.31e-07/1.412, allocations: 0 / 0.9137 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007864/1.42, allocations: 1.551 MB / 0.9152 GB, free: 128.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * 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 (326): * Single equations (assignments): 323 * 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.005833/1.426, allocations: 6.64 MB / 0.9217 GB, free: 123 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009702/1.436, allocations: 6.341 MB / 0.9279 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.435e-05/1.436, allocations: 7.406 kB / 0.9279 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002512/1.438, allocations: 1.644 MB / 0.9295 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06158/1.5, allocations: 0.976 MB / 0.9304 GB, free: 120 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0871/1.587, allocations: 65.08 MB / 0.994 GB, free: 53.37 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007499/1.594, allocations: 5.8 MB / 0.9997 GB, free: 47.54 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004076/1.599, allocations: 3.885 MB / 1.003 GB, free: 43.65 MB / 0.5105 GB Notification: Performance of SimCode: time 1.052e-06/1.599, allocations: 0 / 1.003 GB, free: 43.65 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.82/12.42, allocations: 130.2 MB / 1.131 GB, free: 118.3 MB / 0.5262 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches