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.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.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.0012/0.0012, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001529/0.001529, allocations: 189 kB / 16.25 MB, free: 6.152 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.395/1.395, allocations: 222.9 MB / 239.9 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.791/2.791, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 62.22 kB / 0.8986 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3106, allocations: 157.4 MB / 1.052 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.2238/0.5344, allocations: 187.2 MB / 1.235 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.009225/0.5437, allocations: 4.256 MB / 1.239 GB, free: 8.598 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.5457, allocations: 23.81 kB / 1.239 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.5475, allocations: 437.7 kB / 1.24 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004995/0.5526, allocations: 1.474 MB / 1.241 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00407/0.5567, allocations: 1.235 MB / 1.242 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00363/0.5603, allocations: 2.263 MB / 1.245 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002545/0.5629, allocations: 1.061 MB / 1.246 GB, free: 2.105 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003012/0.5659, allocations: 0.9692 MB / 1.247 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.5681, allocations: 0.8912 MB / 1.247 GB, free: 244 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006985/0.5688, allocations: 136 kB / 1.248 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.7448/1.314, allocations: 1.281 MB / 1.249 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007381/1.314, allocations: 426 kB / 1.249 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00128/1.316, allocations: 0.6455 MB / 1.25 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003609/1.319, allocations: 2.03 MB / 1.252 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/1.319, allocations: 3.234 kB / 1.252 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.462e-06/1.319, allocations: 0 / 1.252 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.034e-05/1.319, allocations: 0 / 1.252 GB, free: 6.086 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.004398/1.324, allocations: 1.726 MB / 1.253 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/1.324, allocations: 12.41 kB / 1.254 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008347/1.325, allocations: 182.5 kB / 1.254 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/1.326, allocations: 1.043 MB / 1.255 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/1.326, allocations: 56.23 kB / 1.255 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/1.327, allocations: 55.19 kB / 1.255 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/1.328, allocations: 0.615 MB / 1.255 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/1.328, allocations: 0.75 kB / 1.255 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.236e-05/1.328, allocations: 21.8 kB / 1.255 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.885e-05/1.328, allocations: 20.47 kB / 1.255 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/1.329, allocations: 0.6251 MB / 1.256 GB, free: 4.84 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.004076/1.333, allocations: 2.656 MB / 1.259 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/1.334, allocations: 0.5358 MB / 1.259 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000599/1.335, allocations: 347.2 kB / 1.26 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003394/1.335, allocations: 299.9 kB / 1.26 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/1.335, allocations: 38.5 kB / 1.26 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007274/1.336, allocations: 154.9 kB / 1.26 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=43): time 2.465e-06/1.336, allocations: 0.8438 kB / 1.26 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43): time 0.002223/1.338, allocations: 1.017 MB / 1.261 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/1.338, allocations: 62.05 kB / 1.261 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002108/1.341, allocations: 1.274 MB / 1.262 GB, free: 19.36 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.309e-05/1.341, allocations: 41.95 kB / 1.262 GB, free: 19.33 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/1.341, allocations: 435.9 kB / 1.263 GB, free: 19.21 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/1.341, allocations: 148.3 kB / 1.263 GB, free: 19.12 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/1.341, allocations: 121.1 kB / 1.263 GB, free: 19.1 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001052/1.341, allocations: 321.9 kB / 1.263 GB, free: 18.79 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006179/1.342, allocations: 270 kB / 1.264 GB, free: 18.79 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008255/1.343, allocations: 482.9 kB / 1.264 GB, free: 18.59 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/1.344, allocations: 0.5824 MB / 1.265 GB, free: 18.57 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.344, allocations: 6.109 kB / 1.265 GB, free: 18.57 MB / 1.014 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001876/1.346, allocations: 0.7428 MB / 1.265 GB, free: 18.48 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/1.346, allocations: 5.812 kB / 1.265 GB, free: 18.48 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.346, allocations: 0.6562 kB / 1.265 GB, free: 18.48 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/1.346, allocations: 3.5 kB / 1.265 GB, free: 18.48 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008083/1.347, allocations: 121.6 kB / 1.265 GB, free: 18.48 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/1.347, allocations: 1.188 kB / 1.265 GB, free: 18.48 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/1.348, allocations: 106 kB / 1.266 GB, free: 18.47 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.509e-05/1.349, allocations: 26.19 kB / 1.266 GB, free: 18.47 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009921/1.35, allocations: 467.8 kB / 1.266 GB, free: 18.39 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007928/1.35, allocations: 482.4 kB / 1.266 GB, free: 18.18 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001214/1.352, allocations: 0.5824 MB / 1.267 GB, free: 18.16 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/1.352, allocations: 0 / 1.267 GB, free: 18.16 MB / 1.014 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.001701/1.353, allocations: 0.7364 MB / 1.268 GB, free: 18.07 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/1.353, allocations: 5.594 kB / 1.268 GB, free: 18.07 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/1.353, allocations: 0.7031 kB / 1.268 GB, free: 18.07 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.941e-06/1.353, allocations: 3.031 kB / 1.268 GB, free: 18.07 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006503/1.354, allocations: 120.7 kB / 1.268 GB, free: 18.07 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/1.354, allocations: 2.734 kB / 1.268 GB, free: 18.07 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/1.356, allocations: 137 kB / 1.268 GB, free: 18.07 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.405e-05/1.356, allocations: 24.91 kB / 1.268 GB, free: 18.07 MB / 1.014 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002701/1.356, allocations: 209.6 kB / 1.268 GB, free: 17.88 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/1.356, allocations: 109.1 kB / 1.268 GB, free: 17.82 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/1.358, allocations: 0.802 MB / 1.269 GB, free: 17.77 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/1.358, allocations: 5.062 kB / 1.269 GB, free: 17.77 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/1.358, allocations: 2.188 kB / 1.269 GB, free: 17.77 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/1.358, allocations: 4.047 kB / 1.269 GB, free: 17.77 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/1.363, allocations: 1.953 MB / 1.271 GB, free: 17.38 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/1.363, allocations: 2.156 kB / 1.271 GB, free: 17.38 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006016/1.363, allocations: 108.8 kB / 1.271 GB, free: 17.38 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-05/1.363, allocations: 6.469 kB / 1.271 GB, free: 17.38 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.606e-05/1.363, allocations: 18.89 kB / 1.271 GB, free: 17.38 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.787e-06/1.363, allocations: 9.422 kB / 1.271 GB, free: 17.38 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.363, allocations: 3 kB / 1.271 GB, free: 17.38 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/1.366, allocations: 1.228 MB / 1.272 GB, free: 17.11 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007217/1.366, allocations: 290.7 kB / 1.273 GB, free: 16.96 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/1.367, allocations: 18.89 kB / 1.273 GB, free: 16.96 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/1.368, allocations: 76.83 kB / 1.273 GB, free: 16.95 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/1.368, allocations: 39.86 kB / 1.273 GB, free: 16.95 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/1.368, allocations: 20.09 kB / 1.273 GB, free: 16.95 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001615/1.369, allocations: 0.9235 MB / 1.274 GB, free: 16.84 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/1.369, allocations: 2.125 kB / 1.274 GB, free: 16.84 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001387/1.371, allocations: 408.2 kB / 1.274 GB, free: 16.8 MB / 1.014 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 (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.0005695/1.371, allocations: 216.5 kB / 1.274 GB, free: 16.71 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002394/1.374, allocations: 0.9989 MB / 1.275 GB, free: 16.69 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.374, allocations: 0 / 1.275 GB, free: 16.69 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007111/1.375, allocations: 338.1 kB / 1.276 GB, free: 16.69 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/1.377, allocations: 435.8 kB / 1.276 GB, free: 16.64 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/1.379, allocations: 2 MB / 1.278 GB, free: 15.64 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006103/1.38, allocations: 1.048 MB / 1.279 GB, free: 14.94 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001226/1.381, allocations: 292.1 kB / 1.279 GB, free: 14.92 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003453/1.382, allocations: 96.8 kB / 1.279 GB, free: 14.91 MB / 1.014 GB Notification: Performance of SimCode: time 3.4e-07/1.382, allocations: 0.9062 kB / 1.279 GB, free: 14.91 MB / 1.014 GB Notification: Performance of Templates: time 0.03605/1.418, allocations: 21.08 MB / 1.3 GB, free: 13.89 MB / 1.014 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