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.001349/0.001349, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001568/0.001568, allocations: 215.2 kB / 23.03 MB, free: 4.922 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.448/1.448, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.04217/0.04217, allocations: 8.541 MB / 321.8 MB, free: 10.41 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_latest_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.00195/0.00195, allocations: 63.84 kB / 447.7 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1148, allocations: 55.42 MB / 0.4913 GB, free: 8.117 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003496/0.1183, allocations: 1.858 MB / 0.4931 GB, free: 6.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1209, allocations: 1.695 MB / 0.4947 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.911e-05/0.121, allocations: 3.938 kB / 0.4948 GB, free: 4.543 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.1213, allocations: 111.5 kB / 0.4949 GB, free: 4.434 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004371/0.1217, allocations: 171.3 kB / 0.495 GB, free: 4.266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.1221, allocations: 185.8 kB / 0.4952 GB, free: 4.086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.1225, allocations: 283.3 kB / 0.4955 GB, free: 3.809 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.1226, allocations: 28.58 kB / 0.4955 GB, free: 3.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.1229, allocations: 123.5 kB / 0.4956 GB, free: 3.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.1231, allocations: 135.5 kB / 0.4957 GB, free: 3.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.1231, allocations: 20 kB / 0.4958 GB, free: 3.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.1233, allocations: 127.9 kB / 0.4959 GB, free: 3.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.724e-05/0.1234, allocations: 55.77 kB / 0.4959 GB, free: 3.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.1235, allocations: 79.53 kB / 0.496 GB, free: 3.246 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.124, allocations: 342.6 kB / 0.4963 GB, free: 2.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.124, allocations: 0 / 0.4963 GB, free: 2.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.124, allocations: 0 / 0.4963 GB, free: 2.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.124, allocations: 0 / 0.4963 GB, free: 2.91 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.000802/0.1248, allocations: 0.566 MB / 0.4969 GB, free: 2.301 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/0.1249, allocations: 16.03 kB / 0.4969 GB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.513e-05/0.1249, allocations: 192 / 0.4969 GB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.549e-05/0.1249, allocations: 46.73 kB / 0.497 GB, free: 2.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.125, allocations: 32.75 kB / 0.497 GB, free: 2.199 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.1253, allocations: 218.7 kB / 0.4972 GB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.1253, allocations: 12.12 kB / 0.4972 GB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.1253, allocations: 8 kB / 0.4972 GB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.1258, allocations: 240.4 kB / 0.4974 GB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1258, allocations: 3.938 kB / 0.4974 GB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.1258, allocations: 4 kB / 0.4974 GB, free: 1.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.1258, allocations: 8 kB / 0.4975 GB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.1261, allocations: 151.3 kB / 0.4976 GB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.1271, allocations: 471.5 kB / 0.498 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.1274, allocations: 141.9 kB / 0.4982 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.1276, allocations: 120.2 kB / 0.4983 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.1276, allocations: 0 / 0.4983 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.1277, allocations: 42.59 kB / 0.4983 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.1277, allocations: 0 / 0.4983 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007728/0.1284, allocations: 427.7 kB / 0.4987 GB, free: 196 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.1285, allocations: 140.4 kB / 0.4989 GB, free: 24 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005107/0.129, allocations: 388.5 kB / 0.4993 GB, free: 15.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.1291, allocations: 29.7 kB / 0.4993 GB, free: 15.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.1292, allocations: 156 kB / 0.4994 GB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.1292, allocations: 35.73 kB / 0.4995 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.527e-05/0.1293, allocations: 37.67 kB / 0.4995 GB, free: 15.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1295, allocations: 334.8 kB / 0.4998 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.1297, allocations: 111.4 kB / 0.4999 GB, free: 14.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.1299, allocations: 158.8 kB / 0.5001 GB, free: 14.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.1303, allocations: 228 kB / 0.5003 GB, free: 14.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1303, allocations: 3.938 kB / 0.5003 GB, free: 14.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005035/0.1308, allocations: 308.2 kB / 0.5006 GB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.366e-05/0.1308, allocations: 71.39 kB / 0.5007 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1308, allocations: 7.938 kB / 0.5007 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1308, allocations: 4.031 kB / 0.5007 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.131, allocations: 15.98 kB / 0.5007 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.131, allocations: 0 / 0.5007 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002219/0.1312, allocations: 31.92 kB / 0.5007 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.1312, allocations: 8 kB / 0.5007 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.0002031/0.1314, allocations: 217.2 kB / 0.5009 GB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.656e-05/0.1315, allocations: 31.84 kB / 0.501 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005891/0.1321, allocations: 342.2 kB / 0.5013 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1321, allocations: 0 / 0.5013 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1321, allocations: 0 / 0.5013 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1321, allocations: 3.938 kB / 0.5013 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000296/0.1324, allocations: 224.6 kB / 0.5015 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1324, allocations: 0 / 0.5015 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.505e-05/0.1324, allocations: 15.98 kB / 0.5015 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1325, allocations: 0 / 0.5015 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.1325, allocations: 11.92 kB / 0.5015 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1325, allocations: 0 / 0.5015 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1325, allocations: 4 kB / 0.5015 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005817/0.1331, allocations: 422 kB / 0.5019 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.154e-05/0.1332, allocations: 39.84 kB / 0.502 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.549e-05/0.1332, allocations: 11.94 kB / 0.502 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.1335, allocations: 31.95 kB / 0.502 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-05/0.1335, allocations: 15.98 kB / 0.502 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1335, allocations: 15.94 kB / 0.502 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003367/0.1339, allocations: 287 kB / 0.5023 GB, free: 12.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1339, allocations: 0 / 0.5023 GB, free: 12.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003458/0.1342, allocations: 71.8 kB / 0.5024 GB, free: 12.14 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.002466/0.1367, allocations: 1.317 MB / 0.5037 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005912/0.1373, allocations: 365.5 kB / 0.504 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1373, allocations: 0 / 0.504 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.1376, allocations: 242.2 kB / 0.5043 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.0004727/0.1381, allocations: 51.47 kB / 0.5043 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/0.1419, allocations: 2.844 MB / 0.5071 GB, free: 7.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.142, allocations: 144.5 kB / 0.5072 GB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.1421, allocations: 29.34 kB / 0.5072 GB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.1423, allocations: 75.41 kB / 0.5073 GB, free: 6.988 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1423, allocations: 0 / 0.5073 GB, free: 6.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2601/0.4024, allocations: 7.087 MB / 0.5142 GB, free: 28.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.92, allocations: 7.578 kB / 0.5142 GB, free: 28.52 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 os._exit(0), Time elapsed: 14.597758323070593] Failed to read output from testmodel.py, exit status != 0: 12.14113066997379 12.15547614 12.028368458 Calling exit ...