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.001436/0.001436, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001516/0.001516, allocations: 221.1 kB / 22.25 MB, free: 5.102 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.457/1.457, allocations: 230.6 MB / 256 MB, free: 7.816 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.06861/0.06861, allocations: 8.54 MB / 321 MB, free: 10.45 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.002037/0.002037, allocations: 77.14 kB / 446.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1116, allocations: 55.42 MB / 0.4905 GB, free: 8.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.00355/0.1151, allocations: 1.862 MB / 0.4923 GB, free: 6.312 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.1179, allocations: 1.699 MB / 0.494 GB, free: 4.605 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.541e-05/0.118, allocations: 3.938 kB / 0.494 GB, free: 4.602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003102/0.1183, allocations: 107.5 kB / 0.4941 GB, free: 4.496 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004847/0.1188, allocations: 167.3 kB / 0.4942 GB, free: 4.332 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.1193, allocations: 183.3 kB / 0.4944 GB, free: 4.156 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003772/0.1197, allocations: 283.3 kB / 0.4947 GB, free: 3.879 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.1198, allocations: 32.56 kB / 0.4947 GB, free: 3.844 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.12, allocations: 127.5 kB / 0.4948 GB, free: 3.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.1203, allocations: 139.5 kB / 0.495 GB, free: 3.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.263e-05/0.1203, allocations: 20 kB / 0.495 GB, free: 3.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.1205, allocations: 127.9 kB / 0.4951 GB, free: 3.438 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.799e-05/0.1206, allocations: 43.84 kB / 0.4952 GB, free: 3.395 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1207, allocations: 87.47 kB / 0.4952 GB, free: 3.309 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.1212, allocations: 342.6 kB / 0.4956 GB, free: 2.973 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1212, allocations: 0 / 0.4956 GB, free: 2.973 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1212, allocations: 0 / 0.4956 GB, free: 2.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1212, allocations: 0 / 0.4956 GB, free: 2.973 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.0008532/0.122, allocations: 0.5622 MB / 0.4961 GB, free: 2.367 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1221, allocations: 8.031 kB / 0.4961 GB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.894e-05/0.1221, allocations: 54.67 kB / 0.4962 GB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.164e-05/0.1222, allocations: 36.75 kB / 0.4962 GB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.1226, allocations: 218.6 kB / 0.4964 GB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.1226, allocations: 12.38 kB / 0.4964 GB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.1226, allocations: 11.94 kB / 0.4964 GB, free: 2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000406/0.123, allocations: 236.4 kB / 0.4967 GB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.123, allocations: 0 / 0.4967 GB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.1231, allocations: 8 kB / 0.4967 GB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1231, allocations: 0 / 0.4967 GB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.1234, allocations: 159.3 kB / 0.4968 GB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1244, allocations: 463.5 kB / 0.4973 GB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.1247, allocations: 149.9 kB / 0.4974 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.1249, allocations: 116.2 kB / 0.4975 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.1249, allocations: 4 kB / 0.4975 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.125, allocations: 34.59 kB / 0.4976 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.125, allocations: 0 / 0.4976 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007902/0.1258, allocations: 432 kB / 0.498 GB, free: 264 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.1259, allocations: 140.4 kB / 0.4981 GB, free: 92 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005015/0.1264, allocations: 388.5 kB / 0.4985 GB, free: 15.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.1264, allocations: 29.7 kB / 0.4985 GB, free: 15.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1265, allocations: 160 kB / 0.4987 GB, free: 15.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.684e-05/0.1266, allocations: 35.8 kB / 0.4987 GB, free: 15.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.1267, allocations: 37.67 kB / 0.4987 GB, free: 15.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1268, allocations: 334.8 kB / 0.499 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.127, allocations: 119.4 kB / 0.4992 GB, free: 14.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.1272, allocations: 150.8 kB / 0.4993 GB, free: 14.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003601/0.1276, allocations: 227.6 kB / 0.4995 GB, free: 14.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1276, allocations: 0 / 0.4995 GB, free: 14.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004965/0.1281, allocations: 308.2 kB / 0.4998 GB, free: 14.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/0.1281, allocations: 67.39 kB / 0.4999 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1281, allocations: 32 / 0.4999 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1282, allocations: 7.938 kB / 0.4999 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1283, allocations: 15.98 kB / 0.4999 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1283, allocations: 3.938 kB / 0.4999 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.1285, allocations: 35.92 kB / 0.4999 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.1285, allocations: 7.984 kB / 0.4999 GB, free: 14.06 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.0002118/0.1287, allocations: 213.2 kB / 0.5002 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-05/0.1288, allocations: 27.86 kB / 0.5002 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006132/0.1294, allocations: 346.2 kB / 0.5005 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1294, allocations: 0 / 0.5005 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1294, allocations: 0 / 0.5005 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1294, allocations: 0 / 0.5005 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/0.1297, allocations: 232.5 kB / 0.5007 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1297, allocations: 0 / 0.5007 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.581e-05/0.1298, allocations: 15.98 kB / 0.5007 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1298, allocations: 0 / 0.5007 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.1299, allocations: 11.94 kB / 0.5008 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1299, allocations: 4 kB / 0.5008 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1299, allocations: 0 / 0.5008 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006368/0.1305, allocations: 422 kB / 0.5012 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.1306, allocations: 43.83 kB / 0.5012 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.1307, allocations: 7.938 kB / 0.5012 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.1309, allocations: 31.97 kB / 0.5012 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.131, allocations: 15.98 kB / 0.5013 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.131, allocations: 8 kB / 0.5013 GB, free: 12.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003677/0.1314, allocations: 287 kB / 0.5015 GB, free: 12.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1314, allocations: 0 / 0.5015 GB, free: 12.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003826/0.1317, allocations: 67.86 kB / 0.5016 GB, free: 12.22 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.002563/0.1343, allocations: 1.33 MB / 0.5029 GB, free: 11.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00058/0.1349, allocations: 369.4 kB / 0.5033 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1349, allocations: 0 / 0.5033 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.1352, allocations: 238.2 kB / 0.5035 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004596/0.1356, allocations: 47.27 kB / 0.5035 GB, free: 10.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003882/0.1395, allocations: 2.84 MB / 0.5063 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001515/0.1397, allocations: 148.5 kB / 0.5064 GB, free: 7.156 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.775e-05/0.1398, allocations: 25.41 kB / 0.5065 GB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.1399, allocations: 71.41 kB / 0.5065 GB, free: 7.062 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1399, allocations: 0 / 0.5065 GB, free: 7.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2785/0.4184, allocations: 7.515 MB / 0.5139 GB, free: 28.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.84, allocations: 2.938 kB / 0.5139 GB, free: 28.09 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.641023935982957] Failed to read output from testmodel.py, exit status != 0: 12.007420835027006 12.023063028 11.898670924 Calling exit ...