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.001332/0.001332, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001437/0.001437, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.548/1.548, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.04093/0.04093, allocations: 8.537 MB / 318.1 MB, free: 60 kB / 238.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="cs",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.002692/0.002692, allocations: 70.45 kB / 442.4 MB, free: 40.35 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1182, allocations: 55.39 MB / 497.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.002754/0.1209, allocations: 1.906 MB / 499.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.1228, allocations: 1.658 MB / 0.4896 GB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.846e-05/0.1229, allocations: 4 kB / 0.4896 GB, free: 3.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003087/0.1232, allocations: 111.5 kB / 0.4897 GB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003527/0.1236, allocations: 167.3 kB / 0.4899 GB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.1239, allocations: 177.2 kB / 0.4901 GB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002994/0.1242, allocations: 291.2 kB / 0.4904 GB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.1243, allocations: 24.41 kB / 0.4904 GB, free: 2.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.1245, allocations: 119.5 kB / 0.4905 GB, free: 2.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.1247, allocations: 143.4 kB / 0.4906 GB, free: 2.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.902e-05/0.1247, allocations: 20 kB / 0.4906 GB, free: 2.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.1249, allocations: 127.9 kB / 0.4908 GB, free: 2.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-05/0.1249, allocations: 55.72 kB / 0.4908 GB, free: 2.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.297e-05/0.125, allocations: 115.3 kB / 0.4909 GB, free: 2.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.1253, allocations: 338.6 kB / 0.4913 GB, free: 1.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1253, allocations: 0 / 0.4913 GB, free: 1.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1253, allocations: 4 kB / 0.4913 GB, free: 1.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1254, allocations: 0 / 0.4913 GB, free: 1.906 MB / 350.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.0006759/0.126, allocations: 0.6259 MB / 0.4919 GB, free: 1.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1261, allocations: 12.03 kB / 0.4919 GB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.84e-05/0.1261, allocations: 8.188 kB / 0.4919 GB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.1261, allocations: 46.73 kB / 0.4919 GB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.543e-05/0.1262, allocations: 32.75 kB / 0.492 GB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.1265, allocations: 288.3 kB / 0.4922 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.1265, allocations: 16.12 kB / 0.4923 GB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.1265, allocations: 8 kB / 0.4923 GB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.1268, allocations: 147.3 kB / 0.4924 GB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1268, allocations: 7.984 kB / 0.4924 GB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.1269, allocations: 8 kB / 0.4924 GB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1269, allocations: 4 kB / 0.4924 GB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002502/0.1271, allocations: 103.8 kB / 0.4925 GB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009187/0.128, allocations: 0.5004 MB / 0.493 GB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.1283, allocations: 90.47 kB / 0.4931 GB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.1284, allocations: 56.83 kB / 0.4932 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.1285, allocations: 8.062 kB / 0.4932 GB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.1285, allocations: 38.56 kB / 0.4932 GB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.1285, allocations: 0 / 0.4932 GB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007506/0.1293, allocations: 305 kB / 0.4935 GB, free: 15.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.1294, allocations: 140.5 kB / 0.4936 GB, free: 15.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004957/0.1299, allocations: 392.5 kB / 0.494 GB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.1299, allocations: 29.7 kB / 0.494 GB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.13, allocations: 156 kB / 0.4942 GB, free: 14.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.547e-05/0.1301, allocations: 39.69 kB / 0.4942 GB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.582e-05/0.1302, allocations: 29.72 kB / 0.4942 GB, free: 14.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1303, allocations: 335.1 kB / 0.4946 GB, free: 14.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.1305, allocations: 55.95 kB / 0.4946 GB, free: 14.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.1307, allocations: 73.62 kB / 0.4947 GB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.131, allocations: 235.5 kB / 0.4949 GB, free: 13.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.131, allocations: 0 / 0.4949 GB, free: 13.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004646/0.1315, allocations: 252.8 kB / 0.4951 GB, free: 13.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.113e-05/0.1316, allocations: 63.41 kB / 0.4952 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1316, allocations: 7.938 kB / 0.4952 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1316, allocations: 4.031 kB / 0.4952 GB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.1317, allocations: 15.98 kB / 0.4952 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.1317, allocations: 0 / 0.4952 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.132, allocations: 39.91 kB / 0.4953 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.132, allocations: 4 kB / 0.4953 GB, free: 13.45 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.0002085/0.1322, allocations: 211.5 kB / 0.4955 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.002e-05/0.1323, allocations: 35.84 kB / 0.4955 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000561/0.1328, allocations: 270.8 kB / 0.4958 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1328, allocations: 4 kB / 0.4958 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.1328, allocations: 3.984 kB / 0.4958 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1328, allocations: 0 / 0.4958 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003501/0.1332, allocations: 285.4 kB / 0.496 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1332, allocations: 0 / 0.496 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.835e-05/0.1333, allocations: 16.08 kB / 0.4961 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1333, allocations: 3.938 kB / 0.4961 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.1333, allocations: 19.94 kB / 0.4961 GB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1333, allocations: 0 / 0.4961 GB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1333, allocations: 0 / 0.4961 GB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005537/0.1339, allocations: 358.6 kB / 0.4964 GB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.134, allocations: 117 kB / 0.4965 GB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.134, allocations: 15.92 kB / 0.4966 GB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.1343, allocations: 31.97 kB / 0.4966 GB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.1344, allocations: 15.98 kB / 0.4966 GB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1344, allocations: 8 kB / 0.4966 GB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003319/0.1347, allocations: 287 kB / 0.4969 GB, free: 11.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1347, allocations: 0 / 0.4969 GB, free: 11.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003632/0.1351, allocations: 67.86 kB / 0.4969 GB, free: 11.6 MB / 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.002482/0.1376, allocations: 1.25 MB / 0.4982 GB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004991/0.1381, allocations: 238.7 kB / 0.4984 GB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1381, allocations: 0 / 0.4984 GB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002494/0.1383, allocations: 182.7 kB / 0.4986 GB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004591/0.1388, allocations: 52.81 kB / 0.4986 GB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.1423, allocations: 2.538 MB / 0.5011 GB, free: 7.332 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.1427, allocations: 0.759 MB / 0.5018 GB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.467e-05/0.1428, allocations: 21.42 kB / 0.5019 GB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.1429, allocations: 75.41 kB / 0.5019 GB, free: 6.453 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.1429, allocations: 0 / 0.5019 GB, free: 6.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02771/0.1706, allocations: 6.701 MB / 0.5085 GB, free: 15.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.467/8.638, allocations: 7.938 kB / 0.5085 GB, free: 15.79 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.531220128003042] Failed to read output from testmodel.py, exit status != 0: 8.820623794046696 8.834778158 8.706573229 Calling exit ...