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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001233/0.001233, 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.001417/0.001417, allocations: 194.9 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.241/1.241, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.135/2.135, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.54/0.5413, allocations: 140.4 MB / 0.949 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.1694/0.7107, allocations: 185 MB / 1.13 GB, free: 8.398 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01401/0.7248, allocations: 13.12 MB / 1.143 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.7259, allocations: 27.81 kB / 1.143 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.7272, allocations: 350 kB / 1.143 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002472/0.7297, allocations: 1.089 MB / 1.144 GB, free: 9.766 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.7312, allocations: 0.6325 MB / 1.145 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.002596/0.7338, allocations: 2.768 MB / 1.147 GB, free: 6.363 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008095/0.7346, allocations: 0.7231 MB / 1.148 GB, free: 5.621 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002773/0.7374, allocations: 1.658 MB / 1.15 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001202/0.7386, allocations: 0.6946 MB / 1.15 GB, free: 3.266 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.588e-05/0.7387, allocations: 44 kB / 1.15 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.7402, allocations: 0.982 MB / 1.151 GB, free: 2.238 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003097/0.7405, allocations: 359 kB / 1.152 GB, free: 1.887 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004174/0.7409, allocations: 469.6 kB / 1.152 GB, free: 1.426 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.7423, allocations: 1.492 MB / 1.154 GB, free: 15.93 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.7423, allocations: 4 kB / 1.154 GB, free: 15.93 MB / 0.92 GB Notification: Performance of FrontEnd: time 8.22e-07/0.7423, allocations: 7.875 kB / 1.154 GB, free: 15.92 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.998e-06/0.7423, allocations: 0 / 1.154 GB, free: 15.92 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.001573/0.7439, allocations: 1.227 MB / 1.155 GB, free: 14.64 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.7439, allocations: 20.02 kB / 1.155 GB, free: 14.62 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.7441, allocations: 118.5 kB / 1.155 GB, free: 14.5 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/0.7452, allocations: 214.6 kB / 1.155 GB, free: 14.29 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008288/0.746, allocations: 0.6364 MB / 1.156 GB, free: 13.6 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.7461, allocations: 62 kB / 1.156 GB, free: 13.54 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.7462, allocations: 83.98 kB / 1.156 GB, free: 13.46 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.7474, allocations: 0.9326 MB / 1.157 GB, free: 12.44 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.7474, allocations: 4 kB / 1.157 GB, free: 12.44 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.7475, allocations: 35.94 kB / 1.157 GB, free: 12.4 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.7475, allocations: 29.31 kB / 1.157 GB, free: 12.38 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000898/0.7484, allocations: 0.6216 MB / 1.157 GB, free: 11.75 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.003544/0.752, allocations: 4.586 MB / 1.162 GB, free: 6.875 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007063/0.7527, allocations: 0.5341 MB / 1.162 GB, free: 6.297 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.753, allocations: 251.7 kB / 1.163 GB, free: 6.043 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001553/0.7532, allocations: 97.78 kB / 1.163 GB, free: 5.93 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.7532, allocations: 46.48 kB / 1.163 GB, free: 5.875 MB / 0.92 GB Notification: Performance of pre-optimization done (n=43): time 1.723e-06/0.7532, allocations: 0 / 1.163 GB, free: 5.875 MB / 0.92 GB Notification: Performance of matching and sorting (n=45): time 0.002404/0.7556, allocations: 1.59 MB / 1.164 GB, free: 4.227 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.7557, allocations: 114.8 kB / 1.164 GB, free: 4.09 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000716/0.7564, allocations: 0.7118 MB / 1.165 GB, free: 3.367 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.7565, allocations: 37.7 kB / 1.165 GB, free: 3.324 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.7567, allocations: 415.8 kB / 1.166 GB, free: 2.91 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.7568, allocations: 157.7 kB / 1.166 GB, free: 2.754 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.757, allocations: 122.2 kB / 1.166 GB, free: 2.625 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.7571, allocations: 330 kB / 1.166 GB, free: 2.297 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.7574, allocations: 185.2 kB / 1.166 GB, free: 2.117 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004077/0.7578, allocations: 424.9 kB / 1.167 GB, free: 1.605 MB / 0.92 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.002058/0.7599, allocations: 1.169 MB / 1.168 GB, free: 340 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.7599, allocations: 4 kB / 1.168 GB, free: 336 kB / 0.92 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009044/0.7608, allocations: 0.683 MB / 1.169 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.7608, allocations: 5.875 kB / 1.169 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.7608, allocations: 15.92 kB / 1.169 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.7609, allocations: 8.781 kB / 1.169 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004156/0.7613, allocations: 127.8 kB / 1.169 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.7613, allocations: 15.94 kB / 1.169 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005537/0.7619, allocations: 51.81 kB / 1.169 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.7619, allocations: 32.06 kB / 1.169 GB, free: 15.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.000297/0.7622, allocations: 287.6 kB / 1.169 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.7624, allocations: 83 kB / 1.169 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.7625, allocations: 87.66 kB / 1.169 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.7625, allocations: 4 kB / 1.169 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.7625, allocations: 4 kB / 1.169 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006257/0.7632, allocations: 0.7038 MB / 1.17 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.7652, allocations: 1.638 MB / 1.172 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.7652, allocations: 4 kB / 1.172 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.7656, allocations: 103.8 kB / 1.172 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.7656, allocations: 8.5 kB / 1.172 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.7657, allocations: 16 kB / 1.172 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.7657, allocations: 7.938 kB / 1.172 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.7657, allocations: 4 kB / 1.172 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009478/0.7667, allocations: 0.8684 MB / 1.173 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002366/0.7669, allocations: 204.1 kB / 1.173 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.63e-05/0.767, allocations: 19.98 kB / 1.173 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.7675, allocations: 36.48 kB / 1.173 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.7675, allocations: 39.89 kB / 1.173 GB, free: 11 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.7676, allocations: 16 kB / 1.173 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0005357/0.7681, allocations: 0.5107 MB / 1.173 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7681, allocations: 0 / 1.173 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006073/0.7687, allocations: 208 kB / 1.174 GB, free: 10.27 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.001465/0.7702, allocations: 1.51 MB / 1.175 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006689/0.7709, allocations: 475.8 kB / 1.175 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.7709, allocations: 3.938 kB / 1.175 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002669/0.7712, allocations: 210.2 kB / 1.176 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.7731, allocations: 457.6 kB / 1.176 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007898/0.781, allocations: 7.18 MB / 1.183 GB, free: 0 / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005191/0.7815, allocations: 1.028 MB / 1.184 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0005649/0.7821, allocations: 203 kB / 1.184 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003497/0.7824, allocations: 299.3 kB / 1.185 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of SimCode: time 2.4e-07/0.7824, allocations: 0 / 1.185 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.268/2.051, allocations: 21.33 MB / 1.205 GB, free: 9.512 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/2.051, allocations: 284.3 kB / 1.206 GB, free: 9.133 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.635/4.686, allocations: 0 / 1.206 GB, free: 9.133 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 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.mat","/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