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.001347/0.001347, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001658/0.001658, allocations: 214.1 kB / 22.25 MB, free: 5.074 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 8.031 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.04525/0.04525, allocations: 8.535 MB / 321 MB, free: 10.63 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.002063/0.002063, allocations: 71.95 kB / 446.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1222, allocations: 55.42 MB / 0.4906 GB, free: 8.477 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003648/0.1258, allocations: 1.921 MB / 0.4925 GB, free: 6.543 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.1285, allocations: 1.745 MB / 0.4942 GB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.85e-05/0.1286, allocations: 4 kB / 0.4942 GB, free: 4.785 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003128/0.1289, allocations: 115.5 kB / 0.4943 GB, free: 4.672 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004117/0.1294, allocations: 167.3 kB / 0.4944 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004567/0.1298, allocations: 187.2 kB / 0.4946 GB, free: 4.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003923/0.1302, allocations: 291.3 kB / 0.4949 GB, free: 4.043 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.1303, allocations: 24.58 kB / 0.4949 GB, free: 4.016 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.1306, allocations: 123.5 kB / 0.495 GB, free: 3.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.1308, allocations: 151.4 kB / 0.4952 GB, free: 3.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.569e-05/0.1308, allocations: 16 kB / 0.4952 GB, free: 3.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002183/0.1311, allocations: 131.9 kB / 0.4953 GB, free: 3.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.912e-05/0.1311, allocations: 47.84 kB / 0.4954 GB, free: 3.555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1313, allocations: 115.3 kB / 0.4955 GB, free: 3.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004451/0.1317, allocations: 334.7 kB / 0.4958 GB, free: 3.113 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1317, allocations: 0 / 0.4958 GB, free: 3.113 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1317, allocations: 3.938 kB / 0.4958 GB, free: 3.109 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1317, allocations: 0 / 0.4958 GB, free: 3.109 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.0008595/0.1326, allocations: 0.5622 MB / 0.4963 GB, free: 2.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1326, allocations: 8.031 kB / 0.4963 GB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.1327, allocations: 50.67 kB / 0.4964 GB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.438e-05/0.1327, allocations: 32.75 kB / 0.4964 GB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.1331, allocations: 226.6 kB / 0.4966 GB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.1331, allocations: 8.375 kB / 0.4967 GB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.427e-05/0.1331, allocations: 11.94 kB / 0.4967 GB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003672/0.1335, allocations: 155.3 kB / 0.4968 GB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1335, allocations: 0 / 0.4968 GB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1335, allocations: 4 kB / 0.4968 GB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1335, allocations: 4 kB / 0.4968 GB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000288/0.1338, allocations: 99.92 kB / 0.4969 GB, free: 1.871 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.1349, allocations: 491.4 kB / 0.4974 GB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/0.1351, allocations: 86.53 kB / 0.4975 GB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.1352, allocations: 68.81 kB / 0.4975 GB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.1353, allocations: 4.062 kB / 0.4975 GB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.1353, allocations: 34.56 kB / 0.4976 GB, free: 1.137 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.242e-06/0.1353, allocations: 0 / 0.4976 GB, free: 1.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007166/0.136, allocations: 309 kB / 0.4979 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.632e-05/0.1361, allocations: 136.5 kB / 0.498 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004667/0.1366, allocations: 392.5 kB / 0.4984 GB, free: 268 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.1366, allocations: 33.7 kB / 0.4984 GB, free: 228 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1367, allocations: 156 kB / 0.4985 GB, free: 68 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.076e-05/0.1368, allocations: 31.75 kB / 0.4986 GB, free: 36 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.802e-05/0.1369, allocations: 37.66 kB / 0.4986 GB, free: 15.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.137, allocations: 334.8 kB / 0.4989 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.1372, allocations: 55.91 kB / 0.499 GB, free: 15.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.1374, allocations: 73.95 kB / 0.4991 GB, free: 15.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.1377, allocations: 235.6 kB / 0.4993 GB, free: 15.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1378, allocations: 0 / 0.4993 GB, free: 15.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004598/0.1382, allocations: 244.8 kB / 0.4995 GB, free: 15.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.9e-05/0.1383, allocations: 63.39 kB / 0.4996 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1383, allocations: 4.031 kB / 0.4996 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1383, allocations: 3.938 kB / 0.4996 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1384, allocations: 15.98 kB / 0.4996 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.1384, allocations: 0 / 0.4996 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.1386, allocations: 39.92 kB / 0.4996 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.1387, allocations: 4 kB / 0.4996 GB, free: 14.87 MB / 382.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.0002077/0.1389, allocations: 213.2 kB / 0.4998 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.483e-05/0.1389, allocations: 27.86 kB / 0.4999 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005497/0.1395, allocations: 278.7 kB / 0.5001 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.1395, allocations: 4 kB / 0.5001 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1395, allocations: 0 / 0.5001 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1395, allocations: 0 / 0.5001 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003249/0.1398, allocations: 260.5 kB / 0.5004 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1398, allocations: 0 / 0.5004 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.803e-05/0.1399, allocations: 27.92 kB / 0.5004 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.1399, allocations: 7.938 kB / 0.5004 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.1399, allocations: 7.938 kB / 0.5004 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1399, allocations: 0 / 0.5004 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1399, allocations: 0 / 0.5004 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005424/0.1405, allocations: 358.6 kB / 0.5008 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.78e-05/0.1406, allocations: 47.81 kB / 0.5008 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.203e-05/0.1406, allocations: 15.88 kB / 0.5008 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.1409, allocations: 27.97 kB / 0.5009 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.1409, allocations: 15.98 kB / 0.5009 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.141, allocations: 8 kB / 0.5009 GB, free: 13.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003312/0.1413, allocations: 287 kB / 0.5012 GB, free: 13.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1413, allocations: 0 / 0.5012 GB, free: 13.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.1416, allocations: 67.88 kB / 0.5012 GB, free: 13.13 MB / 382.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.002307/0.1439, allocations: 1.241 MB / 0.5024 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004864/0.1444, allocations: 242.7 kB / 0.5027 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1444, allocations: 0 / 0.5027 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.1447, allocations: 182.7 kB / 0.5028 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004602/0.1451, allocations: 48.83 kB / 0.5029 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/0.1486, allocations: 2.538 MB / 0.5054 GB, free: 8.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.1491, allocations: 0.759 MB / 0.5061 GB, free: 8.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.375e-05/0.1491, allocations: 29.39 kB / 0.5061 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.1493, allocations: 75.41 kB / 0.5062 GB, free: 7.984 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1493, allocations: 0 / 0.5062 GB, free: 7.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03632/0.1856, allocations: 6.854 MB / 0.5129 GB, free: 1.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.51, allocations: 0 / 0.5129 GB, free: 1.18 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.512152490002336] Failed to read output from testmodel.py, exit status != 0: 11.854494995001005 11.869074603 11.734522456 Calling exit ...