Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 2.433/2.433, allocations: 252 MB / 267.3 MB, free: 10.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001329/0.001329, allocations: 168.6 kB / 327 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.537/2.537, allocations: 205.4 MB / 0.578 GB, free: 20.17 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 93.11 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005357/0.0005358, allocations: 8.812 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3301, allocations: 106.3 MB / 0.9009 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001293/0.3315, allocations: 282.6 kB / 0.9012 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002999/0.3346, allocations: 1.265 MB / 0.9024 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.822e-05/0.3346, allocations: 0 / 0.9024 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.3348, allocations: 12 kB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.533e-05/0.3349, allocations: 3.938 kB / 0.9025 GB, free: 61.84 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.001134/0.336, allocations: 255.5 kB / 0.9027 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001729/0.3362, allocations: 75.88 kB / 0.9028 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 7.783e-05/0.3363, allocations: 4 kB / 0.9028 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.011e-05/0.3364, allocations: 39.91 kB / 0.9028 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.163e-05/0.3365, allocations: 43.83 kB / 0.9029 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.3366, allocations: 4 kB / 0.9029 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007128/0.3373, allocations: 211.6 kB / 0.9031 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.675e-05/0.3374, allocations: 7.984 kB / 0.9031 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.538e-05/0.3375, allocations: 57.56 kB / 0.9031 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006481/0.3381, allocations: 275.5 kB / 0.9034 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.3382, allocations: 0 / 0.9034 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.316e-06/0.3382, allocations: 0 / 0.9034 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.752e-06/0.3382, allocations: 0 / 0.9034 GB, free: 60.88 MB / 0.6042 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.0005403/0.3388, allocations: 421.2 kB / 0.9038 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.3388, allocations: 8.031 kB / 0.9038 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.505e-05/0.3389, allocations: 38.73 kB / 0.9038 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.305e-05/0.339, allocations: 12.84 kB / 0.9038 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.3391, allocations: 176.4 kB / 0.904 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.3392, allocations: 4.375 kB / 0.904 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.3392, allocations: 12.38 kB / 0.904 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.3396, allocations: 129.4 kB / 0.9041 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3396, allocations: 0 / 0.9041 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.3396, allocations: 7.984 kB / 0.9042 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.3397, allocations: 0 / 0.9042 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.3398, allocations: 59.89 kB / 0.9042 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001831/0.34, allocations: 165.9 kB / 0.9044 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.3403, allocations: 114.6 kB / 0.9045 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.3405, allocations: 104.9 kB / 0.9046 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.125e-06/0.3405, allocations: 3.938 kB / 0.9046 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.3405, allocations: 34.5 kB / 0.9046 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.324e-06/0.3406, allocations: 0 / 0.9046 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0007904/0.3414, allocations: 295.1 kB / 0.9049 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.3414, allocations: 89.09 kB / 0.905 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.3416, allocations: 121.8 kB / 0.9051 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.3416, allocations: 37.72 kB / 0.9051 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.42e-05/0.3417, allocations: 84.14 kB / 0.9052 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.26e-05/0.3418, allocations: 15.75 kB / 0.9052 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.3418, allocations: 7.938 kB / 0.9052 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.689e-05/0.3419, allocations: 318.8 kB / 0.9055 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.342, allocations: 59.95 kB / 0.9056 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.3422, allocations: 63.88 kB / 0.9057 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/0.3425, allocations: 180.2 kB / 0.9058 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3425, allocations: 0 / 0.9058 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004817/0.343, allocations: 235.2 kB / 0.9061 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.664e-05/0.3431, allocations: 41.69 kB / 0.9061 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3431, allocations: 4 kB / 0.9061 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.3432, allocations: 0 / 0.9061 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-06/0.3432, allocations: 0 / 0.9061 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3432, allocations: 0 / 0.9061 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004698/0.3437, allocations: 23.88 kB / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.845e-05/0.3438, allocations: 16 kB / 0.9061 GB, free: 57.78 MB / 0.6042 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 (yI1[1],yI2[1],yI2[2]) * 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.0001731/0.3439, allocations: 167.5 kB / 0.9063 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.344, allocations: 15.84 kB / 0.9063 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.261e-05/0.344, allocations: 12.36 kB / 0.9063 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3441, allocations: 3.938 kB / 0.9063 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3441, allocations: 256 / 0.9063 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.3441, allocations: 384 / 0.9063 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.3442, allocations: 173.6 kB / 0.9065 GB, free: 57.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3443, allocations: 3.938 kB / 0.9065 GB, free: 57.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.3443, allocations: 0 / 0.9065 GB, free: 57.35 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3443, allocations: 3.938 kB / 0.9065 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.3443, allocations: 12 kB / 0.9065 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3443, allocations: 7.984 kB / 0.9065 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3443, allocations: 0 / 0.9065 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005838/0.3449, allocations: 290.6 kB / 0.9068 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.258e-05/0.345, allocations: 96.88 kB / 0.9069 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.228e-05/0.3451, allocations: 4 kB / 0.9069 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/0.3454, allocations: 23.97 kB / 0.9069 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.3455, allocations: 4 kB / 0.9069 GB, free: 56.87 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.684e-05/0.3455, allocations: 20.02 kB / 0.9069 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.381e-05/0.3456, allocations: 95.2 kB / 0.907 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.1e-07/0.3456, allocations: 0 / 0.907 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0006323/0.3463, allocations: 91.92 kB / 0.9071 GB, free: 56.67 MB / 0.6042 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.005184/0.3515, allocations: 1.117 MB / 0.9082 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006283/0.3521, allocations: 287.3 kB / 0.9085 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.3522, allocations: 0 / 0.9085 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.3525, allocations: 219.2 kB / 0.9087 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.3528, allocations: 12.88 kB / 0.9087 GB, free: 55.09 MB / 0.6042 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.001265/0.3541, allocations: 388.3 kB / 0.9091 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.3543, allocations: 0.6809 MB / 0.9097 GB, free: 53.96 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001081/0.3544, allocations: 51.86 kB / 0.9098 GB, free: 53.91 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.625e-05/0.3544, allocations: 15.44 kB / 0.9098 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of SimCode: time 1.152e-06/0.3545, allocations: 0 / 0.9098 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4102/0.7647, allocations: 4.79 MB / 0.9145 GB, free: 49.27 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002865/0.7651, allocations: 317.9 kB / 0.9148 GB, free: 48.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.271/3.036, allocations: 0 / 0.9148 GB, free: 48.88 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange.fmu > Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1)