Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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: translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.375/1.375, allocations: 251.9 MB / 266.9 MB, free: 11.08 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.001039/0.001039, allocations: 177.6 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0008281/0.0008285, allocations: 102.1 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003132, allocations: 8.938 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1897/0.19, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1691/0.3591, allocations: 134.7 MB / 1.032 GB, free: 9.102 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/0.3595, allocations: 87.94 kB / 1.032 GB, free: 9.016 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0443/0.4038, allocations: 10.91 MB / 1.042 GB, free: 14.06 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.266e-06/0.4039, allocations: 0 / 1.042 GB, free: 14.06 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.4039, allocations: 0 / 1.042 GB, free: 14.06 MB / 0.698 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.0006506/0.4046, allocations: 440.8 kB / 1.043 GB, free: 13.58 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.4046, allocations: 8.031 kB / 1.043 GB, free: 13.57 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.994e-05/0.4047, allocations: 11.91 kB / 1.043 GB, free: 13.56 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.4049, allocations: 183 kB / 1.043 GB, free: 13.34 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.4049, allocations: 0 / 1.043 GB, free: 13.34 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.405, allocations: 8 kB / 1.043 GB, free: 13.33 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003079/0.4053, allocations: 121.5 kB / 1.043 GB, free: 13.21 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.4053, allocations: 0 / 1.043 GB, free: 13.21 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.4054, allocations: 4 kB / 1.043 GB, free: 13.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.4054, allocations: 0 / 1.043 GB, free: 13.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.4055, allocations: 59.94 kB / 1.043 GB, free: 13.14 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002148/0.4058, allocations: 169.6 kB / 1.043 GB, free: 12.93 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.406, allocations: 110.6 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-06/0.406, allocations: 0 / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.4061, allocations: 38.53 kB / 1.043 GB, free: 12.77 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.173e-06/0.4061, allocations: 0 / 1.043 GB, free: 12.77 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0007776/0.4069, allocations: 356.3 kB / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.407, allocations: 93.09 kB / 1.044 GB, free: 12.28 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.4071, allocations: 120.8 kB / 1.044 GB, free: 12.15 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.4072, allocations: 29.7 kB / 1.044 GB, free: 12.12 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.291e-05/0.4072, allocations: 88.14 kB / 1.044 GB, free: 12.03 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.4073, allocations: 19.75 kB / 1.044 GB, free: 12.01 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.911e-05/0.4073, allocations: 0 / 1.044 GB, free: 12.01 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.4075, allocations: 322.8 kB / 1.044 GB, free: 11.68 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.4077, allocations: 59.95 kB / 1.044 GB, free: 11.62 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.4078, allocations: 63.94 kB / 1.045 GB, free: 11.56 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.408, allocations: 85.84 kB / 1.045 GB, free: 11.47 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.408, allocations: 8.031 kB / 1.045 GB, free: 11.46 MB / 0.698 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004916/0.4085, allocations: 215.7 kB / 1.045 GB, free: 11.24 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.419e-05/0.4086, allocations: 45.69 kB / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.4086, allocations: 0 / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.4087, allocations: 0 / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.4087, allocations: 3.938 kB / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.4087, allocations: 0 / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.409, allocations: 19.89 kB / 1.045 GB, free: 11.17 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.108e-05/0.4091, allocations: 15.98 kB / 1.045 GB, free: 11.15 MB / 0.698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002266/0.4093, allocations: 179.4 kB / 1.045 GB, free: 10.96 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.591e-05/0.4094, allocations: 11.91 kB / 1.045 GB, free: 10.95 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.454e-05/0.4094, allocations: 4.375 kB / 1.045 GB, free: 10.95 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4094, allocations: 0 / 1.045 GB, free: 10.95 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4094, allocations: 0 / 1.045 GB, free: 10.95 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4094, allocations: 0 / 1.045 GB, free: 10.95 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.4096, allocations: 181.6 kB / 1.045 GB, free: 10.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4097, allocations: 0 / 1.045 GB, free: 10.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.4097, allocations: 0 / 1.045 GB, free: 10.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4097, allocations: 0 / 1.045 GB, free: 10.72 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.4097, allocations: 15.98 kB / 1.045 GB, free: 10.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4097, allocations: 7.938 kB / 1.045 GB, free: 10.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4098, allocations: 0 / 1.045 GB, free: 10.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005936/0.4104, allocations: 278.8 kB / 1.046 GB, free: 10.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/0.4104, allocations: 92.95 kB / 1.046 GB, free: 10.29 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.105e-05/0.4105, allocations: 8 kB / 1.046 GB, free: 10.29 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/0.4108, allocations: 11.98 kB / 1.046 GB, free: 10.27 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.4109, allocations: 16.02 kB / 1.046 GB, free: 10.26 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.533e-05/0.4109, allocations: 8 kB / 1.046 GB, free: 10.25 MB / 0.698 GB Notification: Performance of sorting global known variables: time 7.242e-05/0.411, allocations: 95.27 kB / 1.046 GB, free: 10.16 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.1e-07/0.411, allocations: 0 / 1.046 GB, free: 10.16 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006381/0.4117, allocations: 107.9 kB / 1.046 GB, free: 10.05 MB / 0.698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001185/0.4129, allocations: 425.1 kB / 1.046 GB, free: 9.727 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005658/0.4134, allocations: 291.3 kB / 1.047 GB, free: 9.43 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4135, allocations: 0 / 1.047 GB, free: 9.43 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003513/0.4138, allocations: 215.3 kB / 1.047 GB, free: 9.207 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.414, allocations: 4 kB / 1.047 GB, free: 9.203 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.4156, allocations: 0.522 MB / 1.047 GB, free: 8.652 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.4159, allocations: 0.6848 MB / 1.048 GB, free: 7.941 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001024/0.4161, allocations: 47.88 kB / 1.048 GB, free: 7.895 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.189e-05/0.4161, allocations: 15.42 kB / 1.048 GB, free: 7.879 MB / 0.698 GB Notification: Performance of SimCode: time 2.274e-06/0.4161, allocations: 0 / 1.048 GB, free: 7.879 MB / 0.698 GB Notification: Performance of Templates: time 0.01005/0.4262, allocations: 3.844 MB / 1.052 GB, free: 4.066 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches