Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_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.001636/0.001636, allocations: 113 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.002143/0.002143, allocations: 209 kB / 22.25 MB, free: 5.086 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.564/1.564, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.04983/0.04983, allocations: 8.535 MB / 321 MB, free: 10.62 MB / 254.1 MB " [Timeout remaining time 180] Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/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_latest_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_latest_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.00204/0.00204, allocations: 72.03 kB / 446.9 MB, free: 15.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1186, allocations: 55.41 MB / 0.4906 GB, free: 8.445 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.004183/0.1228, allocations: 1.925 MB / 0.4925 GB, free: 6.508 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.1261, allocations: 1.753 MB / 0.4942 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.1262, allocations: 4 kB / 0.4942 GB, free: 4.742 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.1266, allocations: 111.5 kB / 0.4943 GB, free: 4.633 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004706/0.127, allocations: 167.3 kB / 0.4944 GB, free: 4.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.1275, allocations: 190.4 kB / 0.4946 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004608/0.128, allocations: 287.3 kB / 0.4949 GB, free: 4.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.1281, allocations: 24.58 kB / 0.4949 GB, free: 3.977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.1284, allocations: 123.5 kB / 0.495 GB, free: 3.855 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003078/0.1287, allocations: 147.4 kB / 0.4952 GB, free: 3.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.1288, allocations: 20 kB / 0.4952 GB, free: 3.691 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.1291, allocations: 127.9 kB / 0.4953 GB, free: 3.566 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.254e-05/0.1291, allocations: 47.78 kB / 0.4954 GB, free: 3.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.1293, allocations: 111.3 kB / 0.4955 GB, free: 3.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005462/0.1298, allocations: 338.6 kB / 0.4958 GB, free: 3.078 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1298, allocations: 0 / 0.4958 GB, free: 3.078 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1298, allocations: 0 / 0.4958 GB, free: 3.078 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.1298, allocations: 4 kB / 0.4958 GB, free: 3.074 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.0009301/0.1308, allocations: 0.5661 MB / 0.4964 GB, free: 2.465 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.1308, allocations: 12.03 kB / 0.4964 GB, free: 2.453 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.239e-05/0.1309, allocations: 38.75 kB / 0.4964 GB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.11e-05/0.1309, allocations: 32.75 kB / 0.4964 GB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.1313, allocations: 230.6 kB / 0.4967 GB, free: 2.125 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1313, allocations: 4.375 kB / 0.4967 GB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.1314, allocations: 19.94 kB / 0.4967 GB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.1317, allocations: 147.3 kB / 0.4968 GB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1317, allocations: 0 / 0.4968 GB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.1317, allocations: 8 kB / 0.4968 GB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.1317, allocations: 3.938 kB / 0.4968 GB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002783/0.132, allocations: 99.86 kB / 0.4969 GB, free: 1.836 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.1331, allocations: 495.4 kB / 0.4974 GB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.1333, allocations: 90.47 kB / 0.4975 GB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.1335, allocations: 60.83 kB / 0.4975 GB, free: 1.148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.1335, allocations: 8 kB / 0.4975 GB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.1335, allocations: 34.55 kB / 0.4976 GB, free: 1.098 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.1335, allocations: 0 / 0.4976 GB, free: 1.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007357/0.1343, allocations: 313 kB / 0.4979 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/0.1344, allocations: 140.5 kB / 0.498 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004651/0.1348, allocations: 384.5 kB / 0.4984 GB, free: 228 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.1349, allocations: 29.7 kB / 0.4984 GB, free: 192 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.135, allocations: 160 kB / 0.4986 GB, free: 28 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.442e-05/0.135, allocations: 31.78 kB / 0.4986 GB, free: 15.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.265e-05/0.1351, allocations: 37.67 kB / 0.4986 GB, free: 15.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1353, allocations: 334.8 kB / 0.4989 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.1355, allocations: 59.95 kB / 0.499 GB, free: 15.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.1356, allocations: 65.62 kB / 0.4991 GB, free: 15.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.136, allocations: 231.6 kB / 0.4993 GB, free: 15.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.136, allocations: 384 / 0.4993 GB, free: 15.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004678/0.1364, allocations: 252.8 kB / 0.4995 GB, free: 14.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.952e-05/0.1365, allocations: 67.44 kB / 0.4996 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.1365, allocations: 3.984 kB / 0.4996 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1365, allocations: 3.938 kB / 0.4996 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.1366, allocations: 15.98 kB / 0.4996 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1366, allocations: 4 kB / 0.4996 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/0.1369, allocations: 31.92 kB / 0.4996 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1369, allocations: 8 kB / 0.4997 GB, free: 14.82 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.0002156/0.1371, allocations: 217.2 kB / 0.4999 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.1372, allocations: 27.86 kB / 0.4999 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005335/0.1377, allocations: 278.7 kB / 0.5002 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1377, allocations: 0 / 0.5002 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1377, allocations: 0 / 0.5002 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-06/0.1377, allocations: 0 / 0.5002 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003347/0.138, allocations: 264.5 kB / 0.5004 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.138, allocations: 4 kB / 0.5004 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.618e-05/0.1381, allocations: 19.98 kB / 0.5004 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1381, allocations: 0 / 0.5004 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1382, allocations: 11.88 kB / 0.5004 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.1382, allocations: 0 / 0.5004 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1382, allocations: 0 / 0.5004 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.1387, allocations: 366.6 kB / 0.5008 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1388, allocations: 35.84 kB / 0.5008 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.219e-05/0.1388, allocations: 11.92 kB / 0.5008 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.1391, allocations: 35.97 kB / 0.5009 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.392e-05/0.1391, allocations: 11.98 kB / 0.5009 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.1391, allocations: 8 kB / 0.5009 GB, free: 13.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003243/0.1395, allocations: 283 kB / 0.5012 GB, free: 13.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1395, allocations: 3.938 kB / 0.5012 GB, free: 13.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003385/0.1398, allocations: 75.86 kB / 0.5012 GB, free: 13.09 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.002297/0.1421, allocations: 1.235 MB / 0.5024 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004784/0.1426, allocations: 254.6 kB / 0.5027 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1426, allocations: 0 / 0.5027 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.1428, allocations: 182.7 kB / 0.5029 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.1433, allocations: 43.7 kB / 0.5029 GB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003526/0.1468, allocations: 2.538 MB / 0.5054 GB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.1472, allocations: 0.7551 MB / 0.5061 GB, free: 8.055 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.639e-05/0.1473, allocations: 25.41 kB / 0.5061 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.1475, allocations: 79.39 kB / 0.5062 GB, free: 7.949 MB / 382.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1475, allocations: 3.938 kB / 0.5062 GB, free: 7.945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03948/0.1869, allocations: 6.851 MB / 0.5129 GB, free: 1.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.13, allocations: 7.25 kB / 0.5129 GB, free: 1.133 MB / 382.1 MB " [Timeout remaining time 648] (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestLimTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestLimTorque.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.117942956043407] Failed to read output from testmodel.py, exit status != 0: 12.475054529029876 12.489633843 12.357069219 Calling exit ...