Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 109.2 kB / 16.36 MB, free: 6.336 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.001043/0.001043, allocations: 193.5 kB / 17.29 MB, free: 5.883 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.432/2.432, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 68.38 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2759, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6682/0.9442, allocations: 194 MB / 1.216 GB, free: 8.555 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.009763/0.954, allocations: 6.935 MB / 1.223 GB, free: 2.898 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.9552, allocations: 46.97 kB / 1.223 GB, free: 2.879 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001695/0.9569, allocations: 0.69 MB / 1.224 GB, free: 2.285 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00511/0.962, allocations: 2.339 MB / 1.226 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003958/0.966, allocations: 1.427 MB / 1.227 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.003964/0.97, allocations: 2.998 MB / 1.23 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001202/0.9712, allocations: 0.8872 MB / 1.231 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002428/0.9736, allocations: 1.131 MB / 1.232 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.9748, allocations: 0.8069 MB / 1.233 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.9749, allocations: 100 kB / 1.233 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003594/0.9785, allocations: 2.058 MB / 1.235 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003834/0.9789, allocations: 370.8 kB / 1.235 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000639/0.9796, allocations: 0.587 MB / 1.236 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003387/0.983, allocations: 2.388 MB / 1.238 GB, free: 4.914 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.983, allocations: 0 / 1.238 GB, free: 4.914 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.553e-06/0.983, allocations: 4 kB / 1.238 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.642e-05/0.983, allocations: 0 / 1.238 GB, free: 4.91 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003344/0.9864, allocations: 1.625 MB / 1.24 GB, free: 3.227 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.9864, allocations: 8.031 kB / 1.24 GB, free: 3.219 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002873/0.9893, allocations: 0.5371 MB / 1.241 GB, free: 2.68 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/0.9916, allocations: 1.041 MB / 1.242 GB, free: 1.598 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.273e-05/0.9917, allocations: 53.31 kB / 1.242 GB, free: 1.543 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.9918, allocations: 72 kB / 1.242 GB, free: 1.473 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.9942, allocations: 1.113 MB / 1.243 GB, free: 336 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.9943, allocations: 0 / 1.243 GB, free: 336 kB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.354e-05/0.9943, allocations: 31.94 kB / 1.243 GB, free: 304 kB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.186e-05/0.9944, allocations: 33.31 kB / 1.243 GB, free: 272 kB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002873/0.9973, allocations: 1.164 MB / 1.244 GB, free: 15.1 MB / 0.9512 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.005782/1.003, allocations: 3.162 MB / 1.247 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/1.005, allocations: 0.6919 MB / 1.248 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007763/1.006, allocations: 419 kB / 1.248 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008532/1.006, allocations: 1.021 MB / 1.249 GB, free: 9.504 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009882/1.007, allocations: 0.5104 MB / 1.25 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=57): time 2.144e-06/1.007, allocations: 0 / 1.25 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of matching and sorting (n=57): time 0.002848/1.01, allocations: 1.228 MB / 1.251 GB, free: 7.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/1.01, allocations: 140.9 kB / 1.251 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/1.012, allocations: 1.18 MB / 1.252 GB, free: 6.367 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.9e-05/1.012, allocations: 37.7 kB / 1.252 GB, free: 6.324 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/1.013, allocations: 437.4 kB / 1.253 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/1.013, allocations: 193.2 kB / 1.253 GB, free: 5.703 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/1.013, allocations: 150 kB / 1.253 GB, free: 5.547 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001115/1.013, allocations: 326 kB / 1.253 GB, free: 5.223 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/1.014, allocations: 444.9 kB / 1.254 GB, free: 4.789 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/1.016, allocations: 0.5937 MB / 1.254 GB, free: 4.148 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001913/1.018, allocations: 0.9262 MB / 1.255 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/1.018, allocations: 0 / 1.255 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002831/1.02, allocations: 1.19 MB / 1.256 GB, free: 1.965 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.655e-05/1.02, allocations: 45.75 kB / 1.256 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/1.02, allocations: 7.938 kB / 1.256 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/1.02, allocations: 8 kB / 1.256 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009109/1.021, allocations: 183.8 kB / 1.256 GB, free: 1.719 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.894e-05/1.021, allocations: 11.88 kB / 1.256 GB, free: 1.707 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/1.023, allocations: 238.9 kB / 1.257 GB, free: 1.473 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.219e-05/1.023, allocations: 31.98 kB / 1.257 GB, free: 1.441 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.00049/1.023, allocations: 339.2 kB / 1.257 GB, free: 1.094 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002234/1.024, allocations: 122.5 kB / 1.257 GB, free: 0.9727 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002076/1.026, allocations: 0.99 MB / 1.258 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/1.026, allocations: 4 kB / 1.258 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/1.026, allocations: 7.938 kB / 1.258 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.026, allocations: 3.984 kB / 1.258 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0048/1.031, allocations: 3.158 MB / 1.261 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/1.031, allocations: 8.094 kB / 1.261 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005839/1.031, allocations: 123.8 kB / 1.261 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/1.031, allocations: 11.98 kB / 1.261 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.579e-05/1.031, allocations: 20.52 kB / 1.261 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-05/1.031, allocations: 15.92 kB / 1.261 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/1.031, allocations: 12 kB / 1.261 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/1.033, allocations: 1.337 MB / 1.263 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005777/1.034, allocations: 331.3 kB / 1.263 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/1.034, allocations: 28 kB / 1.263 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/1.035, allocations: 103.9 kB / 1.263 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/1.035, allocations: 63.7 kB / 1.263 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.071e-05/1.036, allocations: 39.97 kB / 1.263 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001418/1.037, allocations: 0.8482 MB / 1.264 GB, free: 9.562 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2e-07/1.037, allocations: 0 / 1.264 GB, free: 9.562 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001012/1.038, allocations: 299.9 kB / 1.264 GB, free: 9.27 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.0006785/1.039, allocations: 353.2 kB / 1.265 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00237/1.041, allocations: 1.013 MB / 1.266 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/1.041, allocations: 0 / 1.266 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0009271/1.042, allocations: 0.5208 MB / 1.266 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/1.045, allocations: 0.5484 MB / 1.267 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003452/1.048, allocations: 2.029 MB / 1.269 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000641/1.049, allocations: 1.065 MB / 1.27 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0009373/1.05, allocations: 275.3 kB / 1.27 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/1.05, allocations: 79.41 kB / 1.27 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of SimCode: time 6.41e-07/1.05, allocations: 4 kB / 1.27 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of Templates: time 0.03253/1.082, allocations: 22 MB / 1.292 GB, free: 13.45 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches