Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.0007539/0.0007539, allocations: 91.61 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005479/0.005479, allocations: 170.4 kB / 16.26 MB, free: 6.613 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.455/1.455, allocations: 223.3 MB / 240.3 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 462.7 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0005168/0.0005168, allocations: 10.06 kB / 0.9028 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.368, allocations: 159.6 MB / 1.059 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.0009211/0.369, allocations: 274.2 kB / 1.059 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.3711, allocations: 1.202 MB / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.194e-05/0.3711, allocations: 0 / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.702e-05/0.3712, allocations: 3.984 kB / 1.06 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.377e-05/0.3713, allocations: 0 / 1.06 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007902/0.3721, allocations: 251.5 kB / 1.06 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.3722, allocations: 71.88 kB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.602e-05/0.3723, allocations: 4 kB / 1.06 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.241e-05/0.3724, allocations: 35.91 kB / 1.06 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.412e-05/0.3724, allocations: 47.83 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.3725, allocations: 4 kB / 1.06 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005373/0.373, allocations: 179.7 kB / 1.061 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.623e-05/0.3731, allocations: 19.91 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3732, allocations: 53.56 kB / 1.061 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004846/0.3737, allocations: 263.5 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3737, allocations: 0 / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3737, allocations: 0 / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.3737, allocations: 0 / 1.061 GB, free: 3.078 MB / 0.8106 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.0004254/0.3741, allocations: 409.4 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3742, allocations: 12.03 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.998e-05/0.3743, allocations: 88.12 kB / 1.061 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.3745, allocations: 263.6 kB / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-05/0.3745, allocations: 154.9 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-05/0.3746, allocations: 154.9 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.504e-05/0.3747, allocations: 105.1 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.3747, allocations: 79.28 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.91e-05/0.3748, allocations: 150.6 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.442e-05/0.3749, allocations: 158.5 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.551e-05/0.3749, allocations: 150.6 kB / 1.063 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003241/0.3752, allocations: 473.8 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.319e-05/0.3753, allocations: 165.1 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.249e-05/0.3754, allocations: 88.08 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.3754, allocations: 83.22 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.3755, allocations: 113.8 kB / 1.064 GB, free: 316 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 2.625e-06/0.3755, allocations: 0 / 1.064 GB, free: 316 kB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 9.585e-05/0.3756, allocations: 33.64 kB / 1.064 GB, free: 276 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.3756, allocations: 130.7 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.3758, allocations: 152.4 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.3759, allocations: 25.7 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.704e-05/0.3759, allocations: 96.12 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.605e-06/0.376, allocations: 0 / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.19e-05/0.376, allocations: 13.72 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3761, allocations: 314.8 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.3762, allocations: 63.94 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.416e-05/0.3763, allocations: 59.89 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.3765, allocations: 98.55 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3765, allocations: 0 / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003909/0.3769, allocations: 235.1 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.866e-05/0.377, allocations: 49.69 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.377, allocations: 0 / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.377, allocations: 0 / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.377, allocations: 0 / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.377, allocations: 0 / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.3774, allocations: 23.89 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.324e-05/0.3774, allocations: 15.97 kB / 1.065 GB, free: 14.94 MB / 0.8262 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.0001548/0.3776, allocations: 206.7 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.3777, allocations: 112.8 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.033e-05/0.3777, allocations: 112.5 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.854e-05/0.3778, allocations: 180.2 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.204e-05/0.3778, allocations: 180.3 kB / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.315e-05/0.3779, allocations: 192.2 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.3782, allocations: 409.2 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.749e-05/0.3782, allocations: 108.9 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.545e-05/0.3783, allocations: 112.9 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.306e-05/0.3783, allocations: 180.3 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.589e-05/0.3784, allocations: 176.3 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-05/0.3785, allocations: 192.2 kB / 1.067 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.579e-05/0.3785, allocations: 176.3 kB / 1.067 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001419/0.3787, allocations: 307.7 kB / 1.067 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.886e-05/0.3788, allocations: 194 kB / 1.067 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.3788, allocations: 188.2 kB / 1.068 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.654e-05/0.3789, allocations: 101 kB / 1.068 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.097e-05/0.379, allocations: 188.2 kB / 1.068 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.941e-05/0.379, allocations: 105.2 kB / 1.068 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.901e-05/0.3791, allocations: 107.2 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3791, allocations: 0 / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003821/0.3795, allocations: 75.89 kB / 1.068 GB, free: 11.19 MB / 0.8262 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.01012/0.3896, allocations: 408.7 kB / 1.069 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004171/0.3901, allocations: 211.3 kB / 1.069 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3901, allocations: 0 / 1.069 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.472e-06/0.3902, allocations: 8 kB / 1.069 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.3906, allocations: 0.5224 MB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003867/0.391, allocations: 242.2 kB / 1.07 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.3912, allocations: 0.6809 MB / 1.07 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.634e-05/0.3914, allocations: 55.8 kB / 1.07 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.025e-05/0.3914, allocations: 7.438 kB / 1.07 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of SimCode: time 8.21e-07/0.3914, allocations: 3.938 kB / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of Templates: time 0.006621/0.398, allocations: 2.556 MB / 1.073 GB, free: 6.527 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & ./Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches