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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000788/0.000788, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00077/0.00077, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8809/0.8809, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2435/0.2435, allocations: 32.79 MB / 293.5 MB, free: 1.234 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.882e-05/2.075e-05, allocations: 2.844 kB / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.1718/0.1719, allocations: 8.42 MB / 448 MB, free: 42.17 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.1749, allocations: 2.783 MB / 450.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000476/0.1754, allocations: 60.12 kB / 450.8 MB, free: 40.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001612/0.177, allocations: 2.032 MB / 452.9 MB, free: 39.86 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.1781, allocations: 1.175 MB / 454 MB, free: 39.34 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.1784, allocations: 320 kB / 454.4 MB, free: 39.2 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.1796, allocations: 2.356 MB / 456.7 MB, free: 38.32 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009327/0.1805, allocations: 1.747 MB / 458.5 MB, free: 37.52 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006462/0.1812, allocations: 1.28 MB / 459.7 MB, free: 36.96 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006247/0.1818, allocations: 1.143 MB / 460.9 MB, free: 36.63 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.1819, allocations: 194.6 kB / 461.1 MB, free: 36.63 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004837/0.1824, allocations: 0.6425 MB / 461.7 MB, free: 36.51 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004014/0.1828, allocations: 1.175 MB / 462.9 MB, free: 36 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000333/0.1831, allocations: 0.7191 MB / 463.6 MB, free: 35.64 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001771/0.1849, allocations: 4.291 MB / 467.9 MB, free: 34.15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1849, allocations: 0 / 467.9 MB, free: 34.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1849, allocations: 3.125 kB / 467.9 MB, free: 34.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.1849, allocations: 0 / 467.9 MB, free: 34.15 MB / 410.7 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.002162/0.1871, allocations: 2.828 MB / 470.7 MB, free: 32.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1871, allocations: 8.688 kB / 470.7 MB, free: 32.42 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002802/0.1874, allocations: 488.9 kB / 471.2 MB, free: 32.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002275/0.1897, allocations: 1.588 MB / 472.8 MB, free: 31.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.1908, allocations: 1.279 MB / 474.1 MB, free: 31.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.1909, allocations: 144.5 kB / 474.2 MB, free: 31.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.1911, allocations: 188.3 kB / 474.4 MB, free: 31.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004509/0.1956, allocations: 6.262 MB / 480.7 MB, free: 28.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.303e-05/0.1956, allocations: 13.56 kB / 480.7 MB, free: 28.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.1958, allocations: 94.62 kB / 480.8 MB, free: 28.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001294/0.1971, allocations: 1.341 MB / 482.1 MB, free: 28.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0061/0.2032, allocations: 5.336 MB / 487.4 MB, free: 26.47 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.2171, allocations: 19.13 MB / 0.4947 GB, free: 13.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.2194, allocations: 1.57 MB / 0.4962 GB, free: 13.53 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005474/0.2199, allocations: 0.6372 MB / 0.4969 GB, free: 13.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003186/0.2231, allocations: 3.119 MB / 0.4999 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.444e-05/0.2231, allocations: 40.44 kB / 0.4999 GB, free: 11.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 2.414e-06/0.2231, allocations: 0 / 0.4999 GB, free: 11.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.002619/0.2258, allocations: 2.119 MB / 0.502 GB, free: 9.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.2258, allocations: 59.91 kB / 0.5021 GB, free: 9.359 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.227, allocations: 2.052 MB / 0.5041 GB, free: 7.305 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.2271, allocations: 37.69 kB / 0.5041 GB, free: 7.262 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004285/0.2275, allocations: 1.899 MB / 0.506 GB, free: 5.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.2276, allocations: 321.6 kB / 0.5063 GB, free: 5.023 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003671/0.228, allocations: 0.6039 MB / 0.5069 GB, free: 4.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.289e-05/0.228, allocations: 361.9 kB / 0.5072 GB, free: 4.051 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006556/0.2287, allocations: 0.8842 MB / 0.5081 GB, free: 3.164 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.2298, allocations: 2.751 MB / 0.5108 GB, free: 15.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002788/0.2326, allocations: 3.975 MB / 0.5146 GB, free: 10.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.942e-05/0.2326, allocations: 20 kB / 0.5147 GB, free: 10.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.003106/0.2357, allocations: 3.526 MB / 0.5181 GB, free: 7.027 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.2358, allocations: 40.03 kB / 0.5181 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.903e-05/0.2358, allocations: 67.94 kB / 0.5182 GB, free: 6.922 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.519e-05/0.2359, allocations: 88 kB / 0.5183 GB, free: 6.836 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009924/0.2369, allocations: 0.655 MB / 0.5189 GB, free: 6.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.048e-05/0.2369, allocations: 131.5 kB / 0.519 GB, free: 6.051 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009165/0.2378, allocations: 432.7 kB / 0.5195 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.238, allocations: 187.1 kB / 0.5196 GB, free: 5.445 MB / 426.7 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.001218/0.2392, allocations: 1.347 MB / 0.521 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.2393, allocations: 169.1 kB / 0.5211 GB, free: 3.926 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.2395, allocations: 188.9 kB / 0.5213 GB, free: 3.734 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.2395, allocations: 12 kB / 0.5213 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.2395, allocations: 3.984 kB / 0.5213 GB, free: 3.719 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2395, allocations: 3.984 kB / 0.5213 GB, free: 3.715 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003525/0.243, allocations: 3.936 MB / 0.5252 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.243, allocations: 4 kB / 0.5252 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.2432, allocations: 107.8 kB / 0.5253 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.2432, allocations: 8 kB / 0.5253 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.2433, allocations: 23.94 kB / 0.5253 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.2433, allocations: 11.94 kB / 0.5253 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.2433, allocations: 11.94 kB / 0.5253 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008742/0.2441, allocations: 1.248 MB / 0.5265 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.2443, allocations: 182.6 kB / 0.5267 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.776e-05/0.2444, allocations: 27.84 kB / 0.5267 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.2447, allocations: 23.98 kB / 0.5268 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.249e-05/0.2447, allocations: 59.73 kB / 0.5268 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.077e-05/0.2448, allocations: 31.94 kB / 0.5268 GB, free: 13.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009897/0.2458, allocations: 1.275 MB / 0.5281 GB, free: 12.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2458, allocations: 0 / 0.5281 GB, free: 12.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001372/0.2471, allocations: 0.6813 MB / 0.5288 GB, free: 11.84 MB / 442.7 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.00125/0.2484, allocations: 1.878 MB / 0.5306 GB, free: 9.855 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.25, allocations: 1.953 MB / 0.5325 GB, free: 7.918 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.25, allocations: 0 / 0.5325 GB, free: 7.918 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004763/0.2505, allocations: 440.4 kB / 0.5329 GB, free: 7.488 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.2512, allocations: 241.6 kB / 0.5332 GB, free: 7.273 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/0.2676, allocations: 20.83 MB / 0.5535 GB, free: 15.89 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.269, allocations: 1.701 MB / 0.5552 GB, free: 14.16 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001496/0.2705, allocations: 0.9612 MB / 0.5561 GB, free: 13.19 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007878/0.2713, allocations: 1.043 MB / 0.5571 GB, free: 12.15 MB / 474.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2713, allocations: 4 kB / 0.5571 GB, free: 12.14 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.3088, allocations: 32.98 MB / 0.5893 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.423/7.731, allocations: 4.562 kB / 0.5893 GB, free: 11.57 MB / 0.4948 GB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.79889382980764]