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: translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 108 kB / 15.61 MB, free: 152 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.001126/0.001126, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.486/1.486, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.717/1.717, allocations: 292.3 MB / 0.5488 GB, free: 12.85 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.001666/0.001666, allocations: 67.95 kB / 0.6715 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2854, allocations: 114.5 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.002721/0.2882, allocations: 0.5486 MB / 0.7839 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001981/0.2902, allocations: 1.274 MB / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.103e-05/0.2903, allocations: 4 kB / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.2905, allocations: 3.938 kB / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.437e-05/0.2905, allocations: 0 / 0.7852 GB, free: 11.64 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.0008098/0.2913, allocations: 303.1 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.2915, allocations: 71.89 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.531e-05/0.2915, allocations: 7.984 kB / 0.7855 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.011e-05/0.2916, allocations: 39.91 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.833e-05/0.2917, allocations: 35.84 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.2917, allocations: 4 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004672/0.2922, allocations: 207.7 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.43e-05/0.2922, allocations: 7.938 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.286e-05/0.2923, allocations: 31.84 kB / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003927/0.2927, allocations: 275.5 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.2927, allocations: 3.984 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.184e-06/0.2927, allocations: 0 / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.2927, allocations: 0 / 0.7861 GB, free: 10.67 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.0005179/0.2932, allocations: 449.3 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.2933, allocations: 8.031 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.642e-05/0.2934, allocations: 8.938 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.2935, allocations: 176.3 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.2935, allocations: 4.375 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.2936, allocations: 8.375 kB / 0.7867 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.2938, allocations: 125.7 kB / 0.7868 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2938, allocations: 0 / 0.7868 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.2939, allocations: 4 kB / 0.7869 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.2939, allocations: 0 / 0.7869 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.294, allocations: 67.88 kB / 0.7869 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.2942, allocations: 169.6 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001619/0.2944, allocations: 106.5 kB / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.2945, allocations: 112.9 kB / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.2945, allocations: 0 / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.2945, allocations: 34.5 kB / 0.7873 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.2945, allocations: 0 / 0.7873 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0005375/0.2951, allocations: 295 kB / 0.7876 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.2952, allocations: 89.11 kB / 0.7877 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.2953, allocations: 129.7 kB / 0.7878 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.2954, allocations: 29.7 kB / 0.7878 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.214e-05/0.2954, allocations: 84.17 kB / 0.7879 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.235e-05/0.2955, allocations: 19.8 kB / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.187e-05/0.2956, allocations: 37.7 kB / 0.788 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.2957, allocations: 322.8 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.396e-05/0.2958, allocations: 55.95 kB / 0.7883 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.656e-05/0.2959, allocations: 64.19 kB / 0.7884 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002207/0.2961, allocations: 188.1 kB / 0.7886 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2961, allocations: 0 / 0.7886 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003396/0.2965, allocations: 239.1 kB / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.624e-05/0.2965, allocations: 42.62 kB / 0.7888 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2966, allocations: 0 / 0.7888 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.2966, allocations: 3.984 kB / 0.7889 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.2966, allocations: 0 / 0.7889 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.2966, allocations: 0 / 0.7889 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000382/0.297, allocations: 31.81 kB / 0.7889 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.297, allocations: 19.98 kB / 0.7889 GB, free: 7.539 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.0001654/0.2972, allocations: 156.2 kB / 0.789 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.304e-05/0.2973, allocations: 19.95 kB / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.2973, allocations: 8.375 kB / 0.7891 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.2973, allocations: 0 / 0.7891 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2973, allocations: 0 / 0.7891 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2973, allocations: 0 / 0.7891 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.2975, allocations: 173.5 kB / 0.7892 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.2975, allocations: 0 / 0.7892 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-06/0.2975, allocations: 7.875 kB / 0.7892 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2975, allocations: 0 / 0.7892 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.2975, allocations: 19.92 kB / 0.7893 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2975, allocations: 8 kB / 0.7893 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2976, allocations: 0 / 0.7893 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004035/0.298, allocations: 282.6 kB / 0.7895 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.302e-05/0.298, allocations: 81.05 kB / 0.7896 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.2981, allocations: 12 kB / 0.7896 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.2983, allocations: 19.97 kB / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.2983, allocations: 11.98 kB / 0.7897 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.2984, allocations: 12.03 kB / 0.7897 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.018e-05/0.2984, allocations: 99.58 kB / 0.7898 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2984, allocations: 0 / 0.7898 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003927/0.2988, allocations: 95.97 kB / 0.7899 GB, free: 6.445 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.0009417/0.2998, allocations: 400.6 kB / 0.7902 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003975/0.3002, allocations: 291.2 kB / 0.7905 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3002, allocations: 4.062 kB / 0.7905 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.3004, allocations: 211.3 kB / 0.7907 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.3006, allocations: 12 kB / 0.7907 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004728/0.3011, allocations: 236.7 kB / 0.791 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.3013, allocations: 0.6884 MB / 0.7916 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.32e-05/0.3014, allocations: 59.86 kB / 0.7917 GB, free: 4.582 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.733e-05/0.3014, allocations: 11.44 kB / 0.7917 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of SimCode: time 3.11e-07/0.3015, allocations: 0 / 0.7917 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of Templates: time 0.007428/0.3089, allocations: 4.023 MB / 0.7956 GB, free: 0.582 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile (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 & ./Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1)