Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox") translateModel(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001402/0.001402, allocations: 119.2 kB / 16.37 MB, free: 6.016 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.001623/0.001623, allocations: 193 kB / 17.31 MB, free: 5.613 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.295/1.295, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002049/0.002049, allocations: 284.4 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9219/0.9219, allocations: 169.2 MB / 0.4989 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 93.64 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1535, allocations: 86.97 MB / 0.6816 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.457/0.6105, allocations: 189.7 MB / 0.8668 GB, free: 0.7383 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.007463/0.618, allocations: 4.277 MB / 0.871 GB, free: 12.45 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001088/0.6191, allocations: 27.81 kB / 0.871 GB, free: 12.42 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.6205, allocations: 0.5084 MB / 0.8715 GB, free: 11.91 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003843/0.6244, allocations: 1.563 MB / 0.8731 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003591/0.628, allocations: 1.345 MB / 0.8744 GB, free: 9.008 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.002981/0.631, allocations: 2.271 MB / 0.8766 GB, free: 6.734 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.6323, allocations: 1.083 MB / 0.8776 GB, free: 5.648 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.6336, allocations: 0.9537 MB / 0.8786 GB, free: 4.691 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009795/0.6346, allocations: 0.8795 MB / 0.8794 GB, free: 3.809 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001904/0.6348, allocations: 140 kB / 0.8796 GB, free: 3.672 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002173/0.637, allocations: 1.239 MB / 0.8808 GB, free: 2.43 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003865/0.6374, allocations: 422.7 kB / 0.8812 GB, free: 2.016 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0006191/0.638, allocations: 0.6492 MB / 0.8818 GB, free: 1.363 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.00219/0.6402, allocations: 1.979 MB / 0.8837 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.6402, allocations: 7.984 kB / 0.8838 GB, free: 15.37 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.212e-06/0.6402, allocations: 4 kB / 0.8838 GB, free: 15.37 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.318e-05/0.6402, allocations: 0 / 0.8838 GB, free: 15.37 MB / 0.6544 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.004054/0.6443, allocations: 1.717 MB / 0.8854 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.6443, allocations: 8.031 kB / 0.8854 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008083/0.6452, allocations: 186.4 kB / 0.8856 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.647, allocations: 1.072 MB / 0.8867 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.647, allocations: 41 kB / 0.8867 GB, free: 12.23 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.6471, allocations: 63.94 kB / 0.8868 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.6483, allocations: 0.6037 MB / 0.8874 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.6483, allocations: 4 kB / 0.8874 GB, free: 11.56 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.597e-05/0.6484, allocations: 20 kB / 0.8874 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.6484, allocations: 21 kB / 0.8874 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.6497, allocations: 0.6245 MB / 0.888 GB, free: 10.9 MB / 0.6544 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.003943/0.6536, allocations: 2.662 MB / 0.8906 GB, free: 8.098 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.6547, allocations: 0.5334 MB / 0.8911 GB, free: 7.555 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006154/0.6553, allocations: 353.3 kB / 0.8915 GB, free: 7.207 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003795/0.6557, allocations: 295.2 kB / 0.8918 GB, free: 6.863 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.6558, allocations: 42.44 kB / 0.8918 GB, free: 6.812 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006301/0.6564, allocations: 147.4 kB / 0.8919 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=43): time 2.395e-06/0.6564, allocations: 0 / 0.8919 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of matching and sorting (n=43): time 0.002238/0.6587, allocations: 1.013 MB / 0.8929 GB, free: 5.648 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.6587, allocations: 59.41 kB / 0.893 GB, free: 5.578 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.6606, allocations: 1.271 MB / 0.8942 GB, free: 4.289 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.962e-05/0.6606, allocations: 37.7 kB / 0.8943 GB, free: 4.246 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003236/0.661, allocations: 429.7 kB / 0.8947 GB, free: 3.82 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.6611, allocations: 157.7 kB / 0.8948 GB, free: 3.664 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.6613, allocations: 114 kB / 0.8949 GB, free: 3.547 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.6614, allocations: 322 kB / 0.8952 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000553/0.662, allocations: 274.2 kB / 0.8955 GB, free: 2.957 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007528/0.6628, allocations: 490 kB / 0.896 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.6639, allocations: 0.583 MB / 0.8965 GB, free: 1.816 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.6639, allocations: 6.312 kB / 0.8965 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001477/0.6654, allocations: 0.7414 MB / 0.8973 GB, free: 1.062 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.6654, allocations: 4 kB / 0.8973 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.6655, allocations: 4 kB / 0.8973 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.6655, allocations: 0 / 0.8973 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006611/0.6661, allocations: 123.8 kB / 0.8974 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.6662, allocations: 0 / 0.8974 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.6673, allocations: 99.72 kB / 0.8975 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.253e-05/0.6674, allocations: 27.97 kB / 0.8975 GB, free: 0.8086 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007714/0.6682, allocations: 463.9 kB / 0.8979 GB, free: 360 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007497/0.6689, allocations: 481.8 kB / 0.8984 GB, free: 15.8 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001136/0.6701, allocations: 0.5848 MB / 0.899 GB, free: 15.21 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.064e-06/0.6701, allocations: 4 kB / 0.899 GB, free: 15.21 MB / 0.67 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.001531/0.6716, allocations: 0.7317 MB / 0.8997 GB, free: 14.47 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.6717, allocations: 7.938 kB / 0.8997 GB, free: 14.46 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-06/0.6717, allocations: 0 / 0.8997 GB, free: 14.46 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.512e-06/0.6717, allocations: 8 kB / 0.8997 GB, free: 14.45 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/0.6723, allocations: 115.8 kB / 0.8998 GB, free: 14.34 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.6723, allocations: 4 kB / 0.8998 GB, free: 14.34 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.6737, allocations: 124.2 kB / 0.8999 GB, free: 14.21 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.734e-05/0.6738, allocations: 23.97 kB / 0.9 GB, free: 14.19 MB / 0.67 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.0002262/0.674, allocations: 207.9 kB / 0.9002 GB, free: 13.98 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.6742, allocations: 110.6 kB / 0.9003 GB, free: 13.88 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.6759, allocations: 0.8046 MB / 0.9011 GB, free: 13.07 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.6759, allocations: 4 kB / 0.9011 GB, free: 13.07 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.6759, allocations: 4 kB / 0.9011 GB, free: 13.06 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.6759, allocations: 5.047 kB / 0.9011 GB, free: 13.06 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003077/0.679, allocations: 1.948 MB / 0.903 GB, free: 11.03 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.679, allocations: 4.281 kB / 0.903 GB, free: 11.02 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005553/0.6796, allocations: 115.8 kB / 0.9031 GB, free: 10.91 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.6796, allocations: 4 kB / 0.9031 GB, free: 10.91 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.814e-05/0.6797, allocations: 19.98 kB / 0.9031 GB, free: 10.89 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.6797, allocations: 11.88 kB / 0.9031 GB, free: 10.88 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.6797, allocations: 0.875 kB / 0.9031 GB, free: 10.88 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.6817, allocations: 1.228 MB / 0.9043 GB, free: 9.605 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004635/0.6822, allocations: 287.6 kB / 0.9046 GB, free: 9.305 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.6824, allocations: 16 kB / 0.9046 GB, free: 9.289 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009561/0.6833, allocations: 67.91 kB / 0.9047 GB, free: 9.223 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.6834, allocations: 43.89 kB / 0.9047 GB, free: 9.18 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.6835, allocations: 19.98 kB / 0.9047 GB, free: 9.16 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001402/0.6849, allocations: 0.9208 MB / 0.9056 GB, free: 8.23 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6849, allocations: 0 / 0.9056 GB, free: 8.23 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001086/0.686, allocations: 411.4 kB / 0.906 GB, free: 7.828 MB / 0.67 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.000455/0.6865, allocations: 220.8 kB / 0.9062 GB, free: 7.617 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00202/0.6885, allocations: 0.9524 MB / 0.9072 GB, free: 6.664 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6885, allocations: 0 / 0.9072 GB, free: 6.664 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0006326/0.6892, allocations: 340.1 kB / 0.9075 GB, free: 6.332 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.6909, allocations: 425.1 kB / 0.9079 GB, free: 5.914 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.6941, allocations: 1.676 MB / 0.9095 GB, free: 4.176 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/0.6949, allocations: 1.045 MB / 0.9106 GB, free: 3.094 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001462/0.6964, allocations: 291 kB / 0.9108 GB, free: 2.805 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003539/0.6968, allocations: 99.31 kB / 0.9109 GB, free: 2.707 MB / 0.67 GB Notification: Performance of SimCode: time 7.21e-07/0.6968, allocations: 8 kB / 0.9109 GB, free: 2.699 MB / 0.67 GB Notification: Performance of Templates: time 0.03464/0.7314, allocations: 21.27 MB / 0.9317 GB, free: 13.71 MB / 0.7012 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1)