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.001391/0.001391, 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.001443/0.001443, allocations: 216.7 kB / 22.25 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.781 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.04487/0.04487, allocations: 8.546 MB / 321 MB, free: 10.4 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.002308/0.002308, allocations: 59.91 kB / 446.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.121, allocations: 55.43 MB / 0.4905 GB, free: 8.105 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.004493/0.1255, allocations: 1.859 MB / 0.4923 GB, free: 6.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00346/0.129, allocations: 1.687 MB / 0.494 GB, free: 4.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.1292, allocations: 7.875 kB / 0.494 GB, free: 4.531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003641/0.1295, allocations: 107.5 kB / 0.4941 GB, free: 4.426 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005859/0.1301, allocations: 179.3 kB / 0.4943 GB, free: 4.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005982/0.1307, allocations: 183.2 kB / 0.4944 GB, free: 4.074 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005434/0.1313, allocations: 283.3 kB / 0.4947 GB, free: 3.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.1314, allocations: 28.56 kB / 0.4947 GB, free: 3.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003316/0.1317, allocations: 127.5 kB / 0.4949 GB, free: 3.641 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.132, allocations: 127.5 kB / 0.495 GB, free: 3.516 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.958e-05/0.1321, allocations: 16 kB / 0.495 GB, free: 3.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002713/0.1323, allocations: 127.9 kB / 0.4951 GB, free: 3.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.679e-05/0.1324, allocations: 51.84 kB / 0.4952 GB, free: 3.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.1325, allocations: 83.47 kB / 0.4952 GB, free: 3.242 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005053/0.133, allocations: 342.6 kB / 0.4956 GB, free: 2.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.133, allocations: 3.984 kB / 0.4956 GB, free: 2.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1331, allocations: 0 / 0.4956 GB, free: 2.902 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.1331, allocations: 0 / 0.4956 GB, free: 2.902 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.000943/0.134, allocations: 0.5583 MB / 0.4961 GB, free: 2.301 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.134, allocations: 12.03 kB / 0.4961 GB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.985e-05/0.1341, allocations: 42.73 kB / 0.4962 GB, free: 2.238 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.631e-05/0.1342, allocations: 36.75 kB / 0.4962 GB, free: 2.203 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.1345, allocations: 222.6 kB / 0.4964 GB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.1345, allocations: 8.375 kB / 0.4964 GB, free: 1.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.1346, allocations: 19.94 kB / 0.4964 GB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004115/0.135, allocations: 232.4 kB / 0.4967 GB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.135, allocations: 0 / 0.4967 GB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.135, allocations: 8 kB / 0.4967 GB, free: 1.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.135, allocations: 0 / 0.4967 GB, free: 1.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.1353, allocations: 163.3 kB / 0.4968 GB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.1364, allocations: 455.5 kB / 0.4973 GB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.1366, allocations: 145.9 kB / 0.4974 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.1369, allocations: 124.2 kB / 0.4975 GB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.1369, allocations: 4 kB / 0.4975 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.1369, allocations: 30.66 kB / 0.4976 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.213e-06/0.1369, allocations: 3.938 kB / 0.4976 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007922/0.1377, allocations: 424 kB / 0.498 GB, free: 208 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.856e-05/0.1378, allocations: 136.5 kB / 0.4981 GB, free: 40 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004895/0.1383, allocations: 396.6 kB / 0.4985 GB, free: 15.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.1383, allocations: 33.64 kB / 0.4985 GB, free: 15.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.1384, allocations: 156 kB / 0.4987 GB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.541e-05/0.1385, allocations: 39.64 kB / 0.4987 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/0.1386, allocations: 37.67 kB / 0.4987 GB, free: 15.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1387, allocations: 338.8 kB / 0.4991 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.1389, allocations: 107.4 kB / 0.4992 GB, free: 14.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.1391, allocations: 154.8 kB / 0.4993 GB, free: 14.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.1395, allocations: 239.6 kB / 0.4995 GB, free: 14.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.1395, allocations: 0 / 0.4995 GB, free: 14.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005035/0.14, allocations: 304.2 kB / 0.4998 GB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.604e-05/0.1401, allocations: 67.39 kB / 0.4999 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1401, allocations: 3.938 kB / 0.4999 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.1401, allocations: 3.938 kB / 0.4999 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.1402, allocations: 15.98 kB / 0.4999 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1402, allocations: 0 / 0.4999 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.1404, allocations: 35.92 kB / 0.4999 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.1404, allocations: 12 kB / 0.5 GB, free: 14 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.0002055/0.1406, allocations: 213.2 kB / 0.5002 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.458e-05/0.1407, allocations: 27.86 kB / 0.5002 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005948/0.1413, allocations: 342.2 kB / 0.5005 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.1413, allocations: 0 / 0.5005 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1413, allocations: 4 kB / 0.5005 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1413, allocations: 0 / 0.5005 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.1416, allocations: 228.6 kB / 0.5007 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1416, allocations: 3.938 kB / 0.5007 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.435e-05/0.1417, allocations: 19.98 kB / 0.5008 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1417, allocations: 0 / 0.5008 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.1417, allocations: 7.938 kB / 0.5008 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1417, allocations: 4 kB / 0.5008 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1417, allocations: 0 / 0.5008 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005775/0.1423, allocations: 426 kB / 0.5012 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.543e-05/0.1424, allocations: 35.84 kB / 0.5012 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.1424, allocations: 11.92 kB / 0.5012 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.1427, allocations: 31.97 kB / 0.5012 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.181e-05/0.1427, allocations: 11.98 kB / 0.5013 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.1427, allocations: 4 kB / 0.5013 GB, free: 12.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003371/0.1431, allocations: 291 kB / 0.5015 GB, free: 12.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1431, allocations: 0 / 0.5015 GB, free: 12.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1434, allocations: 71.86 kB / 0.5016 GB, free: 12.16 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.002425/0.1458, allocations: 1.328 MB / 0.5029 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000557/0.1464, allocations: 365.5 kB / 0.5033 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1464, allocations: 0 / 0.5033 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002952/0.1467, allocations: 242.1 kB / 0.5035 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.1471, allocations: 43.61 kB / 0.5035 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00365/0.1508, allocations: 2.836 MB / 0.5063 GB, free: 7.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/0.1509, allocations: 148.5 kB / 0.5064 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.264e-05/0.151, allocations: 29.69 kB / 0.5065 GB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.1511, allocations: 79.41 kB / 0.5065 GB, free: 6.988 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1511, allocations: 0 / 0.5065 GB, free: 6.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2598/0.411, allocations: 7.471 MB / 0.5138 GB, free: 28.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.59, allocations: 7.062 kB / 0.5138 GB, free: 28.08 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: 14.248317329213023] Failed to read output from testmodel.py, exit status != 0: 11.754161800723523 11.768065998 11.632062028 Calling exit ...