Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.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.001506/0.001506, allocations: 103.2 kB / 16.45 MB, free: 6.5 MB / 14.72 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.001649/0.001649, allocations: 210.4 kB / 19.42 MB, free: 3.66 MB / 14.72 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 1.537/1.537, allocations: 230.6 MB / 252.8 MB, free: 8.945 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo): time 0.04281/0.04281, allocations: 8.537 MB / 317.4 MB, free: 11.76 MB / 254.1 MB " [Timeout remaining time 180] Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/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(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: EHPTlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 71.91 kB / 441.7 MB, free: 3.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.124, allocations: 55.39 MB / 497.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003596/0.1276, allocations: 1.903 MB / 499 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.1303, allocations: 1.658 MB / 0.4889 GB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.1304, allocations: 3.938 kB / 0.489 GB, free: 8.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000313/0.1308, allocations: 115.5 kB / 0.4891 GB, free: 8.223 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004377/0.1312, allocations: 163.3 kB / 0.4892 GB, free: 8.062 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004907/0.1317, allocations: 175 kB / 0.4894 GB, free: 7.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003918/0.1321, allocations: 287.3 kB / 0.4897 GB, free: 7.613 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.1322, allocations: 28.39 kB / 0.4897 GB, free: 7.582 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.1325, allocations: 123.5 kB / 0.4898 GB, free: 7.461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.1327, allocations: 143.5 kB / 0.4899 GB, free: 7.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.1327, allocations: 20 kB / 0.49 GB, free: 7.301 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.133, allocations: 127.9 kB / 0.4901 GB, free: 7.176 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.241e-05/0.1331, allocations: 51.83 kB / 0.4901 GB, free: 7.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1332, allocations: 111.3 kB / 0.4902 GB, free: 7.016 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005164/0.1337, allocations: 334.7 kB / 0.4906 GB, free: 6.688 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1337, allocations: 0 / 0.4906 GB, free: 6.688 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1337, allocations: 4 kB / 0.4906 GB, free: 6.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1337, allocations: 3.938 kB / 0.4906 GB, free: 6.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001002/0.1347, allocations: 0.6452 MB / 0.4912 GB, free: 5.973 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1348, allocations: 8.031 kB / 0.4912 GB, free: 5.965 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.843e-05/0.1348, allocations: 42.75 kB / 0.4912 GB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.426e-05/0.1349, allocations: 32.75 kB / 0.4913 GB, free: 5.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.1353, allocations: 288.5 kB / 0.4915 GB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.1353, allocations: 4.375 kB / 0.4916 GB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.1353, allocations: 19.94 kB / 0.4916 GB, free: 5.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003749/0.1357, allocations: 149.7 kB / 0.4917 GB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1357, allocations: 0 / 0.4917 GB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.1357, allocations: 8 kB / 0.4917 GB, free: 5.379 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.1357, allocations: 4 kB / 0.4917 GB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.136, allocations: 99.91 kB / 0.4918 GB, free: 5.277 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.1371, allocations: 0.512 MB / 0.4923 GB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.1374, allocations: 90.53 kB / 0.4924 GB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.1375, allocations: 56.83 kB / 0.4925 GB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.1376, allocations: 11.92 kB / 0.4925 GB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.849e-05/0.1376, allocations: 38.59 kB / 0.4925 GB, free: 4.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.1376, allocations: 0 / 0.4925 GB, free: 4.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007573/0.1384, allocations: 308.9 kB / 0.4928 GB, free: 4.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/0.1385, allocations: 132.5 kB / 0.4929 GB, free: 4.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004752/0.139, allocations: 392.5 kB / 0.4933 GB, free: 3.625 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.139, allocations: 29.7 kB / 0.4933 GB, free: 3.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.1391, allocations: 160 kB / 0.4935 GB, free: 3.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.1392, allocations: 31.83 kB / 0.4935 GB, free: 3.398 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.101e-05/0.1392, allocations: 45.64 kB / 0.4936 GB, free: 3.348 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.1394, allocations: 338.8 kB / 0.4939 GB, free: 3.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1396, allocations: 47.97 kB / 0.4939 GB, free: 2.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.1398, allocations: 69.67 kB / 0.494 GB, free: 2.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.1401, allocations: 231.9 kB / 0.4942 GB, free: 2.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1401, allocations: 0 / 0.4942 GB, free: 2.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004793/0.1406, allocations: 252.9 kB / 0.4945 GB, free: 2.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.345e-05/0.1407, allocations: 67.39 kB / 0.4945 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1407, allocations: 0 / 0.4945 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1407, allocations: 3.938 kB / 0.4945 GB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.1408, allocations: 15.98 kB / 0.4945 GB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1408, allocations: 0 / 0.4945 GB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.1411, allocations: 39.92 kB / 0.4946 GB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.1411, allocations: 4 kB / 0.4946 GB, free: 2.227 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fileTxtLimits.state,fixedLimits.state) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0002211/0.1413, allocations: 217.7 kB / 0.4948 GB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.786e-05/0.1414, allocations: 27.86 kB / 0.4948 GB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005849/0.142, allocations: 274.8 kB / 0.4951 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.142, allocations: 0 / 0.4951 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.142, allocations: 0 / 0.4951 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.142, allocations: 0 / 0.4951 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003323/0.1423, allocations: 293.3 kB / 0.4954 GB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1423, allocations: 4 kB / 0.4954 GB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.098e-05/0.1424, allocations: 11.98 kB / 0.4954 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1424, allocations: 4 kB / 0.4954 GB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.1424, allocations: 11.94 kB / 0.4954 GB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1424, allocations: 3.984 kB / 0.4954 GB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1424, allocations: 3.938 kB / 0.4954 GB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005614/0.143, allocations: 366.6 kB / 0.4957 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.1431, allocations: 116.9 kB / 0.4959 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.1431, allocations: 7.938 kB / 0.4959 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.1434, allocations: 31.97 kB / 0.4959 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.829e-05/0.1435, allocations: 15.97 kB / 0.4959 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.1435, allocations: 8 kB / 0.4959 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003375/0.1438, allocations: 295 kB / 0.4962 GB, free: 440 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1438, allocations: 0 / 0.4962 GB, free: 440 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.1442, allocations: 63.88 kB / 0.4963 GB, free: 376 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fixedLimits.state,fileTxtLimits.state) * Number of discrete states: 2 (fileTxtLimits.state,fixedLimits.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.002461/0.1466, allocations: 1.245 MB / 0.4975 GB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005266/0.1472, allocations: 246.4 kB / 0.4977 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1472, allocations: 0 / 0.4977 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002747/0.1474, allocations: 178.8 kB / 0.4979 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.1479, allocations: 40.89 kB / 0.4979 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.1517, allocations: 2.542 MB / 0.5004 GB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.1522, allocations: 0.7551 MB / 0.5011 GB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.1523, allocations: 33.39 kB / 0.5012 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.1524, allocations: 75.41 kB / 0.5012 GB, free: 11.23 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1524, allocations: 0 / 0.5012 GB, free: 11.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03634/0.1888, allocations: 6.653 MB / 0.5077 GB, free: 4.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.287/8.475, allocations: 7.922 kB / 0.5077 GB, free: 4.59 MB / 382.1 MB " [Timeout remaining time 651] (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.sim & python3 -m fmpy simulate --output-file EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.458867334004026] Failed to read output from testmodel.py, exit status != 0: 8.601985986999352 8.810322022 8.673997789 Calling exit ...