Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.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.MixingVolumeTraceSubstanceReverseFlow,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volDyn.ports.1..m_flow|gain.y|volDyn.C.1.|volSte.C.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow") translateModel(Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volDyn.ports.1..m_flow|gain.y|volDyn.C.1.|volSte.C.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007643/0.0007644, allocations: 98.41 kB / 16.02 MB, free: 76 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.0008646/0.0008647, allocations: 184.3 kB / 16.92 MB, free: 6.895 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.437/1.437, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.701/2.701, allocations: 443.2 MB / 0.7181 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003591, allocations: 11.69 kB / 0.8801 GB, free: 42.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3452, allocations: 155.2 MB / 1.032 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow): time 0.2072/0.5524, allocations: 185.8 MB / 1.213 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.009711/0.5622, allocations: 5.707 MB / 1.219 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.5638, allocations: 35.75 kB / 1.219 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001533/0.5654, allocations: 0.4935 MB / 1.219 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004882/0.5703, allocations: 1.727 MB / 1.221 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00305/0.5733, allocations: 1.072 MB / 1.222 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.005011/0.5783, allocations: 4.086 MB / 1.226 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001486/0.5799, allocations: 0.9512 MB / 1.227 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.5816, allocations: 0.8595 MB / 1.228 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002019/0.5837, allocations: 0.9494 MB / 1.229 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.5838, allocations: 44 kB / 1.229 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003217/0.587, allocations: 1.625 MB / 1.23 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0005586/0.5876, allocations: 0.4947 MB / 1.231 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007384/0.5883, allocations: 0.6431 MB / 1.231 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.5905, allocations: 1.726 MB / 1.233 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.5905, allocations: 0 / 1.233 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.548e-06/0.5905, allocations: 0 / 1.233 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.894e-05/0.5906, allocations: 7.938 kB / 1.233 GB, free: 5.789 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002407/0.593, allocations: 1.367 MB / 1.234 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.593, allocations: 15.98 kB / 1.234 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/0.595, allocations: 326.2 kB / 1.235 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001348/0.5964, allocations: 0.8707 MB / 1.235 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/0.5965, allocations: 74 kB / 1.236 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.5966, allocations: 96 kB / 1.236 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.5985, allocations: 1.1 MB / 1.237 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.5985, allocations: 0 / 1.237 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.5987, allocations: 44 kB / 1.237 GB, free: 1.805 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-05/0.5987, allocations: 41.97 kB / 1.237 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.6004, allocations: 1.011 MB / 1.238 GB, free: 0.75 MB / 0.9825 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.006044/0.6064, allocations: 4.255 MB / 1.242 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008989/0.6073, allocations: 0.6008 MB / 1.243 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005269/0.6079, allocations: 346.5 kB / 1.243 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002044/0.6081, allocations: 117.5 kB / 1.243 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.6081, allocations: 43 kB / 1.243 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=53): time 2.806e-06/0.6082, allocations: 0 / 1.243 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=55): time 0.004185/0.6123, allocations: 2.228 MB / 1.245 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.6124, allocations: 59.91 kB / 1.245 GB, free: 8.648 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.6135, allocations: 0.8882 MB / 1.246 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.619e-05/0.6135, allocations: 37.7 kB / 1.246 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00041/0.6139, allocations: 0.5068 MB / 1.247 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.6141, allocations: 201.1 kB / 1.247 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.259e-05/0.6142, allocations: 61.69 kB / 1.247 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6144, allocations: 330 kB / 1.247 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004977/0.6149, allocations: 293.8 kB / 1.247 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006042/0.6155, allocations: 444.9 kB / 1.248 GB, free: 5.82 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: volDyn.dynBal.medium.p = volDyn.dynBal.p_start (bou.p = volDyn.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.004071/0.6196, allocations: 1.768 MB / 1.25 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.6196, allocations: 0 / 1.25 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001645/0.6212, allocations: 0.9335 MB / 1.251 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.6213, allocations: 5.719 kB / 1.251 GB, free: 3.031 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.6213, allocations: 4.469 kB / 1.251 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.6215, allocations: 110.4 kB / 1.251 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007492/0.6223, allocations: 167.8 kB / 1.251 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6848/1.307, allocations: 4.299 MB / 1.255 GB, free: 218.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/1.308, allocations: 66.83 kB / 1.255 GB, free: 218.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.849e-05/1.308, allocations: 31.44 kB / 1.255 GB, free: 218.1 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: volDyn.dynBal.medium.p = volDyn.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006053/1.309, allocations: 341.7 kB / 1.255 GB, free: 218 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/1.309, allocations: 106.3 kB / 1.256 GB, free: 218 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/1.309, allocations: 108.7 kB / 1.256 GB, free: 217.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/1.309, allocations: 5.625 kB / 1.256 GB, free: 217.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.309, allocations: 6.75 kB / 1.256 GB, free: 217.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001037/1.311, allocations: 0.7706 MB / 1.256 GB, free: 217.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00319/1.314, allocations: 2.007 MB / 1.258 GB, free: 217.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/1.314, allocations: 4.078 kB / 1.258 GB, free: 217.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006919/1.314, allocations: 161.2 kB / 1.259 GB, free: 217.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/1.315, allocations: 38.05 kB / 1.259 GB, free: 217.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/1.315, allocations: 20.19 kB / 1.259 GB, free: 217.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/1.316, allocations: 1.481 MB / 1.26 GB, free: 216 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/1.316, allocations: 7.109 kB / 1.26 GB, free: 216 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/1.318, allocations: 1.228 MB / 1.261 GB, free: 215.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005186/1.318, allocations: 253.4 kB / 1.261 GB, free: 215.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/1.318, allocations: 15.09 kB / 1.261 GB, free: 215.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008503/1.319, allocations: 71.16 kB / 1.262 GB, free: 215.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/1.32, allocations: 48.08 kB / 1.262 GB, free: 215.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.344e-05/1.32, allocations: 31.23 kB / 1.262 GB, free: 215.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001062/1.321, allocations: 0.612 MB / 1.262 GB, free: 215.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.8e-07/1.321, allocations: 0 / 1.262 GB, free: 215.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001286/1.322, allocations: 304.5 kB / 1.263 GB, free: 215.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (volDyn.dynBal.medium.Xi[1],volDyn.dynBal.U,volDyn.dynBal.mC[1]) * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005185/1.323, allocations: 202.2 kB / 1.263 GB, free: 215.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001915/1.324, allocations: 1.007 MB / 1.264 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/1.324, allocations: 7.031 kB / 1.264 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008026/1.325, allocations: 452.3 kB / 1.264 GB, free: 215 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0041/1.329, allocations: 0.6192 MB / 1.265 GB, free: 215 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005083/1.334, allocations: 2.694 MB / 1.267 GB, free: 213.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009402/1.335, allocations: 1.175 MB / 1.269 GB, free: 212.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/1.336, allocations: 77.78 kB / 1.269 GB, free: 212.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.062e-06/1.336, allocations: 0 / 1.269 GB, free: 212.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.04408/1.38, allocations: 26.8 MB / 1.295 GB, free: 200.4 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.sim & ./Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstanceReverseFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volDyn.ports[1].m_flow,gain.y,volDyn.C[1],volSte.C[1] Variables in the result:gain.y,time,volDyn.C[1],volDyn.ports[1].m_flow,volSte.C[1]