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.001348/0.001348, allocations: 97.31 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.001445/0.001445, allocations: 218.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.457/1.457, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.04464/0.04464, allocations: 8.533 MB / 321.8 MB, free: 10.43 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_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.002068/0.002068, allocations: 68.11 kB / 447.6 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1116, allocations: 55.42 MB / 0.4913 GB, free: 8.156 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.004352/0.116, allocations: 1.851 MB / 0.4931 GB, free: 6.293 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003214/0.1192, allocations: 1.699 MB / 0.4947 GB, free: 4.586 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1193, allocations: 0 / 0.4947 GB, free: 4.586 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003215/0.1197, allocations: 103.5 kB / 0.4948 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005146/0.1202, allocations: 175.3 kB / 0.495 GB, free: 4.312 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004918/0.1207, allocations: 181.1 kB / 0.4952 GB, free: 4.141 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000481/0.1211, allocations: 295.3 kB / 0.4955 GB, free: 3.852 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1213, allocations: 24.58 kB / 0.4955 GB, free: 3.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002625/0.1215, allocations: 127.5 kB / 0.4956 GB, free: 3.699 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.1218, allocations: 139.5 kB / 0.4957 GB, free: 3.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.1218, allocations: 16 kB / 0.4958 GB, free: 3.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002334/0.122, allocations: 123.9 kB / 0.4959 GB, free: 3.426 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.469e-05/0.1221, allocations: 51.72 kB / 0.4959 GB, free: 3.375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.1222, allocations: 83.53 kB / 0.496 GB, free: 3.293 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.1227, allocations: 350.6 kB / 0.4963 GB, free: 2.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1227, allocations: 0 / 0.4963 GB, free: 2.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1227, allocations: 0 / 0.4963 GB, free: 2.949 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1227, allocations: 0 / 0.4963 GB, free: 2.949 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.0008381/0.1236, allocations: 0.5583 MB / 0.4969 GB, free: 2.348 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.1236, allocations: 8.031 kB / 0.4969 GB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.286e-05/0.1236, allocations: 8.188 kB / 0.4969 GB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.352e-05/0.1237, allocations: 42.69 kB / 0.4969 GB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.83e-05/0.1238, allocations: 32.75 kB / 0.497 GB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.1241, allocations: 222.6 kB / 0.4972 GB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.1241, allocations: 20.11 kB / 0.4972 GB, free: 1.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.7e-05/0.1241, allocations: 16 kB / 0.4972 GB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.1245, allocations: 232.4 kB / 0.4974 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.1245, allocations: 0 / 0.4974 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.1246, allocations: 11.94 kB / 0.4974 GB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1246, allocations: 4 kB / 0.4974 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.1249, allocations: 151.3 kB / 0.4976 GB, free: 1.539 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.1259, allocations: 467.5 kB / 0.498 GB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.1262, allocations: 141.9 kB / 0.4982 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.1264, allocations: 124.2 kB / 0.4983 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.1264, allocations: 0 / 0.4983 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.1264, allocations: 34.56 kB / 0.4983 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.1264, allocations: 0 / 0.4983 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007862/0.1272, allocations: 427.8 kB / 0.4987 GB, free: 244 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/0.1273, allocations: 132.5 kB / 0.4989 GB, free: 80 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004899/0.1278, allocations: 392.5 kB / 0.4992 GB, free: 15.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.1278, allocations: 29.7 kB / 0.4993 GB, free: 15.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.128, allocations: 160.1 kB / 0.4994 GB, free: 15.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.128, allocations: 35.73 kB / 0.4994 GB, free: 15.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-05/0.1281, allocations: 41.66 kB / 0.4995 GB, free: 15.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1283, allocations: 338.8 kB / 0.4998 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.1285, allocations: 115.2 kB / 0.4999 GB, free: 14.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.1287, allocations: 154.8 kB / 0.5001 GB, free: 14.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003766/0.129, allocations: 228 kB / 0.5003 GB, free: 14.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.129, allocations: 4.031 kB / 0.5003 GB, free: 14.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005035/0.1296, allocations: 312.2 kB / 0.5006 GB, free: 14.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.506e-05/0.1296, allocations: 67.39 kB / 0.5007 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1296, allocations: 7.938 kB / 0.5007 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1296, allocations: 0 / 0.5007 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1297, allocations: 15.98 kB / 0.5007 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.1297, allocations: 0 / 0.5007 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.13, allocations: 35.92 kB / 0.5007 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.13, allocations: 12 kB / 0.5007 GB, free: 14.03 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.0002041/0.1302, allocations: 209.2 kB / 0.5009 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.1303, allocations: 27.86 kB / 0.5009 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005825/0.1308, allocations: 338.1 kB / 0.5013 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1309, allocations: 0 / 0.5013 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1309, allocations: 0 / 0.5013 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1309, allocations: 3.984 kB / 0.5013 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000292/0.1312, allocations: 228.6 kB / 0.5015 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1312, allocations: 0 / 0.5015 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.449e-05/0.1313, allocations: 23.92 kB / 0.5015 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1313, allocations: 0 / 0.5015 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.1313, allocations: 7.938 kB / 0.5015 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.1313, allocations: 0 / 0.5015 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1313, allocations: 0 / 0.5015 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005623/0.1318, allocations: 418.1 kB / 0.5019 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.1319, allocations: 39.83 kB / 0.502 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.132, allocations: 15.94 kB / 0.502 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.1322, allocations: 35.95 kB / 0.502 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.366e-05/0.1323, allocations: 15.92 kB / 0.502 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.1323, allocations: 8 kB / 0.502 GB, free: 12.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003385/0.1327, allocations: 291 kB / 0.5023 GB, free: 12.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1327, allocations: 0 / 0.5023 GB, free: 12.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003403/0.133, allocations: 71.8 kB / 0.5024 GB, free: 12.19 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.002422/0.1354, allocations: 1.324 MB / 0.5037 GB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005814/0.136, allocations: 365.5 kB / 0.504 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.136, allocations: 4 kB / 0.504 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.1363, allocations: 246.1 kB / 0.5043 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.1367, allocations: 43.7 kB / 0.5043 GB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003706/0.1404, allocations: 2.84 MB / 0.5071 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001881/0.1406, allocations: 144.5 kB / 0.5072 GB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.337e-05/0.1407, allocations: 25.36 kB / 0.5072 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.1409, allocations: 79.39 kB / 0.5073 GB, free: 7.027 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1409, allocations: 4 kB / 0.5073 GB, free: 7.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2698/0.4106, allocations: 7.079 MB / 0.5142 GB, free: 29.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.07, allocations: 6.609 kB / 0.5142 GB, free: 29.45 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 os._exit(0), Time elapsed: 14.785376903018914] Failed to read output from testmodel.py, exit status != 0: 12.288791753002442 12.303696198 12.178293193 Calling exit ...