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.511/1.511, allocations: 249.5 MB / 257 MB, free: 6.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 180.4 kB / 316.3 MB, free: 3.191 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.943/1.943, allocations: 205.3 MB / 0.5671 GB, free: 15.76 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.001172/0.001172, allocations: 90.47 kB / 0.6714 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.912e-05/1.914e-05, allocations: 7.984 kB / 0.7814 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2474, allocations: 106.3 MB / 0.8852 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7586/1.006, allocations: 134.8 MB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/1.006, allocations: 93.67 kB / 1.017 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02824/1.035, allocations: 10.72 MB / 1.027 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.322e-06/1.035, allocations: 0 / 1.027 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.222e-06/1.035, allocations: 0 / 1.027 GB, free: 10.03 MB / 0.6511 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.0005408/1.035, allocations: 423.9 kB / 1.028 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/1.035, allocations: 11.97 kB / 1.028 GB, free: 9.559 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/1.035, allocations: 15.91 kB / 1.028 GB, free: 9.543 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/1.035, allocations: 177.1 kB / 1.028 GB, free: 9.336 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/1.035, allocations: 8 kB / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/1.036, allocations: 4 kB / 1.028 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001349/1.036, allocations: 55.77 kB / 1.028 GB, free: 9.277 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/1.036, allocations: 116.8 kB / 1.028 GB, free: 9.172 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/1.036, allocations: 0 / 1.028 GB, free: 9.172 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/1.036, allocations: 4 kB / 1.028 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/1.036, allocations: 0 / 1.028 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001529/1.036, allocations: 142.2 kB / 1.028 GB, free: 8.992 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/1.036, allocations: 118.6 kB / 1.029 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/1.036, allocations: 94.16 kB / 1.029 GB, free: 8.84 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/1.036, allocations: 0 / 1.029 GB, free: 8.84 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/1.036, allocations: 34.56 kB / 1.029 GB, free: 8.797 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/1.036, allocations: 3.938 kB / 1.029 GB, free: 8.793 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6): time 0.0005126/1.037, allocations: 185.8 kB / 1.029 GB, free: 8.625 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.458e-05/1.037, allocations: 89.14 kB / 1.029 GB, free: 8.52 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/1.037, allocations: 123.2 kB / 1.029 GB, free: 8.398 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/1.037, allocations: 25.7 kB / 1.029 GB, free: 8.367 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.338e-05/1.037, allocations: 87.33 kB / 1.029 GB, free: 8.281 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.216e-05/1.037, allocations: 15.38 kB / 1.029 GB, free: 8.27 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/1.037, allocations: 7.938 kB / 1.029 GB, free: 8.262 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001422/1.037, allocations: 322.4 kB / 1.029 GB, free: 7.941 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.776e-05/1.037, allocations: 50.66 kB / 1.029 GB, free: 7.898 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.102e-05/1.038, allocations: 57.7 kB / 1.03 GB, free: 7.852 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/1.038, allocations: 74.47 kB / 1.03 GB, free: 7.785 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/1.038, allocations: 0 / 1.03 GB, free: 7.785 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003472/1.038, allocations: 181.7 kB / 1.03 GB, free: 7.621 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.886e-05/1.038, allocations: 43.72 kB / 1.03 GB, free: 7.574 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/1.038, allocations: 7.969 kB / 1.03 GB, free: 7.566 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/1.038, allocations: 0 / 1.03 GB, free: 7.566 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/1.038, allocations: 0 / 1.03 GB, free: 7.566 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/1.038, allocations: 7.984 kB / 1.03 GB, free: 7.559 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/1.038, allocations: 15.89 kB / 1.03 GB, free: 7.543 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.594e-05/1.039, allocations: 14.75 kB / 1.03 GB, free: 7.531 MB / 0.6511 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 () * 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.0001403/1.039, allocations: 158.6 kB / 1.03 GB, free: 7.363 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/1.039, allocations: 11.91 kB / 1.03 GB, free: 7.352 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/1.039, allocations: 12.25 kB / 1.03 GB, free: 7.34 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/1.039, allocations: 0 / 1.03 GB, free: 7.34 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.039, allocations: 3.938 kB / 1.03 GB, free: 7.336 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/1.039, allocations: 0 / 1.03 GB, free: 7.336 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/1.039, allocations: 149.3 kB / 1.03 GB, free: 7.156 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/1.039, allocations: 8.375 kB / 1.03 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/1.039, allocations: 0 / 1.03 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/1.039, allocations: 11.95 kB / 1.03 GB, free: 7.137 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/1.039, allocations: 15.55 kB / 1.03 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/1.039, allocations: 3.938 kB / 1.03 GB, free: 7.121 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.039, allocations: 0 / 1.03 GB, free: 7.121 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/1.039, allocations: 234 kB / 1.03 GB, free: 6.898 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.725e-05/1.04, allocations: 87.75 kB / 1.031 GB, free: 6.797 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.62e-05/1.04, allocations: 7.953 kB / 1.031 GB, free: 6.789 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/1.04, allocations: 20.02 kB / 1.031 GB, free: 6.77 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/1.04, allocations: 10.98 kB / 1.031 GB, free: 6.762 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/1.04, allocations: 12 kB / 1.031 GB, free: 6.75 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.142e-05/1.04, allocations: 93.52 kB / 1.031 GB, free: 6.664 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.41e-07/1.04, allocations: 0 / 1.031 GB, free: 6.664 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004435/1.04, allocations: 114.8 kB / 1.031 GB, free: 6.559 MB / 0.6511 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]) * 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.0008741/1.041, allocations: 389.5 kB / 1.031 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003578/1.042, allocations: 272.2 kB / 1.031 GB, free: 6.035 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/1.042, allocations: 0 / 1.031 GB, free: 6.035 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001947/1.042, allocations: 210.6 kB / 1.032 GB, free: 5.879 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/1.042, allocations: 8.125 kB / 1.032 GB, free: 5.871 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/1.043, allocations: 458.8 kB / 1.032 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/1.043, allocations: 0.6923 MB / 1.033 GB, free: 4.727 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.046e-05/1.043, allocations: 47.88 kB / 1.033 GB, free: 4.68 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.158e-05/1.043, allocations: 11.44 kB / 1.033 GB, free: 4.672 MB / 0.6511 GB Notification: Performance of SimCode: time 1.883e-06/1.043, allocations: 0 / 1.033 GB, free: 4.672 MB / 0.6511 GB Notification: Performance of Templates: time 0.006723/1.05, allocations: 3.797 MB / 1.037 GB, free: 0.918 MB / 0.6511 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