Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_9_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_9_Buildings_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.001655/0.001655, allocations: 108 kB / 15.61 MB, free: 148 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.001892/0.001892, 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.428/1.428, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.315/2.315, allocations: 390.3 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 60.14 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.532/0.5334, allocations: 140.4 MB / 0.9497 GB, free: 9.316 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.191/0.7244, allocations: 187.3 MB / 1.133 GB, free: 5.977 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01512/0.7396, allocations: 13.07 MB / 1.145 GB, free: 8.863 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.7407, allocations: 31.81 kB / 1.145 GB, free: 8.832 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.7422, allocations: 425.2 kB / 1.146 GB, free: 8.414 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002892/0.7452, allocations: 1.155 MB / 1.147 GB, free: 7.254 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.747, allocations: 0.7068 MB / 1.148 GB, free: 6.551 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.002365/0.7494, allocations: 2 MB / 1.15 GB, free: 4.547 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001324/0.7508, allocations: 0.8434 MB / 1.15 GB, free: 3.688 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003831/0.7546, allocations: 1.809 MB / 1.152 GB, free: 1.871 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001592/0.7562, allocations: 0.6676 MB / 1.153 GB, free: 1.207 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000283/0.7565, allocations: 80 kB / 1.153 GB, free: 1.129 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001874/0.7584, allocations: 0.8653 MB / 1.154 GB, free: 268 kB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004929/0.7589, allocations: 391 kB / 1.154 GB, free: 15.88 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0007176/0.7596, allocations: 0.4937 MB / 1.155 GB, free: 15.38 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.7617, allocations: 1.468 MB / 1.156 GB, free: 13.91 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.7617, allocations: 3.938 kB / 1.156 GB, free: 13.91 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7617, allocations: 4 kB / 1.156 GB, free: 13.9 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.044e-05/0.7617, allocations: 0 / 1.156 GB, free: 13.9 MB / 0.92 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.002038/0.7638, allocations: 1.227 MB / 1.157 GB, free: 12.62 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.7638, allocations: 12.03 kB / 1.157 GB, free: 12.61 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001519/0.764, allocations: 126.5 kB / 1.157 GB, free: 12.48 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001249/0.7652, allocations: 214.6 kB / 1.158 GB, free: 12.27 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.7663, allocations: 0.6442 MB / 1.158 GB, free: 11.58 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.7663, allocations: 54 kB / 1.158 GB, free: 11.53 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.7665, allocations: 80 kB / 1.158 GB, free: 11.45 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.7678, allocations: 0.9288 MB / 1.159 GB, free: 10.44 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.7678, allocations: 4 kB / 1.159 GB, free: 10.43 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-05/0.7679, allocations: 47.84 kB / 1.159 GB, free: 10.39 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.564e-05/0.7679, allocations: 33.3 kB / 1.159 GB, free: 10.36 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009982/0.7689, allocations: 0.6138 MB / 1.16 GB, free: 9.742 MB / 0.92 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.004234/0.7732, allocations: 4.605 MB / 1.164 GB, free: 4.844 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007715/0.774, allocations: 0.5403 MB / 1.165 GB, free: 4.258 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000335/0.7743, allocations: 242.4 kB / 1.165 GB, free: 4.012 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001777/0.7745, allocations: 105.8 kB / 1.165 GB, free: 3.891 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.7746, allocations: 38.56 kB / 1.165 GB, free: 3.844 MB / 0.92 GB Notification: Performance of pre-optimization done (n=43): time 2.034e-06/0.7746, allocations: 0 / 1.165 GB, free: 3.844 MB / 0.92 GB Notification: Performance of matching and sorting (n=45): time 0.002672/0.7772, allocations: 1.588 MB / 1.167 GB, free: 2.195 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.7773, allocations: 106.8 kB / 1.167 GB, free: 2.066 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007967/0.7781, allocations: 0.7116 MB / 1.168 GB, free: 1.34 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.7782, allocations: 37.7 kB / 1.168 GB, free: 1.297 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.7784, allocations: 419.8 kB / 1.168 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.7786, allocations: 161.7 kB / 1.168 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.7788, allocations: 118.2 kB / 1.168 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.7789, allocations: 330 kB / 1.169 GB, free: 276 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.7792, allocations: 197.1 kB / 1.169 GB, free: 80 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004598/0.7797, allocations: 417.8 kB / 1.169 GB, free: 15.57 MB / 0.9356 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.00225/0.7819, allocations: 1.181 MB / 1.17 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.782, allocations: 4 kB / 1.17 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001037/0.783, allocations: 0.6759 MB / 1.171 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.783, allocations: 8 kB / 1.171 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.783, allocations: 8 kB / 1.171 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.7831, allocations: 8 kB / 1.171 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004606/0.7835, allocations: 123.8 kB / 1.171 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.7836, allocations: 15.98 kB / 1.171 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005565/0.7841, allocations: 31.94 kB / 1.171 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-05/0.7842, allocations: 31.98 kB / 1.171 GB, free: 13.38 MB / 0.9356 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.0003255/0.7845, allocations: 281.6 kB / 1.172 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.7847, allocations: 86.91 kB / 1.172 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000154/0.7848, allocations: 87.67 kB / 1.172 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.7849, allocations: 4 kB / 1.172 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.7849, allocations: 4 kB / 1.172 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006895/0.7856, allocations: 0.6999 MB / 1.172 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.7879, allocations: 1.638 MB / 1.174 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.7879, allocations: 4 kB / 1.174 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.7884, allocations: 99.77 kB / 1.174 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.7884, allocations: 8 kB / 1.174 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/0.7884, allocations: 16 kB / 1.174 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.7885, allocations: 4.5 kB / 1.174 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.7885, allocations: 8 kB / 1.174 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.7895, allocations: 0.8689 MB / 1.175 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002696/0.7898, allocations: 212 kB / 1.175 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.7899, allocations: 19.98 kB / 1.175 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004621/0.7904, allocations: 13.97 kB / 1.175 GB, free: 9.055 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.235e-05/0.7905, allocations: 39.83 kB / 1.175 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.7905, allocations: 24 kB / 1.175 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0005958/0.7911, allocations: 0.5107 MB / 1.176 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7911, allocations: 0 / 1.176 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006795/0.7918, allocations: 196 kB / 1.176 GB, free: 8.297 MB / 0.9356 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.001567/0.7934, allocations: 1.518 MB / 1.177 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008185/0.7942, allocations: 0.5169 MB / 1.178 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.7942, allocations: 4 kB / 1.178 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.7945, allocations: 216.2 kB / 1.178 GB, free: 5.988 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/0.7966, allocations: 477 kB / 1.179 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008191/0.8048, allocations: 6.931 MB / 1.185 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.8054, allocations: 1.02 MB / 1.186 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0006659/0.806, allocations: 203 kB / 1.187 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/0.8064, allocations: 295.3 kB / 1.187 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of SimCode: time 4.71e-07/0.8064, allocations: 0 / 1.187 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04322/0.8497, allocations: 22.05 MB / 1.208 GB, free: 7 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/8.663, allocations: 448 / 1.208 GB, free: 7 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.fmu > Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches