Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python_3_8.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_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python_3_8.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_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.084/2.084, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009417/0.0009417, allocations: 188.6 kB / 487.4 MB, free: 5.062 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008725/0.0008727, allocations: 93.41 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.339e-05/1.341e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2269, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7792/1.006, allocations: 151 MB / 1.353 GB, free: 18.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/1.006, allocations: 97.8 kB / 1.353 GB, free: 18.5 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0246/1.031, allocations: 10.03 MB / 1.363 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.493e-06/1.031, allocations: 3.938 kB / 1.363 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.382e-06/1.031, allocations: 4 kB / 1.363 GB, free: 33.59 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004128/1.032, allocations: 420.2 kB / 1.364 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/1.032, allocations: 7.688 kB / 1.364 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.059e-05/1.032, allocations: 86.97 kB / 1.364 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/1.032, allocations: 251.6 kB / 1.364 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.145e-05/1.032, allocations: 154.5 kB / 1.364 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.828e-05/1.032, allocations: 154.3 kB / 1.364 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.078e-05/1.032, allocations: 154.6 kB / 1.364 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.24e-05/1.032, allocations: 101 kB / 1.365 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/1.032, allocations: 75.28 kB / 1.365 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.999e-05/1.032, allocations: 158.5 kB / 1.365 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.469e-05/1.032, allocations: 157.9 kB / 1.365 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002496/1.032, allocations: 459.6 kB / 1.365 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.089e-05/1.033, allocations: 165.1 kB / 1.366 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.734e-05/1.033, allocations: 84.19 kB / 1.366 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.381e-05/1.033, allocations: 75.28 kB / 1.366 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/1.033, allocations: 117.3 kB / 1.366 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/1.033, allocations: 0 / 1.366 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=0): time 7.729e-05/1.033, allocations: 40.69 kB / 1.366 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.341e-05/1.033, allocations: 51.41 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/1.033, allocations: 132.1 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/1.033, allocations: 29.58 kB / 1.366 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.009e-05/1.033, allocations: 87.52 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.372e-06/1.033, allocations: 0 / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.28e-05/1.033, allocations: 3.844 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001117/1.033, allocations: 321.9 kB / 1.366 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.747e-05/1.033, allocations: 61.09 kB / 1.366 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.659e-05/1.033, allocations: 51.73 kB / 1.367 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/1.033, allocations: 68.62 kB / 1.367 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.033, allocations: 3.953 kB / 1.367 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003267/1.034, allocations: 178.1 kB / 1.367 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/1.034, allocations: 46.58 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/1.034, allocations: 0 / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/1.034, allocations: 0 / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/1.034, allocations: 8 kB / 1.367 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/1.034, allocations: 0 / 1.367 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/1.034, allocations: 21.41 kB / 1.367 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.45e-05/1.034, allocations: 14.53 kB / 1.367 GB, free: 30.27 MB / 0.8386 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.0001065/1.034, allocations: 182.8 kB / 1.367 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-05/1.034, allocations: 116.1 kB / 1.367 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/1.034, allocations: 108.9 kB / 1.367 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.042e-05/1.034, allocations: 186.9 kB / 1.367 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.813e-05/1.034, allocations: 176.3 kB / 1.368 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.311e-05/1.035, allocations: 176.3 kB / 1.368 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/1.035, allocations: 398.6 kB / 1.368 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.456e-05/1.035, allocations: 101 kB / 1.368 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/1.035, allocations: 108.8 kB / 1.368 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.402e-05/1.035, allocations: 184.2 kB / 1.369 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.767e-05/1.035, allocations: 179.4 kB / 1.369 GB, free: 28.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-05/1.035, allocations: 176.3 kB / 1.369 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-05/1.035, allocations: 180.2 kB / 1.369 GB, free: 27.96 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001075/1.035, allocations: 318.3 kB / 1.369 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/1.035, allocations: 188.4 kB / 1.37 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.033e-05/1.035, allocations: 188 kB / 1.37 GB, free: 27.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.824e-05/1.035, allocations: 108.6 kB / 1.37 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.85e-05/1.035, allocations: 184.2 kB / 1.37 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.222e-05/1.035, allocations: 109 kB / 1.37 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.268e-05/1.035, allocations: 106.9 kB / 1.37 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.035, allocations: 0 / 1.37 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003661/1.036, allocations: 86.47 kB / 1.37 GB, free: 26.75 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0005955/1.036, allocations: 412.1 kB / 1.371 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001829/1.037, allocations: 207.1 kB / 1.371 GB, free: 26.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/1.037, allocations: 0 / 1.371 GB, free: 26.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.813e-06/1.037, allocations: 2.75 kB / 1.371 GB, free: 26.43 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/1.037, allocations: 0.5211 MB / 1.371 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002229/1.037, allocations: 180.4 kB / 1.372 GB, free: 25.76 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/1.037, allocations: 0.6816 MB / 1.372 GB, free: 25.06 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.927e-05/1.037, allocations: 59.84 kB / 1.372 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.049e-05/1.038, allocations: 7.438 kB / 1.372 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.038, allocations: 0 / 1.372 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of Templates: time 0.003847/1.041, allocations: 2.453 MB / 1.375 GB, free: 24.76 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & ./Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches