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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001177/0.001177, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001269/0.001269, allocations: 195.1 kB / 16.14 MB, free: 6.656 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.811/2.811, allocations: 472.6 MB / 0.7447 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001466, allocations: 66.06 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3874, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.002167/0.3896, allocations: 0.6027 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001808/0.3914, allocations: 1.204 MB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.668e-05/0.3914, allocations: 0 / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.905e-05/0.3916, allocations: 19.91 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.601e-05/0.3916, allocations: 0 / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006217/0.3922, allocations: 239.6 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.3924, allocations: 75.81 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.437e-05/0.3924, allocations: 4 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.785e-05/0.3925, allocations: 39.91 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.28e-05/0.3925, allocations: 43.89 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.887e-05/0.3926, allocations: 4 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004231/0.393, allocations: 183.7 kB / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.084e-05/0.393, allocations: 11.97 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.339e-05/0.3931, allocations: 31.86 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003969/0.3935, allocations: 255.5 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3935, allocations: 0 / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3935, allocations: 0 / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.3935, allocations: 0 / 1.07 GB, free: 8.234 MB / 0.8262 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.0004607/0.394, allocations: 453.3 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3941, allocations: 8.031 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.099e-05/0.3942, allocations: 80.22 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.3943, allocations: 251.6 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.371e-05/0.3944, allocations: 162.9 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.411e-05/0.3945, allocations: 154.9 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.331e-05/0.3945, allocations: 117 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.3946, allocations: 75.28 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.414e-05/0.3946, allocations: 150.6 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-05/0.3947, allocations: 150.6 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.66e-05/0.3947, allocations: 150.6 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003088/0.395, allocations: 473.9 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.491e-05/0.3951, allocations: 173 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.178e-05/0.3951, allocations: 80.14 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.3952, allocations: 79.28 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.3952, allocations: 117.8 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.3952, allocations: 4 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 9.866e-05/0.3953, allocations: 33.61 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.3954, allocations: 134.6 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.3955, allocations: 143.9 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.3956, allocations: 29.7 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.746e-05/0.3956, allocations: 92.12 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-06/0.3956, allocations: 0 / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.666e-05/0.3957, allocations: 41.69 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.3958, allocations: 322.8 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.3959, allocations: 63.94 kB / 1.074 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.809e-05/0.3961, allocations: 55.95 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.3962, allocations: 98.52 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3962, allocations: 0 / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003906/0.3966, allocations: 231.1 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/0.3966, allocations: 41.69 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3967, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3967, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.3967, allocations: 8.047 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.3967, allocations: 0 / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.397, allocations: 23.89 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.3971, allocations: 15.98 kB / 1.074 GB, free: 4.047 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.0001243/0.3972, allocations: 197.1 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.818e-05/0.3973, allocations: 112.8 kB / 1.074 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.951e-05/0.3973, allocations: 124.2 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.933e-05/0.3974, allocations: 184.3 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.214e-05/0.3974, allocations: 184.2 kB / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.376e-05/0.3975, allocations: 180.2 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.3977, allocations: 413.2 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.228e-05/0.3978, allocations: 104.9 kB / 1.075 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.3978, allocations: 108.9 kB / 1.076 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.504e-05/0.3979, allocations: 180.2 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.247e-05/0.3979, allocations: 188.2 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.194e-05/0.398, allocations: 176.3 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-05/0.398, allocations: 180.3 kB / 1.076 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.3982, allocations: 319.7 kB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.244e-05/0.3983, allocations: 186 kB / 1.077 GB, free: 1.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.415e-05/0.3983, allocations: 176.3 kB / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.556e-05/0.3984, allocations: 108.9 kB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.3985, allocations: 180.3 kB / 1.077 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.3985, allocations: 112.9 kB / 1.077 GB, free: 488 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.594e-05/0.3986, allocations: 105.2 kB / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3986, allocations: 0 / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003533/0.3989, allocations: 75.89 kB / 1.077 GB, free: 308 kB / 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.0007542/0.3997, allocations: 403.9 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002808/0.4, allocations: 211.3 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4, allocations: 4 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.555e-06/0.4, allocations: 0 / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.4004, allocations: 0.5263 MB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003115/0.4007, allocations: 246 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.4009, allocations: 0.6809 MB / 1.079 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.426e-05/0.401, allocations: 51.88 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.503e-05/0.401, allocations: 11.42 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.401, allocations: 0 / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.005485/0.4065, allocations: 2.57 MB / 1.082 GB, free: 11.62 MB / 0.8419 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