Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.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.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTraSubIn.C|senTraSubOut.C|cheConMas.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") translateModel(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTraSubIn.C|senTraSubOut.C|cheConMas.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 103.2 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.001418/0.001418, allocations: 173.3 kB / 15.95 MB, free: 212 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.337/1.337, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.527/2.527, allocations: 436.5 MB / 0.7104 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.000323, allocations: 12 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6625/0.6629, allocations: 153.7 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.1958/0.8587, allocations: 155.8 MB / 1.173 GB, free: 4.922 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.01262/0.8713, allocations: 10.91 MB / 1.184 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008877/0.8723, allocations: 27.81 kB / 1.184 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001278/0.8735, allocations: 434 kB / 1.184 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002981/0.8765, allocations: 1.044 MB / 1.185 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002245/0.8788, allocations: 0.8201 MB / 1.186 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001696/0.8805, allocations: 1.16 MB / 1.187 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009836/0.8815, allocations: 0.6178 MB / 1.188 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002655/0.8842, allocations: 1.211 MB / 1.189 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006323/0.8848, allocations: 430.2 kB / 1.189 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.557e-05/0.8849, allocations: 36 kB / 1.189 GB, free: 4.207 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009783/0.8859, allocations: 411.4 kB / 1.19 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002913/0.8862, allocations: 319.1 kB / 1.19 GB, free: 3.492 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.8864, allocations: 201.3 kB / 1.19 GB, free: 3.289 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000944/0.8873, allocations: 0.9936 MB / 1.191 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.8873, allocations: 4 kB / 1.191 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8873, allocations: 3.938 kB / 1.191 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.8874, allocations: 0 / 1.191 GB, free: 2.285 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.001484/0.8889, allocations: 1.04 MB / 1.192 GB, free: 1.195 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.8889, allocations: 19.98 kB / 1.192 GB, free: 1.176 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.89, allocations: 210.6 kB / 1.192 GB, free: 0.9688 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000972/0.891, allocations: 0.629 MB / 1.193 GB, free: 304 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.257e-05/0.891, allocations: 58 kB / 1.193 GB, free: 248 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.8912, allocations: 76 kB / 1.193 GB, free: 172 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.8924, allocations: 0.921 MB / 1.194 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.8924, allocations: 4 kB / 1.194 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.649e-05/0.8925, allocations: 39.94 kB / 1.194 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.925e-05/0.8925, allocations: 29.3 kB / 1.194 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009618/0.8935, allocations: 0.6138 MB / 1.195 GB, free: 14.47 MB / 0.9512 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.0041/0.8976, allocations: 4.597 MB / 1.199 GB, free: 9.578 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007582/0.8984, allocations: 0.5424 MB / 1.2 GB, free: 8.992 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.241e-05/0.8984, allocations: 23.91 kB / 1.2 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.8985, allocations: 38.56 kB / 1.2 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=43): time 1.884e-06/0.8985, allocations: 0 / 1.2 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.002556/0.901, allocations: 1.575 MB / 1.201 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.9011, allocations: 114.7 kB / 1.201 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007568/0.9019, allocations: 0.7077 MB / 1.202 GB, free: 6.438 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.536e-05/0.9019, allocations: 37.7 kB / 1.202 GB, free: 6.395 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.9022, allocations: 411.7 kB / 1.202 GB, free: 5.984 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.9024, allocations: 169.7 kB / 1.203 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.296e-05/0.9024, allocations: 12 kB / 1.203 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.9025, allocations: 334 kB / 1.203 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002696/0.9028, allocations: 181.2 kB / 1.203 GB, free: 5.297 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004279/0.9032, allocations: 409 kB / 1.204 GB, free: 4.801 MB / 0.9512 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (sin.p = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.9048, allocations: 0.6766 MB / 1.204 GB, free: 4.105 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.9049, allocations: 4 kB / 1.204 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009579/0.9058, allocations: 0.6618 MB / 1.205 GB, free: 3.434 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.9058, allocations: 8 kB / 1.205 GB, free: 3.426 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.9059, allocations: 15.98 kB / 1.205 GB, free: 3.41 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.9059, allocations: 8 kB / 1.205 GB, free: 3.402 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004596/0.9063, allocations: 127.8 kB / 1.205 GB, free: 3.277 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.9064, allocations: 11.98 kB / 1.205 GB, free: 3.266 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006357/0.907, allocations: 55.81 kB / 1.205 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.364e-05/0.9071, allocations: 32.09 kB / 1.205 GB, free: 3.18 MB / 0.9512 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 2 (intTraSubOut.local_reset,intTraSubIn.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0003787/0.9075, allocations: 279.2 kB / 1.205 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.9076, allocations: 79.06 kB / 1.205 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.9078, allocations: 87.66 kB / 1.206 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.9078, allocations: 7.953 kB / 1.206 GB, free: 2.727 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.9078, allocations: 7.938 kB / 1.206 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006935/0.9085, allocations: 0.695 MB / 1.206 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.9108, allocations: 1.634 MB / 1.208 GB, free: 200 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.9108, allocations: 8.562 kB / 1.208 GB, free: 192 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004438/0.9113, allocations: 103.8 kB / 1.208 GB, free: 88 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-05/0.9113, allocations: 8 kB / 1.208 GB, free: 80 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.9113, allocations: 19.98 kB / 1.208 GB, free: 60 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.9113, allocations: 4 kB / 1.208 GB, free: 56 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.9113, allocations: 11.94 kB / 1.208 GB, free: 44 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.9125, allocations: 1.052 MB / 1.209 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.9128, allocations: 208.1 kB / 1.209 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.9129, allocations: 23.92 kB / 1.209 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/0.9134, allocations: 25.23 kB / 1.209 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.9135, allocations: 47.84 kB / 1.209 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.9136, allocations: 16 kB / 1.209 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0006123/0.9142, allocations: 0.5068 MB / 1.21 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of sort global known variables: time 4.41e-07/0.9142, allocations: 0 / 1.21 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007484/0.9149, allocations: 200 kB / 1.21 GB, free: 13.8 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 5 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.mC[1],intTraSubIn.y,intTraSubOut.y) * 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 (45): * Single equations (assignments): 45 * 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.0004374/0.9154, allocations: 206.3 kB / 1.21 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0007867/0.9162, allocations: 473 kB / 1.211 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.9162, allocations: 7.938 kB / 1.211 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.9165, allocations: 204.7 kB / 1.211 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.9185, allocations: 456.8 kB / 1.211 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.921, allocations: 2.006 MB / 1.213 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005499/0.9216, allocations: 1.04 MB / 1.214 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0006003/0.9222, allocations: 195 kB / 1.214 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.9223, allocations: 71.42 kB / 1.214 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.9223, allocations: 0 / 1.214 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of Templates: time 0.02162/0.944, allocations: 13.93 MB / 1.228 GB, free: 11.39 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.makefile (rm -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & ./Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.csv","../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches