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.001026/0.001026, 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.001009/0.001009, allocations: 195.2 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002056/0.002056, allocations: 283 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.89/0.89, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 100.6 kB / 0.5953 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1277, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.4114/0.5392, allocations: 187.3 MB / 0.8632 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01367/0.5529, allocations: 13.06 MB / 0.8759 GB, free: 8.02 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008588/0.5537, allocations: 34.03 kB / 0.8759 GB, free: 8.008 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.5549, allocations: 422.3 kB / 0.8764 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002312/0.5572, allocations: 1.161 MB / 0.8775 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.5586, allocations: 0.6969 MB / 0.8782 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001895/0.5605, allocations: 2.01 MB / 0.8801 GB, free: 5.062 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.5616, allocations: 0.8453 MB / 0.881 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003152/0.5647, allocations: 1.803 MB / 0.8827 GB, free: 3.379 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.5661, allocations: 0.6663 MB / 0.8834 GB, free: 2.98 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.5662, allocations: 84.38 kB / 0.8834 GB, free: 2.977 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.5677, allocations: 0.8685 MB / 0.8843 GB, free: 2.523 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003672/0.5681, allocations: 394.3 kB / 0.8847 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006068/0.5687, allocations: 0.4957 MB / 0.8852 GB, free: 1.941 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001648/0.5703, allocations: 1.477 MB / 0.8866 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.5703, allocations: 0 / 0.8866 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5704, allocations: 3.938 kB / 0.8866 GB, free: 0.9727 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.718e-05/0.5704, allocations: 0 / 0.8866 GB, free: 0.9727 MB / 0.5919 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.00172/0.5721, allocations: 1.235 MB / 0.8878 GB, free: 4 kB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.5722, allocations: 9.625 kB / 0.8878 GB, free: 4 kB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001419/0.5723, allocations: 126.3 kB / 0.8879 GB, free: 15.9 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.5735, allocations: 218.5 kB / 0.8881 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008922/0.5744, allocations: 0.6387 MB / 0.8888 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.5744, allocations: 56.31 kB / 0.8888 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.5745, allocations: 85.09 kB / 0.8889 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.5757, allocations: 0.938 MB / 0.8898 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.5757, allocations: 6.438 kB / 0.8898 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.28e-05/0.5758, allocations: 31.38 kB / 0.8899 GB, free: 14.53 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-05/0.5758, allocations: 32.94 kB / 0.8899 GB, free: 14.53 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008783/0.5767, allocations: 0.6117 MB / 0.8905 GB, free: 14.23 MB / 0.6075 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.003809/0.5805, allocations: 4.601 MB / 0.895 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.5812, allocations: 0.5431 MB / 0.8955 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.5815, allocations: 247.4 kB / 0.8957 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001602/0.5817, allocations: 96.53 kB / 0.8958 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.5817, allocations: 42.83 kB / 0.8959 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=43): time 3.106e-06/0.5818, allocations: 0 / 0.8959 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=45): time 0.002444/0.5842, allocations: 1.588 MB / 0.8974 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.5843, allocations: 115.9 kB / 0.8975 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007564/0.585, allocations: 0.7106 MB / 0.8982 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.5851, allocations: 37.7 kB / 0.8983 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.5854, allocations: 416 kB / 0.8987 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.5855, allocations: 165.7 kB / 0.8988 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.5856, allocations: 118.2 kB / 0.8989 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.5858, allocations: 334 kB / 0.8993 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.586, allocations: 185.2 kB / 0.8994 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004245/0.5865, allocations: 413 kB / 0.8998 GB, free: 5.781 MB / 0.6075 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.002188/0.5887, allocations: 1.188 MB / 0.901 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.5887, allocations: 0 / 0.901 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009729/0.5897, allocations: 0.6677 MB / 0.9016 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.5897, allocations: 11.94 kB / 0.9016 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.5897, allocations: 8 kB / 0.9017 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.5897, allocations: 8 kB / 0.9017 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/0.5902, allocations: 142.1 kB / 0.9018 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.5902, allocations: 8.562 kB / 0.9018 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005254/0.5907, allocations: 39.77 kB / 0.9018 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.66e-05/0.5908, allocations: 28 kB / 0.9019 GB, free: 3.578 MB / 0.6075 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.0003043/0.5911, allocations: 276.8 kB / 0.9021 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.5913, allocations: 83 kB / 0.9022 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001382/0.5914, allocations: 87.66 kB / 0.9023 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.5914, allocations: 4 kB / 0.9023 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.5914, allocations: 4 kB / 0.9023 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006506/0.5921, allocations: 0.7027 MB / 0.903 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.5943, allocations: 1.631 MB / 0.9046 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.5943, allocations: 4 kB / 0.9046 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004271/0.5947, allocations: 100.3 kB / 0.9047 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.136e-06/0.5947, allocations: 15.94 kB / 0.9047 GB, free: 488 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.5948, allocations: 12 kB / 0.9047 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.5948, allocations: 7.984 kB / 0.9047 GB, free: 468 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.5948, allocations: 7.938 kB / 0.9047 GB, free: 460 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009802/0.5958, allocations: 0.8745 MB / 0.9056 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.596, allocations: 212 kB / 0.9058 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5961, allocations: 16 kB / 0.9058 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004527/0.5966, allocations: 15.98 kB / 0.9058 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.5967, allocations: 47.84 kB / 0.9059 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.5967, allocations: 19.98 kB / 0.9059 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005504/0.5973, allocations: 0.5068 MB / 0.9064 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5973, allocations: 0 / 0.9064 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006353/0.5979, allocations: 200 kB / 0.9066 GB, free: 14.5 MB / 0.6231 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.001538/0.5995, allocations: 1.509 MB / 0.908 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007898/0.6003, allocations: 0.5009 MB / 0.9085 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6003, allocations: 8.062 kB / 0.9085 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.6006, allocations: 208.7 kB / 0.9087 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.6026, allocations: 481.8 kB / 0.9092 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007712/0.6103, allocations: 6.926 MB / 0.916 GB, free: 4.43 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.6108, allocations: 1.02 MB / 0.917 GB, free: 3.383 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0006056/0.6115, allocations: 203 kB / 0.9171 GB, free: 3.18 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.6118, allocations: 295.3 kB / 0.9174 GB, free: 2.891 MB / 0.6231 GB Notification: Performance of SimCode: time 2.8e-07/0.6118, allocations: 0 / 0.9174 GB, free: 2.891 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04224/0.6541, allocations: 22.08 MB / 0.939 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.375/8.03, allocations: 10.17 kB / 0.939 GB, free: 13.25 MB / 0.6544 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)