Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.188/2.188, allocations: 387.1 MB / 399.7 MB, free: 9.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 183.5 kB / 492.3 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 221.3 MB / 0.7872 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009079/0.000908, allocations: 112.5 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.515e-05/2.526e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2611, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.836/5.098, allocations: 1.917 GB / 3.129 GB, free: 414.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/5.098, allocations: 99.69 kB / 3.129 GB, free: 414 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.201/7.299, allocations: 0.7502 GB / 3.879 GB, free: 81.49 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.893e-06/7.299, allocations: 4 kB / 3.879 GB, free: 81.48 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001123/7.299, allocations: 28 kB / 3.879 GB, free: 81.46 MB / 1.151 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.003924/7.303, allocations: 1.514 MB / 3.881 GB, free: 79.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/7.303, allocations: 12.03 kB / 3.881 GB, free: 79.89 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003018/7.306, allocations: 293.9 kB / 3.881 GB, free: 79.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002557/7.308, allocations: 1.248 MB / 3.882 GB, free: 78.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.161e-05/7.308, allocations: 61.31 kB / 3.882 GB, free: 78.24 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/7.309, allocations: 72 kB / 3.882 GB, free: 78.17 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/7.31, allocations: 0.7677 MB / 3.883 GB, free: 77.39 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/7.31, allocations: 0 / 3.883 GB, free: 77.39 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/7.31, allocations: 28 kB / 3.883 GB, free: 77.36 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.504e-05/7.31, allocations: 25.31 kB / 3.883 GB, free: 77.34 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/7.311, allocations: 0.7665 MB / 3.884 GB, free: 76.57 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.005646/7.317, allocations: 3.572 MB / 3.887 GB, free: 72.84 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000945/7.318, allocations: 0.7575 MB / 3.888 GB, free: 72.05 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004914/7.318, allocations: 414.4 kB / 3.889 GB, free: 71.64 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004065/7.319, allocations: 292.1 kB / 3.889 GB, free: 71.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/7.319, allocations: 47.06 kB / 3.889 GB, free: 71.25 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001489/7.32, allocations: 319.3 kB / 3.889 GB, free: 70.94 MB / 1.151 GB Notification: Performance of pre-optimization done (n=55): time 3.347e-06/7.32, allocations: 0 / 3.889 GB, free: 70.94 MB / 1.151 GB Notification: Performance of matching and sorting (n=55): time 0.00163/7.322, allocations: 0.8997 MB / 3.89 GB, free: 70.03 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/7.322, allocations: 63.91 kB / 3.89 GB, free: 69.95 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/7.324, allocations: 1.398 MB / 3.892 GB, free: 68.54 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.831e-05/7.324, allocations: 41.7 kB / 3.892 GB, free: 68.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003396/7.324, allocations: 0.5288 MB / 3.892 GB, free: 67.96 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/7.324, allocations: 197.1 kB / 3.892 GB, free: 67.77 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/7.324, allocations: 12 kB / 3.892 GB, free: 67.76 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.251e-05/7.324, allocations: 329.9 kB / 3.893 GB, free: 67.43 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/7.325, allocations: 317 kB / 3.893 GB, free: 67.12 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/7.325, allocations: 0.5829 MB / 3.893 GB, free: 66.43 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004936/7.326, allocations: 392.4 kB / 3.894 GB, free: 66.05 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/7.326, allocations: 0 / 3.894 GB, free: 66.05 MB / 1.151 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001367/7.327, allocations: 0.8841 MB / 3.895 GB, free: 65.16 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/7.327, allocations: 114.6 kB / 3.895 GB, free: 65.04 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/7.327, allocations: 0 / 3.895 GB, free: 65.04 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/7.327, allocations: 0 / 3.895 GB, free: 65.04 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009154/7.328, allocations: 183.8 kB / 3.895 GB, free: 64.86 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/7.328, allocations: 4 kB / 3.895 GB, free: 64.86 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/7.33, allocations: 143.8 kB / 3.895 GB, free: 64.72 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.906e-05/7.33, allocations: 43.91 kB / 3.895 GB, free: 64.68 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/7.33, allocations: 4 kB / 3.895 GB, free: 64.67 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001102/7.331, allocations: 0.7471 MB / 3.896 GB, free: 63.92 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/7.331, allocations: 0 / 3.896 GB, free: 63.92 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/7.331, allocations: 4 kB / 3.896 GB, free: 63.92 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008225/7.332, allocations: 179.8 kB / 3.896 GB, free: 63.74 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/7.332, allocations: 0 / 3.896 GB, free: 63.74 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/7.334, allocations: 155.7 kB / 3.896 GB, free: 63.59 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.811e-05/7.334, allocations: 35.95 kB / 3.896 GB, free: 63.55 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 59 * 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.0002068/7.334, allocations: 145.5 kB / 3.896 GB, free: 63.41 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/7.334, allocations: 130.4 kB / 3.897 GB, free: 63.28 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001808/7.336, allocations: 0.9802 MB / 3.898 GB, free: 62.29 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/7.336, allocations: 8 kB / 3.898 GB, free: 62.28 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/7.336, allocations: 0 / 3.898 GB, free: 62.28 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/7.336, allocations: 3.984 kB / 3.898 GB, free: 62.27 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003395/7.34, allocations: 2.489 MB / 3.9 GB, free: 59.68 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/7.34, allocations: 0 / 3.9 GB, free: 59.68 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006852/7.34, allocations: 148.1 kB / 3.9 GB, free: 59.54 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/7.34, allocations: 4 kB / 3.9 GB, free: 59.53 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.295e-05/7.341, allocations: 16 kB / 3.9 GB, free: 59.52 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/7.341, allocations: 19.88 kB / 3.9 GB, free: 59.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/7.341, allocations: 0 / 3.9 GB, free: 59.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/7.342, allocations: 1.558 MB / 3.902 GB, free: 57.82 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005985/7.343, allocations: 371.3 kB / 3.902 GB, free: 57.44 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/7.343, allocations: 20 kB / 3.902 GB, free: 57.42 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/7.344, allocations: 103.7 kB / 3.902 GB, free: 57.32 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/7.345, allocations: 52.45 kB / 3.902 GB, free: 57.27 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.25e-05/7.345, allocations: 27.98 kB / 3.902 GB, free: 57.24 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001416/7.346, allocations: 1.098 MB / 3.903 GB, free: 56.14 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.61e-07/7.346, allocations: 0 / 3.903 GB, free: 56.14 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002293/7.348, allocations: 0.6908 MB / 3.904 GB, free: 55.45 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.002572/7.351, allocations: 1.87 MB / 3.906 GB, free: 53.49 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001768/7.353, allocations: 1.151 MB / 3.907 GB, free: 52.34 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/7.353, allocations: 3.938 kB / 3.907 GB, free: 52.33 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004731/7.353, allocations: 387.5 kB / 3.907 GB, free: 51.96 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003076/7.356, allocations: 0.5438 MB / 3.908 GB, free: 51.42 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/7.359, allocations: 1.661 MB / 3.909 GB, free: 49.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/7.359, allocations: 1.175 MB / 3.911 GB, free: 48.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002438/7.362, allocations: 0.5212 MB / 3.911 GB, free: 47.97 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/7.362, allocations: 95.39 kB / 3.911 GB, free: 47.88 MB / 1.151 GB Notification: Performance of SimCode: time 6.71e-07/7.362, allocations: 0 / 3.911 GB, free: 47.88 MB / 1.151 GB Notification: Performance of Templates: time 0.8114/8.174, allocations: 53.32 MB / 3.963 GB, free: 241.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.sim & ./Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches