Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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: translateModel(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009237/0.0009236, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007848/0.007848, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.91/1.91, allocations: 205.4 MB / 222.5 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6834/0.6834, allocations: 95.62 MB / 366.4 MB, free: 10.24 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006056/0.0006059, allocations: 16 kB / 447.5 MB, free: 8.961 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3945, allocations: 70.33 MB / 0.5057 GB, free: 16.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0005712/0.3951, allocations: 243.9 kB / 0.5059 GB, free: 16.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007918/0.3959, allocations: 441.8 kB / 0.5063 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.288e-05/0.396, allocations: 0 / 0.5063 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.906e-05/0.396, allocations: 0 / 0.5063 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.301e-06/0.396, allocations: 0 / 0.5063 GB, free: 15.69 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Utilities/IO/Python27/Functions/exchange.mo:2:1-99:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.3965, allocations: 183.7 kB / 0.5065 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.745e-05/0.3966, allocations: 39.95 kB / 0.5065 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.632e-05/0.3967, allocations: 4 kB / 0.5065 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.149e-05/0.3967, allocations: 27.91 kB / 0.5066 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.54e-05/0.3967, allocations: 15.98 kB / 0.5066 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.3968, allocations: 7.938 kB / 0.5066 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.3969, allocations: 111.8 kB / 0.5067 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.397, allocations: 7.984 kB / 0.5067 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.854e-05/0.397, allocations: 45.62 kB / 0.5067 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.3972, allocations: 159.7 kB / 0.5069 GB, free: 15.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3972, allocations: 0 / 0.5069 GB, free: 15.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3972, allocations: 4 kB / 0.5069 GB, free: 15.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.3972, allocations: 0 / 0.5069 GB, free: 15.09 MB / 382.1 MB 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.0002851/0.3975, allocations: 381.1 kB / 0.5073 GB, free: 14.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.3976, allocations: 11.98 kB / 0.5073 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.3976, allocations: 4.938 kB / 0.5073 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.972e-05/0.3977, allocations: 166.4 kB / 0.5074 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.3977, allocations: 4.375 kB / 0.5074 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.3977, allocations: 4.375 kB / 0.5075 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.3979, allocations: 98.17 kB / 0.5075 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.3979, allocations: 4.125 kB / 0.5075 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.3979, allocations: 7.938 kB / 0.5076 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3979, allocations: 0 / 0.5076 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.53e-05/0.398, allocations: 43.95 kB / 0.5076 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001048/0.3981, allocations: 153.7 kB / 0.5077 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.085e-05/0.3982, allocations: 78.61 kB / 0.5078 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.798e-05/0.3983, allocations: 72.92 kB / 0.5079 GB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.3983, allocations: 7.984 kB / 0.5079 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.353e-05/0.3983, allocations: 30.56 kB / 0.5079 GB, free: 13.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.3983, allocations: 0 / 0.5079 GB, free: 13.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003243/0.3987, allocations: 223.2 kB / 0.5081 GB, free: 13.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.3987, allocations: 89.09 kB / 0.5082 GB, free: 13.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.139e-05/0.3987, allocations: 89.86 kB / 0.5083 GB, free: 13.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.3988, allocations: 29.7 kB / 0.5083 GB, free: 13.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.198e-05/0.3988, allocations: 84.14 kB / 0.5084 GB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.268e-05/0.3988, allocations: 19.78 kB / 0.5084 GB, free: 13.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.3989, allocations: 17.7 kB / 0.5085 GB, free: 13.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.95e-05/0.3989, allocations: 314.8 kB / 0.5088 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.409e-05/0.399, allocations: 35.97 kB / 0.5088 GB, free: 12.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-05/0.399, allocations: 43.95 kB / 0.5088 GB, free: 12.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.3991, allocations: 144.2 kB / 0.509 GB, free: 12.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3991, allocations: 3.938 kB / 0.509 GB, free: 12.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000182/0.3993, allocations: 179.2 kB / 0.5091 GB, free: 12.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.3994, allocations: 47.88 kB / 0.5092 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3994, allocations: 4.062 kB / 0.5092 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3994, allocations: 3.938 kB / 0.5092 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.3994, allocations: 0 / 0.5092 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.3994, allocations: 3.938 kB / 0.5092 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.3997, allocations: 15.98 kB / 0.5092 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.3997, allocations: 11.98 kB / 0.5092 GB, free: 12.45 MB / 382.1 MB 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 9.228e-05/0.3998, allocations: 155.5 kB / 0.5094 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.3998, allocations: 4 kB / 0.5094 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.748e-06/0.3999, allocations: 15.91 kB / 0.5094 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3999, allocations: 0 / 0.5094 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3999, allocations: 256 / 0.5094 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-06/0.3999, allocations: 0 / 0.5094 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.628e-05/0.4, allocations: 157.7 kB / 0.5095 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4, allocations: 4 kB / 0.5095 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.4, allocations: 0 / 0.5095 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.4, allocations: 3.984 kB / 0.5096 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.4, allocations: 15.92 kB / 0.5096 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4, allocations: 7.938 kB / 0.5096 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4, allocations: 0 / 0.5096 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.4002, allocations: 238.6 kB / 0.5098 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.633e-05/0.4003, allocations: 81.05 kB / 0.5099 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.4003, allocations: 11.92 kB / 0.5099 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.4005, allocations: 15.98 kB / 0.5099 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.316e-05/0.4005, allocations: 4 kB / 0.5099 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.4005, allocations: 11.98 kB / 0.5099 GB, free: 11.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.586e-05/0.4005, allocations: 79.28 kB / 0.51 GB, free: 11.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4005, allocations: 4.031 kB / 0.51 GB, free: 11.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002574/0.4008, allocations: 51.92 kB / 0.51 GB, free: 11.5 MB / 382.1 MB 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.0006412/0.4015, allocations: 290.5 kB / 0.5103 GB, free: 11.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002462/0.4017, allocations: 235.2 kB / 0.5106 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4017, allocations: 4.062 kB / 0.5106 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.4019, allocations: 175.3 kB / 0.5107 GB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.402, allocations: 8 kB / 0.5107 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002533/0.4023, allocations: 170.6 kB / 0.5109 GB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.846e-05/0.4024, allocations: 0.6809 MB / 0.5116 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.58e-06/0.4024, allocations: 4 kB / 0.5116 GB, free: 9.918 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.825e-06/0.4024, allocations: 7.438 kB / 0.5116 GB, free: 9.91 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4024, allocations: 4.062 kB / 0.5116 GB, free: 9.906 MB / 382.1 MB Notification: Performance of Templates: time 0.004635/0.407, allocations: 2.657 MB / 0.5142 GB, free: 7.27 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.sim & ./Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1) Environment - environmentSimulation: