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.001218/0.001218, allocations: 111.7 kB / 16.41 MB, free: 6.488 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.00123/0.00123, allocations: 187 kB / 17.34 MB, free: 5.762 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002375/0.002375, allocations: 292.7 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9637/0.9637, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 95.86 kB / 0.6821 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4619/0.4638, allocations: 86.98 MB / 0.767 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.229/0.6929, allocations: 189.7 MB / 0.9523 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01058/0.7035, allocations: 4.288 MB / 0.9565 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.7055, allocations: 27.81 kB / 0.9565 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.7074, allocations: 0.4889 MB / 0.957 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.6355/1.343, allocations: 1.562 MB / 0.9585 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004453/1.348, allocations: 1.346 MB / 0.9598 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.004747/1.352, allocations: 2.265 MB / 0.962 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001999/1.354, allocations: 1.08 MB / 0.9631 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002275/1.357, allocations: 0.9575 MB / 0.964 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/1.358, allocations: 0.8716 MB / 0.9648 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002835/1.359, allocations: 141 kB / 0.965 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002822/1.361, allocations: 1.243 MB / 0.9662 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0005559/1.362, allocations: 428.5 kB / 0.9666 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0009236/1.363, allocations: 0.6417 MB / 0.9672 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.003191/1.366, allocations: 1.985 MB / 0.9692 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.366, allocations: 0 / 0.9692 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.3e-06/1.366, allocations: 5.594 kB / 0.9692 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.758e-05/1.366, allocations: 4.297 kB / 0.9692 GB, free: 2.477 MB / 0.7169 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.004417/1.371, allocations: 1.725 MB / 0.9709 GB, free: 17.65 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/1.371, allocations: 10.25 kB / 0.9709 GB, free: 17.65 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008864/1.371, allocations: 183.8 kB / 0.971 GB, free: 17.59 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/1.373, allocations: 1.065 MB / 0.9721 GB, free: 17.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/1.373, allocations: 43.66 kB / 0.9721 GB, free: 17.23 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/1.373, allocations: 71.45 kB / 0.9722 GB, free: 17.23 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/1.375, allocations: 0.6125 MB / 0.9728 GB, free: 17.2 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/1.375, allocations: 0 / 0.9728 GB, free: 17.2 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.02e-05/1.375, allocations: 20.03 kB / 0.9728 GB, free: 17.2 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.862e-05/1.375, allocations: 21.19 kB / 0.9728 GB, free: 17.2 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/1.376, allocations: 0.6265 MB / 0.9734 GB, free: 17.2 MB / 0.7325 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.003769/1.38, allocations: 2.648 MB / 0.976 GB, free: 16.4 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/1.381, allocations: 0.5458 MB / 0.9766 GB, free: 16.37 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005545/1.381, allocations: 348.8 kB / 0.9769 GB, free: 16.36 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003991/1.382, allocations: 291.6 kB / 0.9772 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/1.382, allocations: 42.03 kB / 0.9772 GB, free: 16.04 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006194/1.382, allocations: 143.1 kB / 0.9774 GB, free: 16.01 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=43): time 2.384e-06/1.382, allocations: 0 / 0.9774 GB, free: 16.01 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.002159/1.385, allocations: 1.023 MB / 0.9784 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/1.385, allocations: 57.91 kB / 0.9784 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/1.387, allocations: 1.273 MB / 0.9797 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.881e-05/1.387, allocations: 36.95 kB / 0.9797 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/1.387, allocations: 438 kB / 0.9801 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/1.387, allocations: 145 kB / 0.9802 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/1.387, allocations: 119.6 kB / 0.9804 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001132/1.387, allocations: 322.2 kB / 0.9807 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005262/1.388, allocations: 270.2 kB / 0.9809 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007006/1.389, allocations: 489.4 kB / 0.9814 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/1.39, allocations: 0.5857 MB / 0.982 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.39, allocations: 0 / 0.982 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001495/1.391, allocations: 0.7511 MB / 0.9827 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/1.391, allocations: 5.922 kB / 0.9827 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/1.391, allocations: 3.219 kB / 0.9827 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/1.391, allocations: 0.8125 kB / 0.9827 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000643/1.392, allocations: 121.9 kB / 0.9828 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/1.392, allocations: 2.594 kB / 0.9828 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/1.393, allocations: 92.95 kB / 0.9829 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.483e-05/1.393, allocations: 23.45 kB / 0.9829 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007889/1.394, allocations: 470.8 kB / 0.9834 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006594/1.395, allocations: 481.7 kB / 0.9838 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001059/1.396, allocations: 0.5848 MB / 0.9844 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.375e-06/1.396, allocations: 1.484 kB / 0.9844 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.00142/1.397, allocations: 0.729 MB / 0.9851 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/1.397, allocations: 14.72 kB / 0.9851 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/1.397, allocations: 0 / 0.9851 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.05e-06/1.397, allocations: 2.562 kB / 0.9851 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005985/1.398, allocations: 120.5 kB / 0.9853 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/1.398, allocations: 5.219 kB / 0.9853 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/1.399, allocations: 135.8 kB / 0.9854 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.861e-05/1.399, allocations: 23.95 kB / 0.9854 GB, free: 14.4 MB / 0.7325 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.0002392/1.4, allocations: 205.2 kB / 0.9856 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/1.4, allocations: 102.9 kB / 0.9857 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/1.402, allocations: 0.8155 MB / 0.9865 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/1.402, allocations: 5.344 kB / 0.9865 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/1.402, allocations: 0 / 0.9865 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/1.402, allocations: 6.719 kB / 0.9865 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/1.405, allocations: 1.952 MB / 0.9884 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/1.405, allocations: 5.531 kB / 0.9884 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005608/1.405, allocations: 105 kB / 0.9885 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/1.405, allocations: 4.375 kB / 0.9885 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/1.405, allocations: 18.41 kB / 0.9886 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.108e-05/1.405, allocations: 7.938 kB / 0.9886 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.405, allocations: 5.031 kB / 0.9886 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/1.407, allocations: 1.233 MB / 0.9898 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004801/1.408, allocations: 288.5 kB / 0.99 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/1.408, allocations: 16.47 kB / 0.9901 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/1.409, allocations: 68.05 kB / 0.9901 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/1.409, allocations: 46.7 kB / 0.9902 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-05/1.409, allocations: 16.78 kB / 0.9902 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001652/1.411, allocations: 0.9257 MB / 0.9911 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.61e-07/1.411, allocations: 0 / 0.9911 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00143/1.412, allocations: 404.4 kB / 0.9915 GB, free: 13.14 MB / 0.7325 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.0007043/1.413, allocations: 216.8 kB / 0.9917 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00214/1.415, allocations: 0.9448 MB / 0.9926 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/1.415, allocations: 1.094 kB / 0.9926 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005953/1.416, allocations: 334.5 kB / 0.9929 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002079/1.418, allocations: 432.6 kB / 0.9933 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/1.421, allocations: 1.729 MB / 0.995 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005923/1.421, allocations: 1.044 MB / 0.996 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004525/1.422, allocations: 96.91 kB / 0.9961 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of SimCode: time 9.42e-07/1.422, allocations: 0.875 kB / 0.9961 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of Templates: time 0.02985/1.452, allocations: 16.36 MB / 1.012 GB, free: 8.473 MB / 0.7325 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1)