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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 113.9 kB / 17.6 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 190.8 kB / 20.78 MB, free: 1.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.6 MB / 249.4 MB, free: 3.145 MB / 190.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.04015/0.04015, allocations: 8.549 MB / 313.1 MB, free: 1.875 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 63.89 kB / 436 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2839, allocations: 54.19 MB / 490.2 MB, free: 25.78 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003665/0.2876, allocations: 1.895 MB / 492.1 MB, free: 24.47 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002262/0.2898, allocations: 1.549 MB / 493.7 MB, free: 23.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.2899, allocations: 0.875 kB / 493.7 MB, free: 23.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003676/0.2903, allocations: 105.6 kB / 493.8 MB, free: 23.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003259/0.2906, allocations: 112.9 kB / 493.9 MB, free: 23.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004754/0.2911, allocations: 185.3 kB / 494.1 MB, free: 23.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003774/0.2915, allocations: 259.4 kB / 494.3 MB, free: 23.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.2916, allocations: 28.19 kB / 494.4 MB, free: 23.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.2918, allocations: 108.2 kB / 494.5 MB, free: 23.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003016/0.2921, allocations: 146 kB / 494.6 MB, free: 22.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.998e-05/0.2921, allocations: 16.25 kB / 494.6 MB, free: 22.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.2923, allocations: 77.06 kB / 494.7 MB, free: 22.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.096e-05/0.2924, allocations: 43.72 kB / 494.7 MB, free: 22.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.2925, allocations: 106.7 kB / 494.8 MB, free: 22.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.2929, allocations: 278 kB / 495.1 MB, free: 22.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2929, allocations: 4.516 kB / 495.1 MB, free: 22.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2929, allocations: 0 / 495.1 MB, free: 22.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2929, allocations: 0 / 495.1 MB, free: 22.73 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.00071/0.2936, allocations: 0.6171 MB / 495.7 MB, free: 22.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2937, allocations: 14.2 kB / 495.7 MB, free: 22.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.318e-05/0.2937, allocations: 42.14 kB / 495.8 MB, free: 22.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.2938, allocations: 33.22 kB / 495.8 MB, free: 22.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.2941, allocations: 271.4 kB / 496.1 MB, free: 21.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.2941, allocations: 10.92 kB / 496.1 MB, free: 21.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.2941, allocations: 13.5 kB / 496.1 MB, free: 21.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003397/0.2944, allocations: 161.5 kB / 496.3 MB, free: 21.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.2945, allocations: 0 / 496.3 MB, free: 21.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.2945, allocations: 8.125 kB / 496.3 MB, free: 21.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.2945, allocations: 1.375 kB / 496.3 MB, free: 21.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002816/0.2948, allocations: 95.75 kB / 496.4 MB, free: 21.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009606/0.2957, allocations: 0.5056 MB / 496.9 MB, free: 21.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002243/0.2959, allocations: 88.89 kB / 497 MB, free: 21.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.2961, allocations: 59.2 kB / 497 MB, free: 21.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.2961, allocations: 7.438 kB / 497 MB, free: 21.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.2961, allocations: 39.97 kB / 497.1 MB, free: 21.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.2962, allocations: 0 / 497.1 MB, free: 21.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006593/0.2968, allocations: 300.2 kB / 497.4 MB, free: 21.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.2969, allocations: 142.6 kB / 497.5 MB, free: 20.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.2973, allocations: 364.8 kB / 497.9 MB, free: 20.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2973, allocations: 33.36 kB / 497.9 MB, free: 20.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/0.2974, allocations: 156.1 kB / 498 MB, free: 20.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.744e-05/0.2974, allocations: 33.52 kB / 498.1 MB, free: 20.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.157e-05/0.2975, allocations: 31.64 kB / 498.1 MB, free: 20.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.399e-05/0.2976, allocations: 339.3 kB / 498.4 MB, free: 20.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.2977, allocations: 53.22 kB / 498.5 MB, free: 20.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.2978, allocations: 76.42 kB / 498.6 MB, free: 20.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.2982, allocations: 225.1 kB / 498.8 MB, free: 19.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2982, allocations: 0 / 498.8 MB, free: 19.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004258/0.2986, allocations: 254.1 kB / 499 MB, free: 19.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.2986, allocations: 63.48 kB / 499.1 MB, free: 19.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.2986, allocations: 0 / 499.1 MB, free: 19.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.2987, allocations: 4.5 kB / 499.1 MB, free: 19.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.2988, allocations: 16.17 kB / 499.1 MB, free: 19.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2988, allocations: 0 / 499.1 MB, free: 19.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.299, allocations: 34.73 kB / 499.1 MB, free: 19.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.2991, allocations: 13.06 kB / 499.2 MB, free: 19.73 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.000213/0.2993, allocations: 217.8 kB / 499.4 MB, free: 19.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.926e-05/0.2993, allocations: 27.97 kB / 499.4 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005741/0.2999, allocations: 265.6 kB / 499.7 MB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.2999, allocations: 1.219 kB / 499.7 MB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2999, allocations: 0.9844 kB / 499.7 MB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2999, allocations: 1.125 kB / 499.7 MB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002983/0.3002, allocations: 287.5 kB / 499.9 MB, free: 19.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3002, allocations: 4.094 kB / 499.9 MB, free: 19.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.856e-05/0.3003, allocations: 18.08 kB / 500 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3003, allocations: 1.375 kB / 500 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.3003, allocations: 12.19 kB / 500 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3003, allocations: 2.578 kB / 500 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3003, allocations: 1.406 kB / 500 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004855/0.3008, allocations: 358.6 kB / 0.4886 GB, free: 18.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.359e-05/0.3009, allocations: 114.8 kB / 0.4887 GB, free: 18.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.963e-05/0.3009, allocations: 8.406 kB / 0.4887 GB, free: 18.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.3012, allocations: 33.62 kB / 0.4888 GB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.3012, allocations: 12.77 kB / 0.4888 GB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.3012, allocations: 4.438 kB / 0.4888 GB, free: 18.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002625/0.3015, allocations: 271.3 kB / 0.489 GB, free: 18.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3015, allocations: 5.312 kB / 0.489 GB, free: 18.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.3018, allocations: 58.47 kB / 0.4891 GB, free: 18.51 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.001778/0.3036, allocations: 1.181 MB / 0.4902 GB, free: 17.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003987/0.304, allocations: 243.8 kB / 0.4905 GB, free: 17.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.304, allocations: 3.938 kB / 0.4905 GB, free: 17.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.3042, allocations: 175 kB / 0.4906 GB, free: 17.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.3046, allocations: 50.16 kB / 0.4907 GB, free: 17.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.3074, allocations: 2.48 MB / 0.4931 GB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.3076, allocations: 0.7486 MB / 0.4938 GB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.168e-05/0.3077, allocations: 26.48 kB / 0.4939 GB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.882e-05/0.3077, allocations: 64.92 kB / 0.4939 GB, free: 14.57 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3077, allocations: 5.094 kB / 0.4939 GB, free: 14.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03017/0.3379, allocations: 6.102 MB / 0.4999 GB, free: 11.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.353/8.691, allocations: 4.031 kB / 0.4999 GB, free: 11.24 MB / 366.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.136686861980706] Failed to read output from testmodel.py, exit status != 0: 8.827448794996599 8.84456589 8.549377711 Calling exit ...