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.474/1.474, allocations: 249.3 MB / 261.9 MB, free: 6.02 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.001232/0.001232, allocations: 176.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.2 MB / 0.572 GB, free: 10.58 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.0009163/0.0009164, allocations: 82.53 kB / 0.6764 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.999e-05/4.015e-05, allocations: 7.984 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2106, allocations: 106.3 MB / 0.8918 GB, free: 6.645 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7615/0.9721, allocations: 134.6 MB / 1.023 GB, free: 176 kB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/0.9725, allocations: 85.69 kB / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02927/1.002, allocations: 10.73 MB / 1.034 GB, free: 7.27 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.194e-06/1.002, allocations: 0 / 1.034 GB, free: 7.27 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.188e-05/1.002, allocations: 4 kB / 1.034 GB, free: 7.266 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.0005212/1.002, allocations: 426 kB / 1.034 GB, free: 6.805 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/1.002, allocations: 8.031 kB / 1.034 GB, free: 6.797 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.945e-05/1.003, allocations: 11.91 kB / 1.034 GB, free: 6.785 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/1.003, allocations: 176.7 kB / 1.034 GB, free: 6.578 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/1.003, allocations: 4 kB / 1.034 GB, free: 6.574 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.723e-05/1.003, allocations: 8 kB / 1.034 GB, free: 6.566 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/1.003, allocations: 124.9 kB / 1.035 GB, free: 6.449 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/1.003, allocations: 0 / 1.035 GB, free: 6.449 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/1.003, allocations: 4 kB / 1.035 GB, free: 6.445 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/1.003, allocations: 0 / 1.035 GB, free: 6.445 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/1.003, allocations: 62.52 kB / 1.035 GB, free: 6.395 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001958/1.003, allocations: 161.2 kB / 1.035 GB, free: 6.191 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/1.004, allocations: 110.4 kB / 1.035 GB, free: 6.105 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/1.004, allocations: 104.5 kB / 1.035 GB, free: 6.035 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/1.004, allocations: 0 / 1.035 GB, free: 6.035 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/1.004, allocations: 30.56 kB / 1.035 GB, free: 5.996 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=6): time 9.21e-07/1.004, allocations: 7.875 kB / 1.035 GB, free: 5.988 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6): time 0.0004377/1.004, allocations: 216.8 kB / 1.035 GB, free: 5.785 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.054e-05/1.004, allocations: 89.09 kB / 1.035 GB, free: 5.68 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/1.004, allocations: 127.9 kB / 1.035 GB, free: 5.555 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/1.004, allocations: 29.7 kB / 1.035 GB, free: 5.52 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.446e-05/1.005, allocations: 83.52 kB / 1.035 GB, free: 5.438 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/1.005, allocations: 23.67 kB / 1.036 GB, free: 5.418 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/1.005, allocations: 0 / 1.036 GB, free: 5.418 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001486/1.005, allocations: 318.8 kB / 1.036 GB, free: 5.098 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/1.005, allocations: 62.77 kB / 1.036 GB, free: 5.047 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.509e-05/1.005, allocations: 55.02 kB / 1.036 GB, free: 5 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.924e-05/1.005, allocations: 84.59 kB / 1.036 GB, free: 4.918 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.005, allocations: 4.031 kB / 1.036 GB, free: 4.914 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003066/1.005, allocations: 215.3 kB / 1.036 GB, free: 4.711 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/1.005, allocations: 44.81 kB / 1.036 GB, free: 4.664 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-05/1.006, allocations: 0 / 1.036 GB, free: 4.664 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/1.006, allocations: 0 / 1.036 GB, free: 4.664 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/1.006, allocations: 0 / 1.036 GB, free: 4.664 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/1.006, allocations: 3.984 kB / 1.036 GB, free: 4.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/1.006, allocations: 15.91 kB / 1.036 GB, free: 4.645 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/1.006, allocations: 19.11 kB / 1.036 GB, free: 4.629 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.0001454/1.006, allocations: 158.6 kB / 1.036 GB, free: 4.461 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/1.006, allocations: 11.91 kB / 1.036 GB, free: 4.449 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.515e-05/1.006, allocations: 11.92 kB / 1.036 GB, free: 4.438 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/1.006, allocations: 7.984 kB / 1.036 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/1.006, allocations: 3.938 kB / 1.036 GB, free: 4.426 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/1.006, allocations: 0 / 1.036 GB, free: 4.426 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/1.006, allocations: 172.9 kB / 1.037 GB, free: 4.211 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/1.006, allocations: 0 / 1.037 GB, free: 4.211 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/1.006, allocations: 4 kB / 1.037 GB, free: 4.207 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/1.006, allocations: 0 / 1.037 GB, free: 4.207 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/1.006, allocations: 19.3 kB / 1.037 GB, free: 4.191 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/1.006, allocations: 0 / 1.037 GB, free: 4.191 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/1.006, allocations: 0 / 1.037 GB, free: 4.191 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/1.007, allocations: 276 kB / 1.037 GB, free: 3.926 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.85e-05/1.007, allocations: 91.88 kB / 1.037 GB, free: 3.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/1.007, allocations: 11.98 kB / 1.037 GB, free: 3.809 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/1.007, allocations: 12.36 kB / 1.037 GB, free: 3.797 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.415e-05/1.007, allocations: 8.031 kB / 1.037 GB, free: 3.789 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/1.007, allocations: 18.61 kB / 1.037 GB, free: 3.773 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.819e-05/1.007, allocations: 101 kB / 1.037 GB, free: 3.68 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.51e-07/1.007, allocations: 0 / 1.037 GB, free: 3.68 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004611/1.008, allocations: 102.5 kB / 1.037 GB, free: 3.586 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.001011/1.009, allocations: 412.3 kB / 1.038 GB, free: 3.246 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004308/1.009, allocations: 289.6 kB / 1.038 GB, free: 3.023 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.009, allocations: 0 / 1.038 GB, free: 3.023 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/1.009, allocations: 208.5 kB / 1.038 GB, free: 2.867 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001719/1.01, allocations: 4.859 kB / 1.038 GB, free: 2.863 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/1.011, allocations: 478.2 kB / 1.039 GB, free: 2.422 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/1.011, allocations: 0.685 MB / 1.039 GB, free: 1.711 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 9.367e-05/1.011, allocations: 51.86 kB / 1.039 GB, free: 1.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.863e-05/1.011, allocations: 11.44 kB / 1.039 GB, free: 1.652 MB / 0.6511 GB Notification: Performance of SimCode: time 3.71e-07/1.011, allocations: 0 / 1.039 GB, free: 1.652 MB / 0.6511 GB Notification: Performance of Templates: time 0.007753/1.019, allocations: 3.852 MB / 1.043 GB, free: 13.84 MB / 0.6667 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