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.004385/0.004385, allocations: 98.64 kB / 15.73 MB, free: 6.039 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.001234/0.001234, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002441/0.002441, allocations: 278.7 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.043/1.043, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00274/0.00274, allocations: 104.2 kB / 0.6943 GB, free: 3.582 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4336/0.4363, allocations: 89.13 MB / 0.7814 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.2199/0.6563, allocations: 187.3 MB / 0.9642 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0185/0.6748, allocations: 13.07 MB / 0.977 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.6759, allocations: 35.81 kB / 0.977 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.6773, allocations: 413.2 kB / 0.9774 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002987/0.6804, allocations: 1.17 MB / 0.9786 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001835/0.6822, allocations: 0.7073 MB / 0.9793 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002814/0.6851, allocations: 2.016 MB / 0.9812 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001379/0.6865, allocations: 0.8434 MB / 0.9821 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004116/0.6906, allocations: 1.809 MB / 0.9838 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.6924, allocations: 0.671 MB / 0.9845 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0002761/0.6927, allocations: 80 kB / 0.9846 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002311/0.695, allocations: 0.8692 MB / 0.9854 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0005412/0.6956, allocations: 391 kB / 0.9858 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0006984/0.6963, allocations: 0.4976 MB / 0.9863 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002258/0.6986, allocations: 1.502 MB / 0.9877 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.6986, allocations: 0 / 0.9877 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6986, allocations: 0 / 0.9877 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.189e-05/0.6986, allocations: 0 / 0.9877 GB, free: 11.2 MB / 0.7481 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.002164/0.7008, allocations: 1.261 MB / 0.989 GB, free: 9.883 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.7009, allocations: 8.031 kB / 0.989 GB, free: 9.875 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001711/0.701, allocations: 126.5 kB / 0.9891 GB, free: 9.742 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.7023, allocations: 223.1 kB / 0.9893 GB, free: 9.523 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.7035, allocations: 0.6837 MB / 0.99 GB, free: 8.801 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.63e-05/0.7036, allocations: 58 kB / 0.99 GB, free: 8.742 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.7037, allocations: 76 kB / 0.9901 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.7051, allocations: 0.9326 MB / 0.991 GB, free: 7.652 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.85e-05/0.7051, allocations: 7.938 kB / 0.991 GB, free: 7.645 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.059e-05/0.7052, allocations: 39.94 kB / 0.9911 GB, free: 7.605 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.204e-05/0.7053, allocations: 29.31 kB / 0.9911 GB, free: 7.578 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.7063, allocations: 0.6138 MB / 0.9917 GB, free: 6.961 MB / 0.7481 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.004975/0.7113, allocations: 4.606 MB / 0.9962 GB, free: 2.062 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008652/0.7121, allocations: 0.5309 MB / 0.9967 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003657/0.7125, allocations: 251.1 kB / 0.9969 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001955/0.7127, allocations: 101 kB / 0.997 GB, free: 1.117 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.7128, allocations: 42.34 kB / 0.9971 GB, free: 1.066 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=43): time 2.174e-06/0.7128, allocations: 4 kB / 0.9971 GB, free: 1.062 MB / 0.7481 GB Notification: Performance of matching and sorting (n=45): time 0.002988/0.7158, allocations: 1.615 MB / 0.9987 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.425e-05/0.7159, allocations: 106.8 kB / 0.9988 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008981/0.7168, allocations: 0.7158 MB / 0.9995 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.7168, allocations: 37.7 kB / 0.9995 GB, free: 14.49 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003604/0.7172, allocations: 424.5 kB / 0.9999 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.7174, allocations: 174.5 kB / 1 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.7176, allocations: 114.3 kB / 1 GB, free: 13.78 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002074/0.7178, allocations: 337.9 kB / 1.001 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.7181, allocations: 185.2 kB / 1.001 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004883/0.7186, allocations: 413 kB / 1.001 GB, free: 12.77 MB / 0.7637 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.002298/0.7209, allocations: 1.186 MB / 1.002 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7209, allocations: 0 / 1.002 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001025/0.7219, allocations: 0.6721 MB / 1.003 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.722, allocations: 8 kB / 1.003 GB, free: 10.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.722, allocations: 8 kB / 1.003 GB, free: 10.78 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.722, allocations: 11.98 kB / 1.003 GB, free: 10.77 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.7224, allocations: 124.5 kB / 1.003 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/0.7225, allocations: 15.94 kB / 1.003 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.723, allocations: 27.94 kB / 1.003 GB, free: 10.61 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.618e-05/0.723, allocations: 32 kB / 1.003 GB, free: 10.57 MB / 0.7637 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.0004027/0.7234, allocations: 280 kB / 1.003 GB, free: 10.3 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.7236, allocations: 91.36 kB / 1.003 GB, free: 10.21 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001849/0.7238, allocations: 87.66 kB / 1.004 GB, free: 10.11 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.7238, allocations: 4 kB / 1.004 GB, free: 10.11 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.7238, allocations: 4 kB / 1.004 GB, free: 10.11 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008225/0.7247, allocations: 0.7038 MB / 1.004 GB, free: 9.316 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002475/0.7271, allocations: 1.635 MB / 1.006 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.7272, allocations: 4.5 kB / 1.006 GB, free: 7.57 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004573/0.7276, allocations: 107.8 kB / 1.006 GB, free: 7.465 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.198e-06/0.7276, allocations: 8 kB / 1.006 GB, free: 7.457 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.7277, allocations: 15.98 kB / 1.006 GB, free: 7.441 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/0.7277, allocations: 4 kB / 1.006 GB, free: 7.438 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/0.7277, allocations: 7.938 kB / 1.006 GB, free: 7.43 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.7289, allocations: 0.8735 MB / 1.007 GB, free: 6.496 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002786/0.7292, allocations: 212.7 kB / 1.007 GB, free: 6.27 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.357e-05/0.7293, allocations: 16 kB / 1.007 GB, free: 6.254 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.7297, allocations: 23.98 kB / 1.007 GB, free: 6.23 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.18e-05/0.7298, allocations: 43.78 kB / 1.007 GB, free: 6.188 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.74e-05/0.7298, allocations: 19.98 kB / 1.007 GB, free: 6.168 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006646/0.7305, allocations: 0.5107 MB / 1.008 GB, free: 5.664 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2e-07/0.7305, allocations: 0 / 1.008 GB, free: 5.664 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0006913/0.7312, allocations: 200 kB / 1.008 GB, free: 5.469 MB / 0.7637 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.001838/0.733, allocations: 1.505 MB / 1.009 GB, free: 3.906 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.000839/0.7339, allocations: 485.1 kB / 1.01 GB, free: 3.434 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.7339, allocations: 0 / 1.01 GB, free: 3.434 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.7342, allocations: 211.7 kB / 1.01 GB, free: 3.227 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002079/0.7363, allocations: 481.9 kB / 1.01 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008937/0.7452, allocations: 6.646 MB / 1.017 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007359/0.746, allocations: 1.028 MB / 1.018 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0007009/0.7467, allocations: 199 kB / 1.018 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004205/0.7471, allocations: 299.3 kB / 1.018 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of SimCode: time 4.11e-07/0.7472, allocations: 0 / 1.018 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05682/0.804, allocations: 22.25 MB / 1.04 GB, free: 4.387 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.173/9.977, allocations: 8.125 kB / 1.04 GB, free: 4.379 MB / 0.795 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)