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: translateModel(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTraSubIn.C|senTraSubOut.C|cheConMas.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") translateModel(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTraSubIn.C|senTraSubOut.C|cheConMas.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001176/0.001176, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.3 MB / 240 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.666/2.666, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003405, allocations: 11.97 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2855, allocations: 159.6 MB / 1.058 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.1687/0.4542, allocations: 170.4 MB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01376/0.468, allocations: 12.15 MB / 1.236 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.4691, allocations: 27.81 kB / 1.236 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.4702, allocations: 294 kB / 1.237 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00238/0.4726, allocations: 0.8771 MB / 1.237 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.4742, allocations: 0.5334 MB / 1.238 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002652/0.4768, allocations: 2.354 MB / 1.24 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009038/0.4777, allocations: 0.6099 MB / 1.241 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003172/0.4809, allocations: 1.354 MB / 1.242 GB, free: 8.301 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.482, allocations: 0.6187 MB / 1.243 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.286e-05/0.4821, allocations: 32 kB / 1.243 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.4834, allocations: 463 kB / 1.243 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003454/0.4837, allocations: 327 kB / 1.244 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.484, allocations: 213.2 kB / 1.244 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.4851, allocations: 1.029 MB / 1.245 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4851, allocations: 0 / 1.245 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4851, allocations: 0 / 1.245 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.196e-05/0.4851, allocations: 0 / 1.245 GB, free: 5.629 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.001539/0.4867, allocations: 1.056 MB / 1.246 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.4867, allocations: 12.03 kB / 1.246 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001177/0.4879, allocations: 206.6 kB / 1.246 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009489/0.4889, allocations: 0.6329 MB / 1.247 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.742e-05/0.4889, allocations: 57.98 kB / 1.247 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.489, allocations: 80 kB / 1.247 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.4904, allocations: 0.9249 MB / 1.248 GB, free: 2.492 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.4904, allocations: 7.938 kB / 1.248 GB, free: 2.484 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.775e-05/0.4905, allocations: 32 kB / 1.248 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.932e-05/0.4905, allocations: 29.3 kB / 1.248 GB, free: 2.422 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009705/0.4915, allocations: 0.606 MB / 1.248 GB, free: 1.816 MB / 0.9981 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.5127/1.004, allocations: 4.589 MB / 1.253 GB, free: 190.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007631/1.005, allocations: 0.5439 MB / 1.253 GB, free: 190.3 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/1.005, allocations: 247 kB / 1.254 GB, free: 190.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001627/1.005, allocations: 102.2 kB / 1.254 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/1.006, allocations: 38.39 kB / 1.254 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=43): time 2.405e-06/1.006, allocations: 0.875 kB / 1.254 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=45): time 0.002674/1.008, allocations: 1.586 MB / 1.255 GB, free: 189.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/1.008, allocations: 110.4 kB / 1.255 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008099/1.009, allocations: 0.7103 MB / 1.256 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.629e-05/1.009, allocations: 36.73 kB / 1.256 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000225/1.009, allocations: 418 kB / 1.256 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/1.009, allocations: 164.8 kB / 1.257 GB, free: 189 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/1.009, allocations: 11.09 kB / 1.257 GB, free: 189 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.495e-05/1.01, allocations: 333.7 kB / 1.257 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000255/1.01, allocations: 181.6 kB / 1.257 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/1.01, allocations: 417.3 kB / 1.258 GB, free: 188.5 MB / 0.9981 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.00138/1.012, allocations: 0.6685 MB / 1.258 GB, free: 188.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/1.012, allocations: 3.156 kB / 1.258 GB, free: 188.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008236/1.012, allocations: 0.6647 MB / 1.259 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/1.012, allocations: 8.469 kB / 1.259 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.012, allocations: 9.453 kB / 1.259 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/1.012, allocations: 13.36 kB / 1.259 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/1.013, allocations: 126.5 kB / 1.259 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/1.013, allocations: 16.45 kB / 1.259 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005361/1.013, allocations: 57.34 kB / 1.259 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/1.013, allocations: 29.03 kB / 1.259 GB, free: 188.2 MB / 0.9981 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002864/1.014, allocations: 279.4 kB / 1.259 GB, free: 188.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/1.014, allocations: 84.27 kB / 1.259 GB, free: 188.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/1.014, allocations: 85.73 kB / 1.259 GB, free: 188.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/1.014, allocations: 13.39 kB / 1.259 GB, free: 188.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/1.014, allocations: 3.781 kB / 1.259 GB, free: 188.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005349/1.015, allocations: 0.7027 MB / 1.26 GB, free: 187.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/1.017, allocations: 1.627 MB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/1.017, allocations: 3.25 kB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004199/1.017, allocations: 98.94 kB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/1.017, allocations: 10.64 kB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/1.017, allocations: 17.91 kB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/1.017, allocations: 6.688 kB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.017, allocations: 6.375 kB / 1.262 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008821/1.018, allocations: 0.8654 MB / 1.263 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/1.018, allocations: 207.8 kB / 1.263 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.908e-05/1.018, allocations: 17.86 kB / 1.263 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004512/1.019, allocations: 39.05 kB / 1.263 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/1.019, allocations: 43.64 kB / 1.263 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/1.019, allocations: 19.89 kB / 1.263 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005264/1.019, allocations: 0.5041 MB / 1.264 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.019, allocations: 3.094 kB / 1.264 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006547/1.02, allocations: 202.8 kB / 1.264 GB, free: 186.4 MB / 0.9981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003726/1.02, allocations: 197.5 kB / 1.264 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006647/1.021, allocations: 473.8 kB / 1.264 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.021, allocations: 0 / 1.264 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002637/1.021, allocations: 211.8 kB / 1.265 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/1.023, allocations: 460.7 kB / 1.265 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/1.026, allocations: 2.018 MB / 1.267 GB, free: 185.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/1.026, allocations: 1.032 MB / 1.268 GB, free: 184.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0007038/1.027, allocations: 201.3 kB / 1.268 GB, free: 184.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/1.027, allocations: 63 kB / 1.268 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of SimCode: time 8.81e-07/1.027, allocations: 0 / 1.268 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.02543/1.052, allocations: 13.94 MB / 1.282 GB, free: 181 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.makefile (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 & ./Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches