Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.555/1.555, allocations: 292.3 MB / 308.1 MB, free: 4.254 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.001331/0.001331, allocations: 185.5 kB / 376.9 MB, free: 1.758 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.321/1.321, allocations: 205 MB / 0.6354 GB, free: 9.746 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009287/0.0009286, allocations: 100.4 kB / 0.748 GB, free: 61.16 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000933/0.000933, allocations: 55.92 kB / 0.8704 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2187, allocations: 114.5 MB / 0.9822 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.001922/0.2207, allocations: 0.6065 MB / 0.9828 GB, free: 9.73 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001674/0.2224, allocations: 1.21 MB / 0.984 GB, free: 8.512 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.72e-05/0.2224, allocations: 0 / 0.984 GB, free: 8.512 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 8.943e-05/0.2226, allocations: 7.984 kB / 0.984 GB, free: 8.504 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 4.606e-05/0.2226, allocations: 3.938 kB / 0.984 GB, free: 8.5 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.0005832/0.2232, allocations: 247.6 kB / 0.9843 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 9.835e-05/0.2233, allocations: 67.94 kB / 0.9843 GB, free: 8.191 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.878e-05/0.2233, allocations: 0 / 0.9843 GB, free: 8.191 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 4.716e-05/0.2234, allocations: 43.84 kB / 0.9844 GB, free: 8.148 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.547e-05/0.2235, allocations: 39.89 kB / 0.9844 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.2235, allocations: 4 kB / 0.9844 GB, free: 8.105 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003661/0.2239, allocations: 175.7 kB / 0.9846 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.205e-05/0.2239, allocations: 15.92 kB / 0.9846 GB, free: 7.918 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 7.057e-05/0.224, allocations: 39.78 kB / 0.9846 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.2243, allocations: 251.6 kB / 0.9849 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2243, allocations: 0 / 0.9849 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.82e-07/0.2243, allocations: 0 / 0.9849 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.2244, allocations: 0 / 0.9849 GB, free: 7.633 MB / 0.7136 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.0004508/0.2248, allocations: 441.4 kB / 0.9853 GB, free: 7.148 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2249, allocations: 8.031 kB / 0.9853 GB, free: 7.141 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.09e-05/0.2249, allocations: 16.78 kB / 0.9853 GB, free: 7.125 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.225, allocations: 176.4 kB / 0.9855 GB, free: 6.914 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.2251, allocations: 4.375 kB / 0.9855 GB, free: 6.91 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.2251, allocations: 8.375 kB / 0.9855 GB, free: 6.902 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.2253, allocations: 125.7 kB / 0.9856 GB, free: 6.773 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.2253, allocations: 3.938 kB / 0.9856 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.2254, allocations: 8 kB / 0.9856 GB, free: 6.762 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2254, allocations: 0 / 0.9856 GB, free: 6.762 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.2255, allocations: 59.94 kB / 0.9857 GB, free: 6.703 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.2256, allocations: 165.7 kB / 0.9858 GB, free: 6.492 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.2258, allocations: 114.5 kB / 0.9859 GB, free: 6.371 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.2259, allocations: 104.9 kB / 0.986 GB, free: 6.266 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 6.772e-06/0.2259, allocations: 0 / 0.986 GB, free: 6.266 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.226, allocations: 38.5 kB / 0.9861 GB, free: 6.219 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 8.52e-07/0.226, allocations: 0 / 0.9861 GB, free: 6.219 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0004647/0.2264, allocations: 291 kB / 0.9864 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.2265, allocations: 89.09 kB / 0.9864 GB, free: 5.816 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.2266, allocations: 129.7 kB / 0.9866 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.2266, allocations: 29.7 kB / 0.9866 GB, free: 5.645 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.465e-05/0.2267, allocations: 84.14 kB / 0.9867 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.742e-05/0.2267, allocations: 15.8 kB / 0.9867 GB, free: 5.543 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.618e-05/0.2268, allocations: 41.7 kB / 0.9867 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.2269, allocations: 318.8 kB / 0.987 GB, free: 5.176 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.203e-05/0.227, allocations: 59.95 kB / 0.9871 GB, free: 5.117 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.397e-05/0.2271, allocations: 63.94 kB / 0.9872 GB, free: 5.055 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.2273, allocations: 184.2 kB / 0.9873 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2273, allocations: 0 / 0.9873 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003022/0.2276, allocations: 231.1 kB / 0.9875 GB, free: 4.621 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.129e-05/0.2276, allocations: 47.88 kB / 0.9876 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.2277, allocations: 0 / 0.9876 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.2277, allocations: 0 / 0.9876 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.91e-07/0.2277, allocations: 0 / 0.9876 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2277, allocations: 0 / 0.9876 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.228, allocations: 31.81 kB / 0.9876 GB, free: 4.539 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.228, allocations: 11.98 kB / 0.9876 GB, free: 4.527 MB / 0.7136 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.0001286/0.2282, allocations: 167.5 kB / 0.9878 GB, free: 4.348 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.2282, allocations: 15.84 kB / 0.9878 GB, free: 4.332 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.675e-05/0.2282, allocations: 12.36 kB / 0.9878 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2282, allocations: 0 / 0.9878 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2283, allocations: 4.188 kB / 0.9878 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.2283, allocations: 0 / 0.9878 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.2284, allocations: 178 kB / 0.988 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2284, allocations: 0 / 0.988 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.774e-06/0.2284, allocations: 3.938 kB / 0.988 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2284, allocations: 4 kB / 0.988 GB, free: 4.082 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.2284, allocations: 15.92 kB / 0.988 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2284, allocations: 0 / 0.988 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2284, allocations: 0 / 0.988 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007159/0.2292, allocations: 0.9261 MB / 0.9889 GB, free: 3.074 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.696e-05/0.2292, allocations: 81.02 kB / 0.989 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.2292, allocations: 11.98 kB / 0.989 GB, free: 2.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.2295, allocations: 20.02 kB / 0.989 GB, free: 2.945 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.2295, allocations: 7.984 kB / 0.989 GB, free: 2.938 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.2295, allocations: 16 kB / 0.9891 GB, free: 2.922 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.817e-05/0.2296, allocations: 99.19 kB / 0.9891 GB, free: 2.824 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2296, allocations: 0 / 0.9891 GB, free: 2.824 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004178/0.23, allocations: 83.92 kB / 0.9892 GB, free: 2.742 MB / 0.7136 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.002944/0.233, allocations: 330.7 kB / 0.9895 GB, free: 2.453 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003739/0.2334, allocations: 287.2 kB / 0.9898 GB, free: 2.16 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2334, allocations: 0 / 0.9898 GB, free: 2.16 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.2336, allocations: 203.3 kB / 0.99 GB, free: 1.949 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.2338, allocations: 14.02 kB / 0.99 GB, free: 1.938 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/0.2344, allocations: 429.3 kB / 0.9904 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.2347, allocations: 0.6809 MB / 0.9911 GB, free: 0.7695 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 7.731e-05/0.2348, allocations: 51.86 kB / 0.9911 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.271e-05/0.2348, allocations: 7.438 kB / 0.9912 GB, free: 0.7109 MB / 0.7136 GB Notification: Performance of SimCode: time 4.01e-07/0.2348, allocations: 4 kB / 0.9912 GB, free: 0.707 MB / 0.7136 GB Notification: Performance of Templates: time 0.006424/0.2412, allocations: 3.727 MB / 0.9948 GB, free: 13.01 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.sim & ./Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe 2>&1)