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.001304/0.001304, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001511/0.001511, allocations: 209.3 kB / 22.24 MB, free: 5.262 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.443/1.443, allocations: 230.6 MB / 256 MB, free: 7.793 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.04161/0.04161, allocations: 8.54 MB / 321 MB, free: 10.43 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.002097/0.002097, allocations: 59.91 kB / 446.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09718, allocations: 55.43 MB / 0.4905 GB, free: 8.141 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003353/0.1005, allocations: 1.865 MB / 0.4923 GB, free: 6.266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002576/0.1031, allocations: 1.695 MB / 0.494 GB, free: 4.562 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.128e-05/0.1032, allocations: 0 / 0.494 GB, free: 4.562 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.1035, allocations: 107.5 kB / 0.4941 GB, free: 4.457 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000437/0.1039, allocations: 175.3 kB / 0.4943 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.1043, allocations: 173.5 kB / 0.4944 GB, free: 4.117 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.1047, allocations: 295.3 kB / 0.4947 GB, free: 3.828 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.1048, allocations: 20.58 kB / 0.4947 GB, free: 3.805 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.1051, allocations: 123.5 kB / 0.4948 GB, free: 3.684 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.1053, allocations: 139.4 kB / 0.495 GB, free: 3.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.926e-05/0.1053, allocations: 16 kB / 0.495 GB, free: 3.531 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.1055, allocations: 116 kB / 0.4951 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.689e-05/0.1056, allocations: 63.7 kB / 0.4952 GB, free: 3.355 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.639e-05/0.1057, allocations: 83.53 kB / 0.4952 GB, free: 3.273 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.1061, allocations: 334.6 kB / 0.4956 GB, free: 2.945 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1061, allocations: 4 kB / 0.4956 GB, free: 2.941 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1061, allocations: 4 kB / 0.4956 GB, free: 2.938 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1061, allocations: 0 / 0.4956 GB, free: 2.938 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.0008131/0.107, allocations: 0.5544 MB / 0.4961 GB, free: 2.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.107, allocations: 12.03 kB / 0.4961 GB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.938e-05/0.107, allocations: 46.73 kB / 0.4962 GB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.207e-05/0.1071, allocations: 36.75 kB / 0.4962 GB, free: 2.238 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.1074, allocations: 222.6 kB / 0.4964 GB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.1075, allocations: 8.375 kB / 0.4964 GB, free: 1.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.1075, allocations: 15.94 kB / 0.4964 GB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.1079, allocations: 228.4 kB / 0.4966 GB, free: 1.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1079, allocations: 4 kB / 0.4967 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.1079, allocations: 4 kB / 0.4967 GB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1079, allocations: 4 kB / 0.4967 GB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003318/0.1082, allocations: 163.2 kB / 0.4968 GB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009863/0.1092, allocations: 459.5 kB / 0.4973 GB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.1095, allocations: 149.9 kB / 0.4974 GB, free: 0.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.1097, allocations: 120.2 kB / 0.4975 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.1097, allocations: 0 / 0.4975 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.1098, allocations: 38.55 kB / 0.4975 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.1098, allocations: 0 / 0.4975 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007761/0.1105, allocations: 427.7 kB / 0.498 GB, free: 240 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.672e-05/0.1106, allocations: 136.5 kB / 0.4981 GB, free: 72 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004694/0.1111, allocations: 396.5 kB / 0.4985 GB, free: 15.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.1111, allocations: 29.7 kB / 0.4985 GB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.1112, allocations: 156 kB / 0.4986 GB, free: 15.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.1113, allocations: 35.73 kB / 0.4987 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.127e-05/0.1114, allocations: 37.75 kB / 0.4987 GB, free: 15.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1115, allocations: 334.8 kB / 0.499 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.1117, allocations: 115.3 kB / 0.4991 GB, free: 14.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.1119, allocations: 154.8 kB / 0.4993 GB, free: 14.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003541/0.1123, allocations: 235.6 kB / 0.4995 GB, free: 14.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1123, allocations: 0 / 0.4995 GB, free: 14.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000483/0.1128, allocations: 308.2 kB / 0.4998 GB, free: 14.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.372e-05/0.1128, allocations: 63.41 kB / 0.4999 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1128, allocations: 3.984 kB / 0.4999 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1128, allocations: 7.938 kB / 0.4999 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.1129, allocations: 19.98 kB / 0.4999 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1129, allocations: 384 / 0.4999 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.1132, allocations: 39.91 kB / 0.4999 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.1132, allocations: 8 kB / 0.4999 GB, free: 14.03 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.0002047/0.1134, allocations: 209.2 kB / 0.5001 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.325e-05/0.1135, allocations: 31.8 kB / 0.5002 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005779/0.114, allocations: 334.1 kB / 0.5005 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.114, allocations: 4 kB / 0.5005 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.114, allocations: 4 kB / 0.5005 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1141, allocations: 0 / 0.5005 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.1143, allocations: 224.6 kB / 0.5007 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1144, allocations: 0 / 0.5007 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.99e-05/0.1144, allocations: 15.98 kB / 0.5007 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1144, allocations: 4 kB / 0.5007 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.1145, allocations: 11.94 kB / 0.5007 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1145, allocations: 0 / 0.5007 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1145, allocations: 0 / 0.5007 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005761/0.115, allocations: 426 kB / 0.5012 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.474e-05/0.1151, allocations: 35.83 kB / 0.5012 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.1152, allocations: 15.88 kB / 0.5012 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.1154, allocations: 31.97 kB / 0.5012 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/0.1155, allocations: 19.97 kB / 0.5012 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.1155, allocations: 4 kB / 0.5013 GB, free: 12.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003227/0.1158, allocations: 295 kB / 0.5015 GB, free: 12.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1158, allocations: 0 / 0.5015 GB, free: 12.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.1161, allocations: 67.88 kB / 0.5016 GB, free: 12.19 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.002391/0.1185, allocations: 1.321 MB / 0.5029 GB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005544/0.1191, allocations: 369.3 kB / 0.5032 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.1191, allocations: 4 kB / 0.5032 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002902/0.1194, allocations: 242.1 kB / 0.5035 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.1198, allocations: 51.44 kB / 0.5035 GB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/0.1235, allocations: 2.832 MB / 0.5063 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.1237, allocations: 152.5 kB / 0.5064 GB, free: 7.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.756e-05/0.1238, allocations: 17.73 kB / 0.5065 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1239, allocations: 75.41 kB / 0.5065 GB, free: 7.031 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1239, allocations: 0 / 0.5065 GB, free: 7.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2113/0.3352, allocations: 7.475 MB / 0.5138 GB, free: 28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.58, allocations: 4.203 kB / 0.5138 GB, free: 28 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.214695375878364] Failed to read output from testmodel.py, exit status != 0: 11.753382205031812 11.776942494 11.666587411 Calling exit ...