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: "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_latest_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_latest_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.001273/0.001273, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001285/0.001285, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.282/1.282, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.435/2.435, allocations: 461.9 MB / 0.7342 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 65.95 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2891, allocations: 157.4 MB / 1.052 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.1885/0.4776, allocations: 185.1 MB / 1.233 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01349/0.4912, allocations: 13.13 MB / 1.246 GB, free: 1.277 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008179/0.492, allocations: 31.81 kB / 1.246 GB, free: 1.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.4931, allocations: 342 kB / 1.246 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.4524/0.9455, allocations: 1.08 MB / 1.247 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001678/0.9473, allocations: 0.6252 MB / 1.248 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002674/0.9499, allocations: 2.782 MB / 1.25 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007179/0.9507, allocations: 0.7265 MB / 1.251 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00267/0.9534, allocations: 1.649 MB / 1.253 GB, free: 3.039 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.9546, allocations: 0.6926 MB / 1.253 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.484e-05/0.9547, allocations: 46.25 kB / 1.254 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.9562, allocations: 0.9719 MB / 1.254 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003335/0.9565, allocations: 357.7 kB / 1.255 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004166/0.957, allocations: 470.5 kB / 1.255 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001451/0.9584, allocations: 1.497 MB / 1.257 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.9584, allocations: 7.781 kB / 1.257 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of FrontEnd: time 8.52e-07/0.9584, allocations: 0 / 1.257 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.061e-05/0.9585, allocations: 0 / 1.257 GB, free: 2.98 MB / 0.9981 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.001594/0.9601, allocations: 1.225 MB / 1.258 GB, free: 18.29 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.9601, allocations: 16.08 kB / 1.258 GB, free: 18.29 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.9602, allocations: 124.3 kB / 1.258 GB, free: 18.25 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001046/0.9613, allocations: 216.2 kB / 1.258 GB, free: 18.2 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007954/0.9621, allocations: 0.6409 MB / 1.259 GB, free: 17.9 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.9621, allocations: 63.78 kB / 1.259 GB, free: 17.89 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.443e-05/0.9622, allocations: 76.17 kB / 1.259 GB, free: 17.89 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.9633, allocations: 0.9348 MB / 1.26 GB, free: 17.63 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.9633, allocations: 6.188 kB / 1.26 GB, free: 17.63 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.873e-05/0.9634, allocations: 34.5 kB / 1.26 GB, free: 17.63 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.939e-05/0.9634, allocations: 28.84 kB / 1.26 GB, free: 17.63 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008196/0.9642, allocations: 0.6127 MB / 1.261 GB, free: 17.62 MB / 1.014 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.003779/0.968, allocations: 4.595 MB / 1.265 GB, free: 14.45 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007245/0.9688, allocations: 0.5403 MB / 1.266 GB, free: 14.28 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003367/0.9691, allocations: 245.1 kB / 1.266 GB, free: 14.26 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001733/0.9693, allocations: 106.8 kB / 1.266 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.9693, allocations: 42.61 kB / 1.266 GB, free: 14.12 MB / 1.014 GB Notification: Performance of pre-optimization done (n=43): time 1.673e-06/0.9693, allocations: 4 kB / 1.266 GB, free: 14.12 MB / 1.014 GB Notification: Performance of matching and sorting (n=45): time 0.002527/0.9719, allocations: 1.58 MB / 1.268 GB, free: 13.51 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.9719, allocations: 110.1 kB / 1.268 GB, free: 13.39 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008176/0.9728, allocations: 0.716 MB / 1.268 GB, free: 13.25 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.9728, allocations: 38.64 kB / 1.268 GB, free: 13.21 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.9731, allocations: 422.6 kB / 1.269 GB, free: 13.02 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.9732, allocations: 159.2 kB / 1.269 GB, free: 12.92 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.9734, allocations: 120.4 kB / 1.269 GB, free: 12.9 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.9735, allocations: 327.3 kB / 1.269 GB, free: 12.59 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.9738, allocations: 188.2 kB / 1.27 GB, free: 12.59 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.9742, allocations: 423.2 kB / 1.27 GB, free: 12.33 MB / 1.014 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.002208/0.9764, allocations: 1.187 MB / 1.271 GB, free: 11.98 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.9764, allocations: 2.156 kB / 1.271 GB, free: 11.98 MB / 1.014 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001162/0.9776, allocations: 0.6611 MB / 1.272 GB, free: 11.9 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.9776, allocations: 9.562 kB / 1.272 GB, free: 11.9 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.9776, allocations: 7.188 kB / 1.272 GB, free: 11.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.9777, allocations: 10.56 kB / 1.272 GB, free: 11.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004896/0.9782, allocations: 128.5 kB / 1.272 GB, free: 11.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.193e-05/0.9782, allocations: 21.08 kB / 1.272 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/0.9788, allocations: 53.61 kB / 1.272 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-05/0.9788, allocations: 26.61 kB / 1.272 GB, free: 11.89 MB / 1.014 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.0003554/0.9792, allocations: 279.4 kB / 1.272 GB, free: 11.77 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.9794, allocations: 79.34 kB / 1.272 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001522/0.9795, allocations: 89.53 kB / 1.272 GB, free: 11.71 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.9795, allocations: 8.75 kB / 1.272 GB, free: 11.71 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.9795, allocations: 6.984 kB / 1.272 GB, free: 11.71 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006552/0.9802, allocations: 0.7023 MB / 1.273 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.9824, allocations: 1.643 MB / 1.275 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.9824, allocations: 3.938 kB / 1.275 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000413/0.9828, allocations: 96.27 kB / 1.275 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.9828, allocations: 7.5 kB / 1.275 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.9828, allocations: 16.31 kB / 1.275 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.9829, allocations: 13.75 kB / 1.275 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.9829, allocations: 8.875 kB / 1.275 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000972/0.9839, allocations: 0.8647 MB / 1.276 GB, free: 10.34 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000241/0.9841, allocations: 201.7 kB / 1.276 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.759e-05/0.9842, allocations: 17.2 kB / 1.276 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004635/0.9847, allocations: 42.19 kB / 1.276 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.9847, allocations: 37.06 kB / 1.276 GB, free: 10.19 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.9848, allocations: 21.56 kB / 1.276 GB, free: 10.19 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000556/0.9853, allocations: 0.5093 MB / 1.277 GB, free: 10.1 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9854, allocations: 0 / 1.277 GB, free: 10.1 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000638/0.986, allocations: 197.3 kB / 1.277 GB, free: 10.1 MB / 1.014 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.001478/0.9875, allocations: 1.517 MB / 1.278 GB, free: 9.234 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0006496/0.9881, allocations: 476.4 kB / 1.279 GB, free: 9.223 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.9882, allocations: 1.625 kB / 1.279 GB, free: 9.223 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002629/0.9884, allocations: 213.7 kB / 1.279 GB, free: 9.219 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/0.9903, allocations: 457.7 kB / 1.279 GB, free: 9.184 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008193/0.9985, allocations: 7.18 MB / 1.286 GB, free: 5.887 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005444/0.9991, allocations: 1.033 MB / 1.287 GB, free: 5.172 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.000663/0.9998, allocations: 197 kB / 1.288 GB, free: 5.145 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/1, allocations: 298.5 kB / 1.288 GB, free: 5.137 MB / 1.014 GB Notification: Performance of SimCode: time 9.82e-07/1, allocations: 0 / 1.288 GB, free: 5.137 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.381/3.381, allocations: 21.32 MB / 1.309 GB, free: 3.758 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002901/3.381, allocations: 293.2 kB / 1.309 GB, free: 3.379 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.295/6.676, allocations: 2.906 kB / 1.309 GB, free: 3.379 MB / 1.014 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches