Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.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.MixingBoxMinimumFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOAMin.m_flow|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow") translateModel(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOAMin.m_flow|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001092, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001389/0.001389, allocations: 172.7 kB / 15.95 MB, free: 208 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.575/1.575, allocations: 223.3 MB / 240 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.838/2.838, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003663, allocations: 9.703 kB / 0.9021 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.415, allocations: 159.6 MB / 1.058 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow): time 0.2296/0.6446, allocations: 180.5 MB / 1.234 GB, free: 324 kB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.009522/0.6542, allocations: 4.913 MB / 1.239 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.6559, allocations: 27.81 kB / 1.239 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.6573, allocations: 401.2 kB / 1.24 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004006/0.6613, allocations: 1.361 MB / 1.241 GB, free: 9.605 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003844/0.6652, allocations: 1.229 MB / 1.242 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003901/0.6691, allocations: 3.024 MB / 1.245 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.6707, allocations: 1.122 MB / 1.246 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001944/0.6727, allocations: 1.039 MB / 1.247 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00142/0.6741, allocations: 1.039 MB / 1.248 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001858/0.6743, allocations: 79.94 kB / 1.248 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002443/0.6768, allocations: 0.8575 MB / 1.249 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004913/0.6773, allocations: 434.3 kB / 1.249 GB, free: 0.7695 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003646/0.6777, allocations: 273 kB / 1.25 GB, free: 0.4961 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.7245/1.402, allocations: 1.883 MB / 1.252 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/1.402, allocations: 0 / 1.252 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of FrontEnd: time 4.148e-06/1.402, allocations: 1.031 kB / 1.252 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.534e-05/1.402, allocations: 0.7812 kB / 1.252 GB, free: 10.73 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.005219/1.408, allocations: 1.834 MB / 1.253 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.408, allocations: 9.781 kB / 1.253 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/1.409, allocations: 226 kB / 1.254 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/1.411, allocations: 1.262 MB / 1.255 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/1.412, allocations: 69.58 kB / 1.255 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/1.412, allocations: 73.75 kB / 1.255 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/1.413, allocations: 0.816 MB / 1.256 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/1.413, allocations: 2.734 kB / 1.256 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.476e-05/1.414, allocations: 24.08 kB / 1.256 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.434e-05/1.414, allocations: 24.83 kB / 1.256 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/1.415, allocations: 0.8668 MB / 1.257 GB, free: 9.441 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.006084/1.421, allocations: 3.474 MB / 1.26 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/1.423, allocations: 0.7393 MB / 1.261 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007506/1.423, allocations: 454.4 kB / 1.261 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003818/1.424, allocations: 293.2 kB / 1.261 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/1.424, allocations: 40.69 kB / 1.261 GB, free: 8 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001148/1.425, allocations: 238.8 kB / 1.262 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=53): time 3.115e-06/1.425, allocations: 0 / 1.262 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of matching and sorting (n=53): time 0.002722/1.428, allocations: 1.334 MB / 1.263 GB, free: 7.844 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/1.428, allocations: 65.86 kB / 1.263 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/1.431, allocations: 1.623 MB / 1.265 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.608e-05/1.431, allocations: 43.14 kB / 1.265 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005126/1.431, allocations: 0.5358 MB / 1.265 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000197/1.431, allocations: 183.4 kB / 1.265 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.302e-05/1.432, allocations: 10.78 kB / 1.265 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.648e-05/1.432, allocations: 325.4 kB / 1.266 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007882/1.432, allocations: 350.8 kB / 1.266 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/1.434, allocations: 0.6246 MB / 1.267 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008731/1.434, allocations: 422.7 kB / 1.267 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.434, allocations: 0.625 kB / 1.267 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.002447/1.437, allocations: 0.9631 MB / 1.268 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.565e-05/1.437, allocations: 106.5 kB / 1.268 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/1.437, allocations: 1.375 kB / 1.268 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/1.437, allocations: 5.734 kB / 1.268 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009657/1.438, allocations: 167.9 kB / 1.268 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/1.438, allocations: 2.594 kB / 1.268 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/1.44, allocations: 158.3 kB / 1.268 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.669e-05/1.44, allocations: 35.06 kB / 1.268 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/1.44, allocations: 8.125 kB / 1.268 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001933/1.442, allocations: 0.8229 MB / 1.269 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/1.442, allocations: 0 / 1.269 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.286e-06/1.442, allocations: 3.172 kB / 1.269 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008318/1.443, allocations: 170.4 kB / 1.269 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/1.443, allocations: 2.297 kB / 1.269 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/1.445, allocations: 161.3 kB / 1.27 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-05/1.445, allocations: 30.52 kB / 1.27 GB, free: 6.477 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 (57): * Single equations (assignments): 57 * 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.001185/1.446, allocations: 373.5 kB / 1.27 GB, free: 22.29 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003971/1.446, allocations: 128.6 kB / 1.27 GB, free: 22.22 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002904/1.449, allocations: 1.052 MB / 1.271 GB, free: 22.12 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.758e-05/1.449, allocations: 6.969 kB / 1.271 GB, free: 22.12 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/1.449, allocations: 1.656 kB / 1.271 GB, free: 22.12 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/1.449, allocations: 3.406 kB / 1.271 GB, free: 22.12 MB / 1.014 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 postOpt removeSimpleEquations (simulation): time 0.006273/1.456, allocations: 2.501 MB / 1.274 GB, free: 21.64 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/1.456, allocations: 2.188 kB / 1.274 GB, free: 21.64 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008162/1.456, allocations: 138.9 kB / 1.274 GB, free: 21.63 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.459e-05/1.457, allocations: 5.406 kB / 1.274 GB, free: 21.63 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.072e-05/1.457, allocations: 20.27 kB / 1.274 GB, free: 21.63 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.728e-05/1.457, allocations: 12.38 kB / 1.274 GB, free: 21.63 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.457, allocations: 3.25 kB / 1.274 GB, free: 21.63 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003604/1.46, allocations: 1.554 MB / 1.275 GB, free: 21.32 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/1.461, allocations: 355.6 kB / 1.276 GB, free: 21.16 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005395/1.462, allocations: 14.44 kB / 1.276 GB, free: 21.16 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/1.464, allocations: 102.4 kB / 1.276 GB, free: 21.14 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/1.464, allocations: 47.25 kB / 1.276 GB, free: 21.14 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-05/1.464, allocations: 25.89 kB / 1.276 GB, free: 21.14 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002771/1.467, allocations: 1.173 MB / 1.277 GB, free: 21.03 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.21e-07/1.467, allocations: 0 / 1.277 GB, free: 21.03 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002695/1.469, allocations: 0.5029 MB / 1.277 GB, free: 20.98 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (mixBox.filter.s[1],mixBox.filter.s[2],mixBox.filterOutMin.s[1],mixBox.filterOutMin.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 (64): * Single equations (assignments): 64 * 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.0007343/1.47, allocations: 231.1 kB / 1.278 GB, free: 20.88 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003223/1.473, allocations: 1.247 MB / 1.279 GB, free: 20.86 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.473, allocations: 0.9062 kB / 1.279 GB, free: 20.86 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009124/1.474, allocations: 438.5 kB / 1.279 GB, free: 20.85 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003499/1.478, allocations: 0.5625 MB / 1.28 GB, free: 20.82 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/1.482, allocations: 2.481 MB / 1.282 GB, free: 19.66 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/1.483, allocations: 1.145 MB / 1.283 GB, free: 18.95 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002121/1.486, allocations: 369.2 kB / 1.284 GB, free: 18.87 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006751/1.486, allocations: 119.4 kB / 1.284 GB, free: 18.86 MB / 1.014 GB Notification: Performance of SimCode: time 1.293e-06/1.486, allocations: 0 / 1.284 GB, free: 18.86 MB / 1.014 GB Notification: Performance of Templates: time 0.04847/1.535, allocations: 25.24 MB / 1.309 GB, free: 14.92 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches