Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Fluid.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox") translateModel(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001377/0.001377, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.027/3.027, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004445, allocations: 11.42 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.396, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.2198/0.6159, allocations: 172.6 MB / 1.227 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008189/0.6241, allocations: 4.08 MB / 1.231 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.6255, allocations: 23.81 kB / 1.231 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.6267, allocations: 321.7 kB / 1.231 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003307/0.63, allocations: 1.142 MB / 1.232 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.6331, allocations: 1.017 MB / 1.233 GB, free: 1.727 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003262/0.6363, allocations: 2.389 MB / 1.235 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.6377, allocations: 0.8482 MB / 1.236 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001334/0.639, allocations: 0.8132 MB / 1.237 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.6401, allocations: 0.7821 MB / 1.238 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.6402, allocations: 56 kB / 1.238 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001954/0.6422, allocations: 0.8029 MB / 1.239 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003889/0.6426, allocations: 326.8 kB / 1.239 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.6428, allocations: 225.1 kB / 1.239 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001564/0.6444, allocations: 1.461 MB / 1.24 GB, free: 10 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.6444, allocations: 0 / 1.24 GB, free: 10 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.334e-06/0.6444, allocations: 0 / 1.24 GB, free: 10 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.384e-05/0.6444, allocations: 0 / 1.24 GB, free: 10 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.003731/0.6482, allocations: 1.506 MB / 1.242 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.6483, allocations: 16.02 kB / 1.242 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007697/0.649, allocations: 190.4 kB / 1.242 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.6509, allocations: 0.9915 MB / 1.243 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.6511, allocations: 52.94 kB / 1.243 GB, free: 7.137 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.6512, allocations: 56 kB / 1.243 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.6524, allocations: 0.6232 MB / 1.244 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.6524, allocations: 0 / 1.244 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.047e-05/0.6525, allocations: 20 kB / 1.244 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.879e-05/0.6525, allocations: 21 kB / 1.244 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.6539, allocations: 0.6441 MB / 1.244 GB, free: 5.766 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004235/0.6582, allocations: 2.685 MB / 1.247 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.6593, allocations: 0.5484 MB / 1.248 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006384/0.6599, allocations: 360.6 kB / 1.248 GB, free: 2.031 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004094/0.6604, allocations: 291.9 kB / 1.248 GB, free: 1.691 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/0.6604, allocations: 42.55 kB / 1.248 GB, free: 1.641 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006276/0.6611, allocations: 155.6 kB / 1.248 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=43): time 2.334e-06/0.6611, allocations: 0 / 1.248 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43): time 0.002367/0.6634, allocations: 1.054 MB / 1.249 GB, free: 436 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.6635, allocations: 59.36 kB / 1.25 GB, free: 364 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.7869/1.45, allocations: 1.264 MB / 1.251 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002571/1.451, allocations: 38.02 kB / 1.251 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004246/1.451, allocations: 435.2 kB / 1.251 GB, free: 192.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/1.451, allocations: 147 kB / 1.251 GB, free: 192 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/1.451, allocations: 12.8 kB / 1.251 GB, free: 192 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.245e-05/1.451, allocations: 321.5 kB / 1.252 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007054/1.452, allocations: 278.3 kB / 1.252 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008888/1.453, allocations: 482.1 kB / 1.252 GB, free: 191.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007347/1.454, allocations: 330.4 kB / 1.253 GB, free: 191.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/1.454, allocations: 1 kB / 1.253 GB, free: 191.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001816/1.456, allocations: 0.7439 MB / 1.253 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.18e-05/1.456, allocations: 97.39 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/1.456, allocations: 7.266 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/1.456, allocations: 1.75 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006753/1.456, allocations: 131.3 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/1.457, allocations: 2.188 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/1.458, allocations: 125.2 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.776e-05/1.458, allocations: 25.66 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/1.458, allocations: 4.312 kB / 1.254 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001206/1.459, allocations: 0.6296 MB / 1.254 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/1.459, allocations: 3.562 kB / 1.254 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.699e-06/1.459, allocations: 0 / 1.254 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/1.46, allocations: 129.5 kB / 1.255 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/1.46, allocations: 2.469 kB / 1.255 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/1.461, allocations: 122.6 kB / 1.255 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/1.461, allocations: 29.25 kB / 1.255 GB, free: 191.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (45): * Single equations (assignments): 45 * 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 prepare postOptimizeDAE: time 0.0004334/1.461, allocations: 331.5 kB / 1.255 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/1.462, allocations: 103.8 kB / 1.255 GB, free: 191.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/1.463, allocations: 0.8286 MB / 1.256 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/1.463, allocations: 5.156 kB / 1.256 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.463, allocations: 0 / 1.256 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/1.463, allocations: 6.984 kB / 1.256 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/1.466, allocations: 1.97 MB / 1.258 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/1.466, allocations: 2.969 kB / 1.258 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005281/1.467, allocations: 113.4 kB / 1.258 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.287e-06/1.467, allocations: 5.406 kB / 1.258 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.1e-05/1.467, allocations: 15.91 kB / 1.258 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/1.467, allocations: 6.969 kB / 1.258 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.467, allocations: 3.859 kB / 1.258 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/1.469, allocations: 1.271 MB / 1.259 GB, free: 190.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004399/1.469, allocations: 291.8 kB / 1.26 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/1.469, allocations: 13.91 kB / 1.26 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009046/1.47, allocations: 82.94 kB / 1.26 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/1.47, allocations: 42.05 kB / 1.26 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/1.47, allocations: 19.66 kB / 1.26 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001428/1.472, allocations: 0.9143 MB / 1.261 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.472, allocations: 3.875 kB / 1.261 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001181/1.473, allocations: 404.5 kB / 1.261 GB, free: 190.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (mixBox.filter.s[1],mixBox.filter.s[2]) * 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 (52): * Single equations (assignments): 52 * 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.0005512/1.474, allocations: 220 kB / 1.261 GB, free: 190 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00221/1.476, allocations: 0.9661 MB / 1.262 GB, free: 190 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/1.476, allocations: 0 / 1.262 GB, free: 190 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007806/1.477, allocations: 347.4 kB / 1.262 GB, free: 189.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/1.479, allocations: 466.5 kB / 1.263 GB, free: 189.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003535/1.483, allocations: 1.94 MB / 1.265 GB, free: 189 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008851/1.484, allocations: 1.046 MB / 1.266 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00154/1.485, allocations: 294.1 kB / 1.266 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003864/1.486, allocations: 97.03 kB / 1.266 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.452e-06/1.486, allocations: 4 kB / 1.266 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.04962/1.535, allocations: 19.78 MB / 1.286 GB, free: 181.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Dampers_Examples_MixingBox.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches