Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 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.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_10_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_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 198.8 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.567/2.567, allocations: 437 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001346, allocations: 63.91 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6603/0.6616, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.001933/0.6636, allocations: 0.5318 MB / 1.018 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.6652, allocations: 1.194 MB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.513e-05/0.6653, allocations: 0 / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.105e-05/0.6654, allocations: 4 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.222e-05/0.6654, allocations: 3.938 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005984/0.666, allocations: 283.1 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.6662, allocations: 75.88 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.253e-05/0.6662, allocations: 4 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.634e-05/0.6663, allocations: 43.89 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.646e-05/0.6663, allocations: 39.84 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.6664, allocations: 4 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003594/0.6667, allocations: 187.7 kB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.6668, allocations: 11.97 kB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.314e-05/0.6668, allocations: 27.88 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.6672, allocations: 251.5 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.6672, allocations: 0 / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6672, allocations: 0 / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.6672, allocations: 0 / 1.02 GB, free: 15.84 MB / 0.7794 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.0003885/0.6676, allocations: 443 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.6676, allocations: 12.03 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.533e-05/0.6677, allocations: 88.12 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.6679, allocations: 251.6 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-05/0.6679, allocations: 154.9 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.902e-05/0.668, allocations: 158.9 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.088e-05/0.6681, allocations: 113 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/0.6681, allocations: 83.27 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.916e-05/0.6682, allocations: 150.6 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-05/0.6682, allocations: 150.6 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.193e-05/0.6683, allocations: 150.6 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003496/0.6686, allocations: 473.8 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.791e-05/0.6687, allocations: 173.1 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.261e-05/0.6688, allocations: 80.14 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.6688, allocations: 83.22 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.138e-05/0.6689, allocations: 113.8 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 8.51e-07/0.6689, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 0.0001094/0.669, allocations: 45.7 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.6691, allocations: 126.7 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.6693, allocations: 155.8 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.6694, allocations: 33.7 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.971e-05/0.6694, allocations: 88.14 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.817e-06/0.6694, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.341e-05/0.6695, allocations: 41.69 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.6696, allocations: 322.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.6697, allocations: 59.95 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.797e-05/0.6698, allocations: 59.94 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.67, allocations: 98.52 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.67, allocations: 0 / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000372/0.6703, allocations: 231.1 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.6704, allocations: 41.69 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.6704, allocations: 0 / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/0.6704, allocations: 3.938 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.6704, allocations: 0 / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.6704, allocations: 8.047 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003036/0.6707, allocations: 31.81 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.6708, allocations: 12 kB / 1.024 GB, free: 11.63 MB / 0.7794 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 (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 0.000108/0.6709, allocations: 197.1 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.052e-05/0.671, allocations: 112.8 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.992e-05/0.671, allocations: 116.4 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.894e-05/0.6711, allocations: 180.3 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-05/0.6712, allocations: 180.3 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.494e-05/0.6712, allocations: 180.2 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.6715, allocations: 409.2 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-05/0.6715, allocations: 113 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.497e-05/0.6716, allocations: 108.9 kB / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.959e-05/0.6716, allocations: 184.2 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.475e-05/0.6717, allocations: 184.2 kB / 1.026 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.048e-05/0.6718, allocations: 180.3 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-05/0.6718, allocations: 184.2 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.672, allocations: 315.7 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.6721, allocations: 186 kB / 1.026 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.734e-05/0.6721, allocations: 180.2 kB / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.374e-05/0.6722, allocations: 104.9 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.6723, allocations: 184.3 kB / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.6723, allocations: 101 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.216e-05/0.6724, allocations: 111.2 kB / 1.027 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.593e-06/0.6724, allocations: 0 / 1.027 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003658/0.6728, allocations: 75.92 kB / 1.027 GB, free: 7.898 MB / 0.7794 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 () * Number of clocked 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 (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.0006824/0.6735, allocations: 402.3 kB / 1.028 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002725/0.6737, allocations: 211.3 kB / 1.028 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.6737, allocations: 0 / 1.028 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.084e-06/0.6738, allocations: 0 / 1.028 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.6741, allocations: 463.7 kB / 1.028 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002821/0.6744, allocations: 220.5 kB / 1.028 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.6747, allocations: 0.6806 MB / 1.029 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.52e-05/0.6747, allocations: 59.8 kB / 1.029 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.566e-05/0.6748, allocations: 15.44 kB / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.6748, allocations: 0 / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of Templates: time 0.004747/0.6795, allocations: 2.597 MB / 1.032 GB, free: 3.289 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & ./Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches