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.001272/0.001272, 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.00132/0.00132, 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.497/1.497, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.04414/0.04414, allocations: 8.549 MB / 318.1 MB, free: 20 kB / 238.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.001996/0.001996, allocations: 74.52 kB / 442.5 MB, free: 40.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1106, allocations: 55.38 MB / 497.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.002878/0.1135, allocations: 1.904 MB / 499.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.1153, allocations: 1.658 MB / 0.4896 GB, free: 3.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.436e-05/0.1154, allocations: 3.938 kB / 0.4896 GB, free: 3.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002789/0.1157, allocations: 111.5 kB / 0.4897 GB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003364/0.116, allocations: 167.3 kB / 0.4899 GB, free: 3.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.1164, allocations: 180 kB / 0.4901 GB, free: 3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003009/0.1167, allocations: 283.3 kB / 0.4904 GB, free: 2.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.1168, allocations: 28.38 kB / 0.4904 GB, free: 2.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.117, allocations: 127.5 kB / 0.4905 GB, free: 2.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.1172, allocations: 143.5 kB / 0.4906 GB, free: 2.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.1172, allocations: 20 kB / 0.4907 GB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.1174, allocations: 127.9 kB / 0.4908 GB, free: 2.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.14e-05/0.1174, allocations: 47.78 kB / 0.4908 GB, free: 2.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.331e-05/0.1175, allocations: 119.2 kB / 0.4909 GB, free: 2.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.1178, allocations: 334.7 kB / 0.4913 GB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1178, allocations: 0 / 0.4913 GB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1178, allocations: 0 / 0.4913 GB, free: 1.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1178, allocations: 0 / 0.4913 GB, free: 1.789 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.0006814/0.1185, allocations: 0.6414 MB / 0.4919 GB, free: 1.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1186, allocations: 12.03 kB / 0.4919 GB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.834e-05/0.1186, allocations: 4.188 kB / 0.4919 GB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.124e-05/0.1186, allocations: 38.75 kB / 0.4919 GB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.546e-05/0.1187, allocations: 32.75 kB / 0.492 GB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.1189, allocations: 288.4 kB / 0.4922 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.119, allocations: 20.11 kB / 0.4923 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.119, allocations: 11.94 kB / 0.4923 GB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.1193, allocations: 154.1 kB / 0.4924 GB, free: 496 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1193, allocations: 0 / 0.4924 GB, free: 496 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.1193, allocations: 8 kB / 0.4924 GB, free: 488 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1193, allocations: 0 / 0.4924 GB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002424/0.1195, allocations: 99.88 kB / 0.4925 GB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008953/0.1204, allocations: 0.5121 MB / 0.493 GB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.1207, allocations: 90.53 kB / 0.4931 GB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.1208, allocations: 60.81 kB / 0.4932 GB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.1208, allocations: 96 / 0.4932 GB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/0.1209, allocations: 42.58 kB / 0.4932 GB, free: 15.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.093e-06/0.1209, allocations: 0 / 0.4932 GB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007155/0.1216, allocations: 308.9 kB / 0.4935 GB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.718e-05/0.1217, allocations: 140.5 kB / 0.4936 GB, free: 15.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.1222, allocations: 392.5 kB / 0.494 GB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1222, allocations: 25.7 kB / 0.494 GB, free: 14.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1224, allocations: 160 kB / 0.4942 GB, free: 14.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.1224, allocations: 35.7 kB / 0.4942 GB, free: 14.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.134e-05/0.1225, allocations: 29.7 kB / 0.4942 GB, free: 14.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1227, allocations: 338.8 kB / 0.4946 GB, free: 14.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.1228, allocations: 55.97 kB / 0.4946 GB, free: 14.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.123, allocations: 73.89 kB / 0.4947 GB, free: 13.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.1234, allocations: 227.6 kB / 0.4949 GB, free: 13.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1234, allocations: 0 / 0.4949 GB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005016/0.1239, allocations: 256.8 kB / 0.4952 GB, free: 13.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.722e-05/0.124, allocations: 67.39 kB / 0.4952 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.124, allocations: 3.938 kB / 0.4952 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.124, allocations: 0 / 0.4952 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.1241, allocations: 15.98 kB / 0.4952 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1241, allocations: 0 / 0.4952 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.1243, allocations: 31.92 kB / 0.4953 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.1244, allocations: 12 kB / 0.4953 GB, free: 13.33 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.0002336/0.1246, allocations: 219.4 kB / 0.4955 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.921e-05/0.1247, allocations: 27.86 kB / 0.4955 GB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005743/0.1252, allocations: 274.7 kB / 0.4958 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1252, allocations: 0 / 0.4958 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1252, allocations: 4 kB / 0.4958 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.1253, allocations: 0 / 0.4958 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003598/0.1256, allocations: 293.4 kB / 0.4961 GB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1256, allocations: 3.984 kB / 0.4961 GB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.426e-05/0.1257, allocations: 12 kB / 0.4961 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.1257, allocations: 3.984 kB / 0.4961 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.1257, allocations: 12.03 kB / 0.4961 GB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1257, allocations: 3.938 kB / 0.4961 GB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1257, allocations: 4 kB / 0.4961 GB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.1263, allocations: 358.6 kB / 0.4964 GB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.1264, allocations: 116.9 kB / 0.4966 GB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.1265, allocations: 11.94 kB / 0.4966 GB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.1267, allocations: 27.97 kB / 0.4966 GB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.1268, allocations: 15.98 kB / 0.4966 GB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.1268, allocations: 4 kB / 0.4966 GB, free: 11.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.1272, allocations: 299 kB / 0.4969 GB, free: 11.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1272, allocations: 0 / 0.4969 GB, free: 11.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003493/0.1275, allocations: 63.88 kB / 0.497 GB, free: 11.47 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.00236/0.1299, allocations: 1.245 MB / 0.4982 GB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005352/0.1304, allocations: 246.6 kB / 0.4984 GB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1304, allocations: 0 / 0.4984 GB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002844/0.1307, allocations: 178.8 kB / 0.4986 GB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.1312, allocations: 47.64 kB / 0.4986 GB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003621/0.1348, allocations: 2.542 MB / 0.5011 GB, free: 7.207 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.1352, allocations: 0.7551 MB / 0.5018 GB, free: 6.426 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.003e-05/0.1353, allocations: 29.72 kB / 0.5019 GB, free: 6.398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.1354, allocations: 71.41 kB / 0.5019 GB, free: 6.328 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1354, allocations: 4 kB / 0.5019 GB, free: 6.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03523/0.1707, allocations: 6.687 MB / 0.5085 GB, free: 15.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.658/8.829, allocations: 11.5 kB / 0.5085 GB, free: 15.67 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.659859193023294] Failed to read output from testmodel.py, exit status != 0: 9.011406089994125 9.028112066 8.907098641 Calling exit ...