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.001094/0.001094, allocations: 109.4 kB / 15.69 MB, free: 128 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.0009835/0.0009834, allocations: 186.5 kB / 16.62 MB, free: 6.582 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.342/1.342, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.643/1.643, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001491/0.001491, allocations: 71.55 kB / 0.6718 GB, free: 26.07 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2566, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001978/0.2586, allocations: 0.5569 MB / 0.7842 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001775/0.2604, allocations: 1.27 MB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.2604, allocations: 0 / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001026/0.2605, allocations: 11.94 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.231e-05/0.2606, allocations: 0 / 0.7854 GB, free: 11.43 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.0007071/0.2613, allocations: 291.2 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.2615, allocations: 79.81 kB / 0.7858 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.472e-05/0.2615, allocations: 4 kB / 0.7858 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.521e-05/0.2616, allocations: 39.89 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.648e-05/0.2617, allocations: 43.84 kB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.2617, allocations: 4 kB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000394/0.2621, allocations: 231.7 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.755e-05/0.2621, allocations: 11.92 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.2622, allocations: 27.86 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.2625, allocations: 279.5 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2625, allocations: 0 / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.023e-06/0.2626, allocations: 0 / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2626, allocations: 0 / 0.7864 GB, free: 10.43 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.0005048/0.2631, allocations: 449.3 kB / 0.7868 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.2631, allocations: 12.03 kB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.391e-05/0.2632, allocations: 34.73 kB / 0.7869 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.2632, allocations: 8.938 kB / 0.7869 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.2634, allocations: 180.3 kB / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.2634, allocations: 384 / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.2634, allocations: 8.375 kB / 0.7871 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.2637, allocations: 129.5 kB / 0.7872 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.2637, allocations: 4 kB / 0.7872 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.2637, allocations: 3.938 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2637, allocations: 3.938 kB / 0.7872 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.2638, allocations: 59.95 kB / 0.7873 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.264, allocations: 161.7 kB / 0.7874 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.2642, allocations: 122.5 kB / 0.7875 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.2643, allocations: 100.9 kB / 0.7876 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.2643, allocations: 3.938 kB / 0.7876 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.2644, allocations: 34.55 kB / 0.7877 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.2644, allocations: 0 / 0.7877 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0005248/0.2649, allocations: 299.1 kB / 0.7879 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.265, allocations: 89.09 kB / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.2651, allocations: 129.8 kB / 0.7882 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.2651, allocations: 29.7 kB / 0.7882 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.2652, allocations: 84.14 kB / 0.7883 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.603e-05/0.2653, allocations: 11.81 kB / 0.7883 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/0.2653, allocations: 45.69 kB / 0.7883 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.2654, allocations: 314.8 kB / 0.7886 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.352e-05/0.2655, allocations: 59.94 kB / 0.7887 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.816e-05/0.2657, allocations: 67.94 kB / 0.7887 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.2659, allocations: 184.2 kB / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2659, allocations: 0 / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003175/0.2662, allocations: 235.1 kB / 0.7891 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.825e-05/0.2663, allocations: 41.69 kB / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2663, allocations: 0 / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2663, allocations: 4 kB / 0.7892 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.2663, allocations: 0 / 0.7892 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.2663, allocations: 0 / 0.7892 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003076/0.2666, allocations: 23.83 kB / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.2667, allocations: 24.02 kB / 0.7892 GB, free: 7.262 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.0001427/0.2668, allocations: 163.5 kB / 0.7894 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.117e-05/0.2669, allocations: 15.84 kB / 0.7894 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.309e-05/0.2669, allocations: 4.375 kB / 0.7894 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2669, allocations: 384 / 0.7894 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2669, allocations: 4 kB / 0.7894 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2669, allocations: 3.984 kB / 0.7894 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001236/0.267, allocations: 161.7 kB / 0.7896 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.267, allocations: 7.875 kB / 0.7896 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.004e-06/0.267, allocations: 7.938 kB / 0.7896 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2671, allocations: 11.92 kB / 0.7896 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.2671, allocations: 12.25 kB / 0.7896 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2671, allocations: 4 kB / 0.7896 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2671, allocations: 0 / 0.7896 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003899/0.2675, allocations: 290.6 kB / 0.7899 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.033e-05/0.2675, allocations: 85.05 kB / 0.79 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.2676, allocations: 4 kB / 0.79 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.2678, allocations: 24 kB / 0.79 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.722e-05/0.2678, allocations: 4 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.2678, allocations: 15.98 kB / 0.79 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.706e-05/0.2679, allocations: 99.27 kB / 0.7901 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2679, allocations: 0 / 0.7901 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003241/0.2682, allocations: 79.98 kB / 0.7902 GB, free: 6.176 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.006015/0.2743, allocations: 1.14 MB / 0.7913 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004548/0.2747, allocations: 283.3 kB / 0.7916 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2748, allocations: 0 / 0.7916 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.275, allocations: 211.3 kB / 0.7918 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.2752, allocations: 8 kB / 0.7918 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000632/0.2758, allocations: 326.1 kB / 0.7921 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.2761, allocations: 0.6807 MB / 0.7928 GB, free: 3.52 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.456e-05/0.2761, allocations: 51.86 kB / 0.7928 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.651e-05/0.2762, allocations: 11.44 kB / 0.7928 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of SimCode: time 2.11e-07/0.2762, allocations: 0 / 0.7928 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.2984, allocations: 5.157 MB / 0.7978 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.962/7.26, allocations: 9.312 kB / 0.7979 GB, free: 14.44 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)