Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 196 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.1 MB / 222.5 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.645/1.645, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 65.75 kB / 0.6718 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2847, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.002196/0.2869, allocations: 0.5647 MB / 0.7842 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001917/0.2889, allocations: 1.254 MB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.741e-05/0.2889, allocations: 4 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.289, allocations: 7.984 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.428e-05/0.2891, allocations: 7.938 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function 'Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0007178/0.2898, allocations: 291.2 kB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.29, allocations: 71.88 kB / 0.7858 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.81e-05/0.2901, allocations: 11.98 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.413e-05/0.2901, allocations: 35.91 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.2902, allocations: 39.91 kB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.2903, allocations: 4 kB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004199/0.2907, allocations: 239.6 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.135e-05/0.2907, allocations: 7.938 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.222e-05/0.2908, allocations: 27.92 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003726/0.2912, allocations: 275.4 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.2912, allocations: 0 / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2912, allocations: 8 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.2912, allocations: 0 / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005107/0.2917, allocations: 441.4 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.2918, allocations: 12.03 kB / 0.7868 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.835e-05/0.2918, allocations: 38.69 kB / 0.7869 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.177e-05/0.2919, allocations: 8.938 kB / 0.7869 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.2921, allocations: 184.2 kB / 0.7871 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.2921, allocations: 4.375 kB / 0.7871 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.2921, allocations: 4.375 kB / 0.7871 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.2924, allocations: 133.5 kB / 0.7872 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2924, allocations: 0 / 0.7872 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.2924, allocations: 4 kB / 0.7872 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2924, allocations: 0 / 0.7872 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.2925, allocations: 63.94 kB / 0.7873 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001859/0.2927, allocations: 157.7 kB / 0.7874 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001585/0.2929, allocations: 122.5 kB / 0.7875 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.293, allocations: 100.9 kB / 0.7876 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.293, allocations: 3.938 kB / 0.7876 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.2931, allocations: 38.56 kB / 0.7877 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.001e-06/0.2931, allocations: 0 / 0.7877 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0005097/0.2936, allocations: 295 kB / 0.7879 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.2937, allocations: 89.09 kB / 0.788 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.2938, allocations: 121.8 kB / 0.7881 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.2938, allocations: 29.7 kB / 0.7882 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.45e-05/0.2939, allocations: 92.16 kB / 0.7883 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.2939, allocations: 15.81 kB / 0.7883 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.097e-05/0.294, allocations: 45.69 kB / 0.7883 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2941, allocations: 310.8 kB / 0.7886 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.2942, allocations: 67.94 kB / 0.7887 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.884e-05/0.2943, allocations: 55.95 kB / 0.7887 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.2945, allocations: 180.2 kB / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2946, allocations: 0 / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.00033/0.2949, allocations: 239.1 kB / 0.7891 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.001e-05/0.295, allocations: 45.69 kB / 0.7892 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.295, allocations: 7.984 kB / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.295, allocations: 0 / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.295, allocations: 0 / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.295, allocations: 0 / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.2953, allocations: 27.77 kB / 0.7892 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.2954, allocations: 15.98 kB / 0.7892 GB, free: 7.254 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001435/0.2955, allocations: 164.2 kB / 0.7894 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.2956, allocations: 19.88 kB / 0.7894 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.526e-05/0.2956, allocations: 4.375 kB / 0.7894 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2956, allocations: 4 kB / 0.7894 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2956, allocations: 256 / 0.7894 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2956, allocations: 0 / 0.7894 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001386/0.2958, allocations: 177.6 kB / 0.7896 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2958, allocations: 7.938 kB / 0.7896 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.2958, allocations: 0 / 0.7896 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.2958, allocations: 0 / 0.7896 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.2958, allocations: 11.98 kB / 0.7896 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.2958, allocations: 4 kB / 0.7896 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2958, allocations: 384 / 0.7896 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003867/0.2962, allocations: 290.5 kB / 0.7899 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-05/0.2963, allocations: 85.05 kB / 0.79 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.2963, allocations: 7.984 kB / 0.79 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.2965, allocations: 19.92 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.042e-05/0.2965, allocations: 11.98 kB / 0.79 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.754e-05/0.2966, allocations: 20.02 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.424e-05/0.2967, allocations: 95.27 kB / 0.7901 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2967, allocations: 0 / 0.7901 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003339/0.297, allocations: 83.92 kB / 0.7902 GB, free: 6.16 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI1[1],yI2[1],yI2[2]) * Number of discrete states: 3 (yI2[2],yI2[1],yI1[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.00325/0.3003, allocations: 1.135 MB / 0.7913 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000472/0.3008, allocations: 287.2 kB / 0.7916 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3008, allocations: 0 / 0.7916 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000246/0.301, allocations: 207.3 kB / 0.7918 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.3012, allocations: 15.94 kB / 0.7918 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005997/0.3018, allocations: 314.1 kB / 0.7921 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.3021, allocations: 0.6807 MB / 0.7928 GB, free: 3.52 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.537e-05/0.3022, allocations: 63.92 kB / 0.7928 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.684e-05/0.3022, allocations: 11.44 kB / 0.7928 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of SimCode: time 1.863e-06/0.3023, allocations: 0 / 0.7928 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.3299, allocations: 5.155 MB / 0.7979 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/8.016, allocations: 13 kB / 0.7979 GB, free: 14.42 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange.fmu > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1)