Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: "" <> buildModelFMU(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002433/0.002434, allocations: 283 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.031/1.031, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002638/0.002638, allocations: 98.12 kB / 0.6065 GB, free: 24.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1442, allocations: 89.15 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.4348/0.5791, allocations: 187.3 MB / 0.8765 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01562/0.5947, allocations: 13.07 MB / 0.8892 GB, free: 3.148 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009498/0.5957, allocations: 31.5 kB / 0.8893 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.5969, allocations: 425.2 kB / 0.8897 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.002511/0.5994, allocations: 1.163 MB / 0.8908 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001579/0.601, allocations: 0.7001 MB / 0.8915 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.002108/0.6031, allocations: 2.005 MB / 0.8935 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.6042, allocations: 0.8525 MB / 0.8943 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003322/0.6075, allocations: 1.802 MB / 0.896 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.6088, allocations: 0.6655 MB / 0.8967 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.609, allocations: 80 kB / 0.8968 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.6105, allocations: 0.8692 MB / 0.8976 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0003894/0.6109, allocations: 391 kB / 0.898 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0005145/0.6114, allocations: 0.4976 MB / 0.8985 GB, free: 9.68 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.001688/0.6131, allocations: 1.476 MB / 0.8999 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.6131, allocations: 4 kB / 0.8999 GB, free: 8.191 MB / 0.6231 GB Notification: Performance of FrontEnd: time 9.32e-07/0.6131, allocations: 0 / 0.8999 GB, free: 8.191 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.519e-05/0.6131, allocations: 0 / 0.8999 GB, free: 8.191 MB / 0.6231 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.001762/0.6149, allocations: 1.235 MB / 0.9011 GB, free: 6.902 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.615, allocations: 12.03 kB / 0.9011 GB, free: 6.891 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.6151, allocations: 122.5 kB / 0.9013 GB, free: 6.762 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.6162, allocations: 214.6 kB / 0.9015 GB, free: 6.551 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009659/0.6172, allocations: 0.6402 MB / 0.9021 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.623e-05/0.6173, allocations: 65.98 kB / 0.9021 GB, free: 5.805 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.6174, allocations: 79.98 kB / 0.9022 GB, free: 5.727 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.6188, allocations: 0.9288 MB / 0.9031 GB, free: 4.715 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.6188, allocations: 6.688 kB / 0.9031 GB, free: 4.711 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.945e-05/0.6189, allocations: 39.88 kB / 0.9032 GB, free: 4.672 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.52e-05/0.6189, allocations: 25.31 kB / 0.9032 GB, free: 4.648 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.6199, allocations: 0.6177 MB / 0.9038 GB, free: 4.031 MB / 0.6231 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.004504/0.6244, allocations: 4.597 MB / 0.9083 GB, free: 15.14 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008058/0.6253, allocations: 0.5407 MB / 0.9088 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.6256, allocations: 255.9 kB / 0.9091 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001837/0.6258, allocations: 105.1 kB / 0.9092 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.6259, allocations: 38.5 kB / 0.9092 GB, free: 14.13 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=43): time 1.793e-06/0.6259, allocations: 4 kB / 0.9092 GB, free: 14.12 MB / 0.6387 GB Notification: Performance of matching and sorting (n=45): time 0.00271/0.6286, allocations: 1.585 MB / 0.9108 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.6287, allocations: 110.8 kB / 0.9109 GB, free: 12.35 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008552/0.6295, allocations: 0.7116 MB / 0.9116 GB, free: 11.62 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.6296, allocations: 37.7 kB / 0.9116 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003148/0.6299, allocations: 415.7 kB / 0.912 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.63, allocations: 161.7 kB / 0.9121 GB, free: 11.01 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.6302, allocations: 122.2 kB / 0.9123 GB, free: 10.89 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.6304, allocations: 330 kB / 0.9126 GB, free: 10.56 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.6307, allocations: 193.1 kB / 0.9128 GB, free: 10.37 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/0.6312, allocations: 413 kB / 0.9132 GB, free: 9.871 MB / 0.6387 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.002254/0.6335, allocations: 1.186 MB / 0.9143 GB, free: 8.582 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.6335, allocations: 8 kB / 0.9143 GB, free: 8.574 MB / 0.6387 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001015/0.6345, allocations: 0.6604 MB / 0.915 GB, free: 7.906 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.6345, allocations: 11.94 kB / 0.915 GB, free: 7.895 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.6345, allocations: 4 kB / 0.915 GB, free: 7.891 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.6346, allocations: 12 kB / 0.915 GB, free: 7.879 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.635, allocations: 123.8 kB / 0.9151 GB, free: 7.758 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.6351, allocations: 11.94 kB / 0.9151 GB, free: 7.746 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005194/0.6356, allocations: 29.39 kB / 0.9151 GB, free: 7.719 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.6356, allocations: 28.25 kB / 0.9152 GB, free: 7.691 MB / 0.6387 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003448/0.636, allocations: 278 kB / 0.9154 GB, free: 7.41 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.6362, allocations: 83 kB / 0.9155 GB, free: 7.328 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001706/0.6363, allocations: 97.34 kB / 0.9156 GB, free: 7.227 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.6363, allocations: 4 kB / 0.9156 GB, free: 7.223 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.6364, allocations: 3.938 kB / 0.9156 GB, free: 7.219 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007443/0.6371, allocations: 0.696 MB / 0.9163 GB, free: 6.438 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002365/0.6395, allocations: 1.648 MB / 0.9179 GB, free: 4.684 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.6395, allocations: 4 kB / 0.9179 GB, free: 4.68 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.6399, allocations: 99.83 kB / 0.918 GB, free: 4.582 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.64, allocations: 7.938 kB / 0.918 GB, free: 4.574 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.64, allocations: 20.48 kB / 0.918 GB, free: 4.555 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.64, allocations: 15.94 kB / 0.918 GB, free: 4.539 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/0.64, allocations: 4 kB / 0.9181 GB, free: 4.535 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.6411, allocations: 0.8684 MB / 0.9189 GB, free: 3.605 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.6414, allocations: 209.2 kB / 0.9191 GB, free: 3.383 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.733e-05/0.6415, allocations: 12 kB / 0.9191 GB, free: 3.371 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.642, allocations: 21.3 kB / 0.9191 GB, free: 3.352 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.6421, allocations: 39.84 kB / 0.9192 GB, free: 3.312 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/0.6421, allocations: 23.98 kB / 0.9192 GB, free: 3.289 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006247/0.6427, allocations: 0.5068 MB / 0.9197 GB, free: 2.789 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6427, allocations: 0 / 0.9197 GB, free: 2.789 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0007044/0.6434, allocations: 204 kB / 0.9199 GB, free: 2.59 MB / 0.6387 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 (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.001727/0.6452, allocations: 1.51 MB / 0.9214 GB, free: 1.023 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0008789/0.6461, allocations: 0.5051 MB / 0.9218 GB, free: 0.5195 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.6461, allocations: 0 / 0.9218 GB, free: 0.5195 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.6464, allocations: 216 kB / 0.9221 GB, free: 316 kB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/0.6484, allocations: 486.9 kB / 0.9225 GB, free: 15.85 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008721/0.6572, allocations: 6.927 MB / 0.9293 GB, free: 8.52 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/0.6578, allocations: 1.028 MB / 0.9303 GB, free: 7.465 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0006932/0.6585, allocations: 199 kB / 0.9305 GB, free: 7.266 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003944/0.659, allocations: 303.3 kB / 0.9308 GB, free: 6.969 MB / 0.6544 GB Notification: Performance of SimCode: time 9.71e-07/0.659, allocations: 0 / 0.9308 GB, free: 6.969 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05149/0.7105, allocations: 22.07 MB / 0.9523 GB, free: 1.344 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.915/8.626, allocations: 6.094 kB / 0.9523 GB, free: 1.34 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.fmu > BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1)