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.001191/0.001191, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 194.8 kB / 16.14 MB, free: 6.707 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.218/1.218, allocations: 205.1 MB / 222 MB, free: 4.785 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.534/1.534, allocations: 292.3 MB / 0.5484 GB, free: 13.63 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.001266/0.001266, allocations: 67.42 kB / 0.671 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1719, allocations: 114.5 MB / 0.7828 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001507/0.1735, allocations: 0.6182 MB / 0.7834 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001458/0.1749, allocations: 1.27 MB / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.311e-05/0.175, allocations: 0 / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.889e-05/0.1751, allocations: 11.97 kB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.628e-05/0.1751, allocations: 0 / 0.7847 GB, free: 11.98 MB / 0.6075 GB [/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.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004926/0.1756, allocations: 267.4 kB / 0.7849 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.425e-05/0.1757, allocations: 75.8 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.1757, allocations: 4 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.016e-05/0.1758, allocations: 43.89 kB / 0.785 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.53e-05/0.1758, allocations: 35.86 kB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.1759, allocations: 4 kB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003527/0.1762, allocations: 215.7 kB / 0.7853 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.1762, allocations: 8 kB / 0.7853 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.213e-05/0.1763, allocations: 35.78 kB / 0.7853 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.1766, allocations: 267.5 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1766, allocations: 0 / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.21e-07/0.1766, allocations: 0 / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.708e-06/0.1766, allocations: 4 kB / 0.7856 GB, free: 11.04 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.0003471/0.177, allocations: 453.2 kB / 0.786 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.177, allocations: 12.03 kB / 0.786 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.1771, allocations: 34.75 kB / 0.7861 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.154e-05/0.1771, allocations: 4.938 kB / 0.7861 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.1772, allocations: 184.3 kB / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.1772, allocations: 4.375 kB / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.1772, allocations: 4.375 kB / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.1774, allocations: 129.5 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.779e-06/0.1775, allocations: 0 / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.1775, allocations: 0 / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-06/0.1775, allocations: 0 / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.956e-05/0.1776, allocations: 67.88 kB / 0.7864 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.1777, allocations: 157.7 kB / 0.7866 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.1779, allocations: 122.5 kB / 0.7867 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.178, allocations: 100.9 kB / 0.7868 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 6.252e-06/0.178, allocations: 3.938 kB / 0.7868 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.178, allocations: 30.56 kB / 0.7868 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.178, allocations: 4 kB / 0.7868 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004326/0.1785, allocations: 295.2 kB / 0.7871 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.1785, allocations: 89.14 kB / 0.7872 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.047e-05/0.1786, allocations: 126 kB / 0.7873 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.1786, allocations: 29.7 kB / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.919e-05/0.1786, allocations: 84.14 kB / 0.7874 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/0.1787, allocations: 19.89 kB / 0.7875 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.871e-05/0.1788, allocations: 45.62 kB / 0.7875 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.1789, allocations: 318.8 kB / 0.7878 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.186e-05/0.1789, allocations: 63.95 kB / 0.7879 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.094e-05/0.179, allocations: 67.94 kB / 0.7879 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.1792, allocations: 176.2 kB / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1792, allocations: 3.984 kB / 0.7881 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002918/0.1795, allocations: 235 kB / 0.7883 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.1796, allocations: 41.69 kB / 0.7884 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-06/0.1796, allocations: 0 / 0.7884 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.536e-06/0.1796, allocations: 7.984 kB / 0.7884 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1796, allocations: 0 / 0.7884 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.1796, allocations: 0 / 0.7884 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.1799, allocations: 27.88 kB / 0.7884 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-05/0.1799, allocations: 20 kB / 0.7884 GB, free: 7.863 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.0001158/0.18, allocations: 164.2 kB / 0.7886 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.918e-05/0.1801, allocations: 15.84 kB / 0.7886 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.054e-05/0.1801, allocations: 8.359 kB / 0.7886 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1801, allocations: 4 kB / 0.7886 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.1801, allocations: 0 / 0.7886 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.1801, allocations: 0 / 0.7886 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.488e-05/0.1802, allocations: 165.6 kB / 0.7888 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.1802, allocations: 3.938 kB / 0.7888 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.462e-06/0.1802, allocations: 8 kB / 0.7888 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.1802, allocations: 3.938 kB / 0.7888 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1802, allocations: 15.98 kB / 0.7888 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1802, allocations: 0 / 0.7888 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1803, allocations: 0 / 0.7888 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.1806, allocations: 294.6 kB / 0.7891 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.1806, allocations: 85.05 kB / 0.7891 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.1807, allocations: 4 kB / 0.7892 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.1809, allocations: 24 kB / 0.7892 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.282e-05/0.1809, allocations: 4 kB / 0.7892 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.1809, allocations: 15.98 kB / 0.7892 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.634e-05/0.181, allocations: 103.2 kB / 0.7893 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.181, allocations: 0 / 0.7893 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002901/0.1813, allocations: 87.97 kB / 0.7894 GB, free: 6.77 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.3537/0.535, allocations: 1.12 MB / 0.7905 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004628/0.5355, allocations: 283.3 kB / 0.7907 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.5355, allocations: 0 / 0.7907 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.5357, allocations: 211.3 kB / 0.7909 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.5359, allocations: 8 kB / 0.7909 GB, free: 5.203 MB / 0.6075 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008268/0.5368, allocations: 384.1 kB / 0.7913 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.537, allocations: 0.6925 MB / 0.792 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.562e-05/0.5371, allocations: 52.11 kB / 0.792 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.359e-05/0.5372, allocations: 11.44 kB / 0.7921 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of SimCode: time 3.61e-07/0.5372, allocations: 4 kB / 0.7921 GB, free: 4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.168/1.705, allocations: 4.958 MB / 0.7969 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002559/1.705, allocations: 291 kB / 0.7972 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/3.445, allocations: 0 / 0.7972 GB, free: 14.84 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --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)