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.001424/0.001424, 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.001618/0.001618, allocations: 214.4 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.505/1.505, 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 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.04501/0.04501, allocations: 8.535 MB / 321 MB, free: 10.5 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.002135/0.002135, allocations: 59.91 kB / 446.9 MB, free: 15.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1199, allocations: 55.43 MB / 0.4905 GB, free: 8.191 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003455/0.1234, allocations: 1.85 MB / 0.4923 GB, free: 6.332 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002731/0.1261, allocations: 1.691 MB / 0.494 GB, free: 4.633 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1263, allocations: 7.938 kB / 0.494 GB, free: 4.625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003359/0.1266, allocations: 107.5 kB / 0.4941 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005007/0.1271, allocations: 171.3 kB / 0.4942 GB, free: 4.352 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.1276, allocations: 182.3 kB / 0.4944 GB, free: 4.176 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004101/0.128, allocations: 291.3 kB / 0.4947 GB, free: 3.891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1281, allocations: 28.56 kB / 0.4947 GB, free: 3.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.1284, allocations: 119.5 kB / 0.4948 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.1286, allocations: 139.4 kB / 0.495 GB, free: 3.605 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.999e-05/0.1286, allocations: 16 kB / 0.495 GB, free: 3.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.1289, allocations: 119.9 kB / 0.4951 GB, free: 3.473 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.834e-05/0.1289, allocations: 55.72 kB / 0.4952 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.846e-05/0.129, allocations: 83.53 kB / 0.4952 GB, free: 3.336 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.1295, allocations: 338.6 kB / 0.4956 GB, free: 3.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1295, allocations: 0 / 0.4956 GB, free: 3.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1295, allocations: 0 / 0.4956 GB, free: 3.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1295, allocations: 4 kB / 0.4956 GB, free: 3 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.0008591/0.1304, allocations: 0.5583 MB / 0.4961 GB, free: 2.398 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.1304, allocations: 12.03 kB / 0.4961 GB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.568e-05/0.1305, allocations: 46.73 kB / 0.4962 GB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.83e-05/0.1306, allocations: 32.75 kB / 0.4962 GB, free: 2.301 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.1309, allocations: 226.6 kB / 0.4964 GB, free: 2.055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.834e-05/0.1309, allocations: 8.375 kB / 0.4964 GB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.131, allocations: 15.94 kB / 0.4964 GB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000386/0.1313, allocations: 228.4 kB / 0.4966 GB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1314, allocations: 0 / 0.4966 GB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.1314, allocations: 11.97 kB / 0.4967 GB, free: 1.766 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.1314, allocations: 4 kB / 0.4967 GB, free: 1.762 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003229/0.1317, allocations: 159.3 kB / 0.4968 GB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009692/0.1327, allocations: 455.5 kB / 0.4973 GB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.1329, allocations: 157.9 kB / 0.4974 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.1331, allocations: 116.2 kB / 0.4975 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.195e-05/0.1332, allocations: 3.984 kB / 0.4975 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.1332, allocations: 38.56 kB / 0.4976 GB, free: 0.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.1332, allocations: 0 / 0.4976 GB, free: 0.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000792/0.134, allocations: 428 kB / 0.498 GB, free: 296 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.81e-05/0.1341, allocations: 136.5 kB / 0.4981 GB, free: 128 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004975/0.1346, allocations: 392.5 kB / 0.4985 GB, free: 15.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.1346, allocations: 29.7 kB / 0.4985 GB, free: 15.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.1348, allocations: 160 kB / 0.4986 GB, free: 15.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.1348, allocations: 35.81 kB / 0.4987 GB, free: 15.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.1349, allocations: 37.66 kB / 0.4987 GB, free: 15.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1351, allocations: 338.8 kB / 0.499 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.1353, allocations: 111.4 kB / 0.4991 GB, free: 15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002225/0.1355, allocations: 158.7 kB / 0.4993 GB, free: 14.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/0.1358, allocations: 235.6 kB / 0.4995 GB, free: 14.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1358, allocations: 0 / 0.4995 GB, free: 14.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004787/0.1363, allocations: 304.2 kB / 0.4998 GB, free: 14.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.1364, allocations: 63.41 kB / 0.4999 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.1364, allocations: 0 / 0.4999 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.1364, allocations: 11.94 kB / 0.4999 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.933e-05/0.1365, allocations: 11.98 kB / 0.4999 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1365, allocations: 8 kB / 0.4999 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.1367, allocations: 35.91 kB / 0.4999 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.1367, allocations: 4 kB / 0.4999 GB, free: 14.09 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.0002051/0.1369, allocations: 213.2 kB / 0.5001 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.474e-05/0.137, allocations: 31.84 kB / 0.5002 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005518/0.1376, allocations: 334.2 kB / 0.5005 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.1376, allocations: 8 kB / 0.5005 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1376, allocations: 0 / 0.5005 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1376, allocations: 0 / 0.5005 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002914/0.1379, allocations: 224.6 kB / 0.5007 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1379, allocations: 0 / 0.5007 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.153e-05/0.1379, allocations: 15.98 kB / 0.5007 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1379, allocations: 0 / 0.5007 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.138, allocations: 11.94 kB / 0.5007 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.138, allocations: 0 / 0.5007 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.138, allocations: 320 / 0.5007 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005674/0.1385, allocations: 430 kB / 0.5012 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.657e-05/0.1386, allocations: 39.83 kB / 0.5012 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.922e-05/0.1387, allocations: 7.938 kB / 0.5012 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.1389, allocations: 35.97 kB / 0.5012 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.139, allocations: 15.98 kB / 0.5012 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.139, allocations: 4 kB / 0.5013 GB, free: 12.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003188/0.1393, allocations: 291 kB / 0.5015 GB, free: 12.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1393, allocations: 4 kB / 0.5015 GB, free: 12.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.1397, allocations: 71.81 kB / 0.5016 GB, free: 12.25 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.002467/0.1421, allocations: 1.32 MB / 0.5029 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000611/0.1427, allocations: 369.4 kB / 0.5032 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1427, allocations: 0 / 0.5032 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002969/0.143, allocations: 242.1 kB / 0.5035 GB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004645/0.1435, allocations: 51.11 kB / 0.5035 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.1472, allocations: 2.84 MB / 0.5063 GB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.1473, allocations: 144.5 kB / 0.5064 GB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.419e-05/0.1474, allocations: 29.72 kB / 0.5065 GB, free: 7.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.1476, allocations: 75.41 kB / 0.5065 GB, free: 7.082 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1476, allocations: 0 / 0.5065 GB, free: 7.082 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.276/0.4236, allocations: 7.469 MB / 0.5138 GB, free: 28.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.51, allocations: 2.891 kB / 0.5138 GB, free: 28.12 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 & /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 sys.exit(0), Time elapsed: 14.243735080584884] Failed to read output from testmodel.py, exit status != 0: 11.682523446157575 11.70434215 11.57052957 Calling exit ...