Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject") translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.823/1.823, allocations: 288.4 MB / 303.4 MB, free: 8.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009639/0.0009639, allocations: 187 kB / 372 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.4 MB / 0.6307 GB, free: 10.03 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007254/0.0007257, allocations: 104.2 kB / 0.7441 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005837/0.0005841, allocations: 10.84 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2591, allocations: 115.3 MB / 0.9796 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject): time 0.0008836/0.26, allocations: 270.2 kB / 0.9798 GB, free: 27.41 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001616/0.2616, allocations: 1.047 MB / 0.9809 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.289e-05/0.2617, allocations: 0 / 0.9809 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.2618, allocations: 15.94 kB / 0.9809 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.099e-05/0.2619, allocations: 0 / 0.9809 GB, free: 26.34 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.2624, allocations: 139.7 kB / 0.981 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 5.041e-05/0.2625, allocations: 19.97 kB / 0.981 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 3.932e-05/0.2625, allocations: 3.938 kB / 0.981 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 2.8e-05/0.2626, allocations: 7.984 kB / 0.981 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.792e-05/0.2626, allocations: 11.94 kB / 0.9811 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.2626, allocations: 0 / 0.9811 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003998/0.2631, allocations: 167.7 kB / 0.9812 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.833e-05/0.2631, allocations: 0 / 0.9812 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.2631, allocations: 29.7 kB / 0.9812 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.2634, allocations: 139.8 kB / 0.9814 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2634, allocations: 0 / 0.9814 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2634, allocations: 4 kB / 0.9814 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.2634, allocations: 0 / 0.9814 GB, free: 25.82 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003299/0.2638, allocations: 359.3 kB / 0.9817 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2638, allocations: 12.02 kB / 0.9817 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.596e-05/0.2639, allocations: 4 kB / 0.9817 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.799e-05/0.264, allocations: 167 kB / 0.9819 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.264, allocations: 0 / 0.9819 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.264, allocations: 0 / 0.9819 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.2641, allocations: 49.67 kB / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.2642, allocations: 0 / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.2642, allocations: 0 / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/0.2642, allocations: 0 / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.385e-05/0.2643, allocations: 15.98 kB / 0.982 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.2644, allocations: 161.8 kB / 0.9821 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 6.979e-05/0.2645, allocations: 42.52 kB / 0.9822 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.635e-05/0.2645, allocations: 8.922 kB / 0.9822 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.2646, allocations: 7.984 kB / 0.9822 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.2646, allocations: 30.56 kB / 0.9822 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/0.2646, allocations: 0 / 0.9822 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.000176/0.2648, allocations: 57.69 kB / 0.9823 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.2648, allocations: 51.41 kB / 0.9823 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.68e-05/0.2649, allocations: 101.8 kB / 0.9824 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.2649, allocations: 25.95 kB / 0.9824 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.768e-05/0.2649, allocations: 92.02 kB / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.265, allocations: 3.906 kB / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-06/0.265, allocations: 0 / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.083e-05/0.265, allocations: 318.8 kB / 0.9828 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.511e-05/0.2651, allocations: 11.98 kB / 0.9828 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.959e-05/0.2651, allocations: 4 kB / 0.9828 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.07e-05/0.2651, allocations: 8 kB / 0.9828 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2651, allocations: 0 / 0.9828 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001052/0.2653, allocations: 57.73 kB / 0.9829 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.2653, allocations: 5.719 kB / 0.9829 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.2653, allocations: 3.938 kB / 0.9829 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2653, allocations: 0 / 0.9829 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.2653, allocations: 0 / 0.9829 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2654, allocations: 4 kB / 0.9829 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.894e-05/0.2654, allocations: 0 / 0.9829 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.2654, allocations: 0 / 0.9829 GB, free: 24.03 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.102e-05/0.2655, allocations: 119.3 kB / 0.983 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.2655, allocations: 4.031 kB / 0.983 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.051e-05/0.2655, allocations: 7.109 kB / 0.983 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.2655, allocations: 4 kB / 0.983 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2655, allocations: 0 / 0.983 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2656, allocations: 0 / 0.983 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.072e-05/0.2657, allocations: 157.6 kB / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2657, allocations: 0 / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.2657, allocations: 0 / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2657, allocations: 4 kB / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2657, allocations: 0 / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.2657, allocations: 0 / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2657, allocations: 4 kB / 0.9832 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.2658, allocations: 77.11 kB / 0.9833 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.324e-05/0.2659, allocations: 84.97 kB / 0.9834 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.2659, allocations: 0 / 0.9834 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.421e-05/0.266, allocations: 4 kB / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.882e-05/0.266, allocations: 0 / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.266, allocations: 11.98 kB / 0.9834 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.397e-05/0.2661, allocations: 83.25 kB / 0.9835 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2661, allocations: 3.938 kB / 0.9835 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000414/0.2665, allocations: 55.98 kB / 0.9835 GB, free: 23.33 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007311/0.2672, allocations: 299.5 kB / 0.9838 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001032/0.2674, allocations: 23.98 kB / 0.9838 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2674, allocations: 0 / 0.9838 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 2.566e-05/0.2674, allocations: 8 kB / 0.9838 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.2676, allocations: 7.984 kB / 0.9838 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003954/0.268, allocations: 102.7 kB / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.727e-05/0.2681, allocations: 0.677 MB / 0.9846 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001142/0.2683, allocations: 24.05 kB / 0.9846 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.274e-05/0.2683, allocations: 19.42 kB / 0.9846 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of SimCode: time 3.1e-07/0.2683, allocations: 0 / 0.9846 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of Templates: time 0.004425/0.2728, allocations: 1.508 MB / 0.9861 GB, free: 20.71 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe 2>&1)