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.007124/0.007124, allocations: 103.6 kB / 15.74 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.001566/0.001566, allocations: 201.2 kB / 16.68 MB, free: 5.965 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.314/2.314, allocations: 390.3 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 64.23 kB / 0.9504 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2496, allocations: 140.4 MB / 1.088 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.741/0.9906, allocations: 187.3 MB / 1.27 GB, free: 3.223 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01539/1.006, allocations: 13.08 MB / 1.283 GB, free: 3.105 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001504/1.008, allocations: 34.88 kB / 1.283 GB, free: 3.105 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001643/1.009, allocations: 432.1 kB / 1.284 GB, free: 3.102 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004411/1.014, allocations: 1.213 MB / 1.285 GB, free: 3.051 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002387/1.016, allocations: 0.7024 MB / 1.285 GB, free: 3.039 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003221/1.019, allocations: 2.017 MB / 1.287 GB, free: 3.039 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/1.021, allocations: 0.8394 MB / 1.288 GB, free: 2.953 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004493/1.025, allocations: 1.878 MB / 1.29 GB, free: 2.914 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00161/1.027, allocations: 0.6656 MB / 1.291 GB, free: 2.91 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0001536/1.027, allocations: 80.03 kB / 1.291 GB, free: 2.91 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/1.029, allocations: 0.8785 MB / 1.292 GB, free: 2.898 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0004731/1.03, allocations: 385.1 kB / 1.292 GB, free: 2.895 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0006393/1.03, allocations: 0.4985 MB / 1.293 GB, free: 2.895 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002274/1.033, allocations: 1.5 MB / 1.294 GB, free: 2.809 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/1.033, allocations: 2.297 kB / 1.294 GB, free: 2.809 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.563e-06/1.033, allocations: 0 / 1.294 GB, free: 2.809 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.357e-05/1.033, allocations: 0 / 1.294 GB, free: 2.809 MB / 1.014 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.001873/1.034, allocations: 1.27 MB / 1.295 GB, free: 2.078 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/1.035, allocations: 10.41 kB / 1.295 GB, free: 2.078 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000144/1.035, allocations: 121 kB / 1.295 GB, free: 2.039 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/1.036, allocations: 222.1 kB / 1.296 GB, free: 1.98 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/1.037, allocations: 0.6899 MB / 1.296 GB, free: 1.672 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/1.037, allocations: 61.14 kB / 1.296 GB, free: 1.668 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/1.037, allocations: 76.72 kB / 1.296 GB, free: 1.668 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/1.039, allocations: 0.9285 MB / 1.297 GB, free: 1.414 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.571e-05/1.039, allocations: 5.078 kB / 1.297 GB, free: 1.414 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.316e-05/1.039, allocations: 34.88 kB / 1.297 GB, free: 1.414 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.863e-05/1.039, allocations: 28.12 kB / 1.297 GB, free: 1.414 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009675/1.04, allocations: 0.62 MB / 1.298 GB, free: 1.41 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.004231/1.044, allocations: 4.587 MB / 1.302 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007608/1.045, allocations: 0.5467 MB / 1.303 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003151/1.045, allocations: 245.9 kB / 1.303 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001816/1.045, allocations: 107.1 kB / 1.303 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/1.045, allocations: 38.75 kB / 1.303 GB, free: 13.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=43): time 2.825e-06/1.045, allocations: 0.6875 kB / 1.303 GB, free: 13.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=45): time 0.002676/1.048, allocations: 1.61 MB / 1.305 GB, free: 13.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/1.048, allocations: 112.3 kB / 1.305 GB, free: 13.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008683/1.049, allocations: 0.7178 MB / 1.306 GB, free: 13.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/1.049, allocations: 35.48 kB / 1.306 GB, free: 12.99 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/1.049, allocations: 423.7 kB / 1.306 GB, free: 12.8 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/1.049, allocations: 176.9 kB / 1.306 GB, free: 12.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/1.05, allocations: 116.8 kB / 1.306 GB, free: 12.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000104/1.05, allocations: 331.2 kB / 1.307 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/1.05, allocations: 189.9 kB / 1.307 GB, free: 12.36 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/1.05, allocations: 417.1 kB / 1.307 GB, free: 12.11 MB / 1.029 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.002196/1.053, allocations: 1.174 MB / 1.308 GB, free: 11.78 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/1.053, allocations: 2.375 kB / 1.308 GB, free: 11.78 MB / 1.029 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009994/1.054, allocations: 0.6726 MB / 1.309 GB, free: 11.7 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/1.054, allocations: 8.438 kB / 1.309 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/1.054, allocations: 6.438 kB / 1.309 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/1.054, allocations: 9.594 kB / 1.309 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004549/1.054, allocations: 127.7 kB / 1.309 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.18e-05/1.054, allocations: 18.88 kB / 1.309 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006054/1.055, allocations: 31.31 kB / 1.309 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.081e-05/1.055, allocations: 26.12 kB / 1.309 GB, free: 11.69 MB / 1.029 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.0003588/1.055, allocations: 275.4 kB / 1.31 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/1.055, allocations: 86.67 kB / 1.31 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/1.056, allocations: 87.95 kB / 1.31 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/1.056, allocations: 7.125 kB / 1.31 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.056, allocations: 8.094 kB / 1.31 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006948/1.056, allocations: 0.7042 MB / 1.31 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/1.059, allocations: 1.643 MB / 1.312 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.059, allocations: 5.469 kB / 1.312 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004548/1.059, allocations: 97.84 kB / 1.312 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/1.059, allocations: 6.375 kB / 1.312 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.539e-05/1.059, allocations: 19.61 kB / 1.312 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/1.059, allocations: 5.5 kB / 1.312 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/1.059, allocations: 11.59 kB / 1.312 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/1.06, allocations: 0.8723 MB / 1.313 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003609/1.061, allocations: 210.8 kB / 1.313 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/1.061, allocations: 14.16 kB / 1.313 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004697/1.061, allocations: 16.11 kB / 1.313 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/1.061, allocations: 47.34 kB / 1.313 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/1.061, allocations: 18.84 kB / 1.313 GB, free: 9.996 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0006023/1.062, allocations: 0.5135 MB / 1.314 GB, free: 9.906 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.3e-07/1.062, allocations: 2.328 kB / 1.314 GB, free: 9.906 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0008357/1.063, allocations: 201.6 kB / 1.314 GB, free: 9.902 MB / 1.029 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.001754/1.065, allocations: 1.514 MB / 1.316 GB, free: 9.039 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008652/1.066, allocations: 488.8 kB / 1.316 GB, free: 9.027 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.066, allocations: 2.406 kB / 1.316 GB, free: 9.027 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002854/1.066, allocations: 207.7 kB / 1.316 GB, free: 9.027 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/1.068, allocations: 482.1 kB / 1.317 GB, free: 8.961 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008846/1.077, allocations: 6.651 MB / 1.323 GB, free: 6.301 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000702/1.078, allocations: 1.027 MB / 1.324 GB, free: 5.59 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0008529/1.079, allocations: 197.6 kB / 1.324 GB, free: 5.551 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000491/1.079, allocations: 300 kB / 1.325 GB, free: 5.543 MB / 1.029 GB Notification: Performance of SimCode: time 1.393e-06/1.079, allocations: 0 / 1.325 GB, free: 5.543 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04344/1.123, allocations: 22.23 MB / 1.346 GB, free: 1.711 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.71/9.832, allocations: 7.188 kB / 1.346 GB, free: 1.711 MB / 1.029 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