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.0007803/0.0007803, allocations: 91.77 kB / 16.02 MB, free: 80 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.0008481/0.0008482, allocations: 180.9 kB / 16.92 MB, free: 6.652 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.425/1.425, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.716/2.716, allocations: 462.6 MB / 0.7371 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003628, allocations: 12.19 kB / 0.9034 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2867, allocations: 159.6 MB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1973/0.484, allocations: 189.1 MB / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01091/0.4949, allocations: 6.918 MB / 1.251 GB, free: 164 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.4964, allocations: 35.69 kB / 1.251 GB, free: 128 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.5521/1.049, allocations: 0.5609 MB / 1.251 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006148/1.055, allocations: 2.185 MB / 1.253 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003142/1.058, allocations: 1.296 MB / 1.255 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004873/1.063, allocations: 3.741 MB / 1.258 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001382/1.064, allocations: 0.7718 MB / 1.259 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00201/1.066, allocations: 0.9554 MB / 1.26 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001776/1.068, allocations: 0.7891 MB / 1.261 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001239/1.068, allocations: 40.97 kB / 1.261 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004259/1.072, allocations: 2.216 MB / 1.263 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004126/1.073, allocations: 307.7 kB / 1.263 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008558/1.074, allocations: 0.5529 MB / 1.264 GB, free: 18.81 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002665/1.076, allocations: 1.747 MB / 1.266 GB, free: 18.69 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/1.076, allocations: 0 / 1.266 GB, free: 18.69 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.883e-06/1.076, allocations: 0 / 1.266 GB, free: 18.69 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.689e-05/1.076, allocations: 0 / 1.266 GB, free: 18.69 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003332/1.08, allocations: 1.385 MB / 1.267 GB, free: 17.86 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.08, allocations: 13.34 kB / 1.267 GB, free: 17.86 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003216/1.083, allocations: 0.6023 MB / 1.268 GB, free: 17.76 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/1.085, allocations: 0.9872 MB / 1.269 GB, free: 17.43 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001315/1.087, allocations: 314.9 kB / 1.269 GB, free: 17.4 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/1.087, allocations: 74.7 kB / 1.269 GB, free: 17.39 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002745/1.09, allocations: 1.154 MB / 1.27 GB, free: 17.27 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/1.09, allocations: 5.281 kB / 1.27 GB, free: 17.27 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.919e-05/1.09, allocations: 26.19 kB / 1.27 GB, free: 17.27 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-05/1.09, allocations: 29.77 kB / 1.27 GB, free: 17.27 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003719/1.093, allocations: 1.25 MB / 1.271 GB, free: 17.23 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.007192/1.101, allocations: 3.258 MB / 1.274 GB, free: 16.25 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/1.102, allocations: 0.7009 MB / 1.275 GB, free: 16.21 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007933/1.103, allocations: 432.6 kB / 1.276 GB, free: 16.2 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009632/1.104, allocations: 1.026 MB / 1.277 GB, free: 15.07 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/1.105, allocations: 0.5155 MB / 1.277 GB, free: 14.96 MB / 1.014 GB Notification: Performance of pre-optimization done (n=57): time 3.175e-06/1.105, allocations: 2.531 kB / 1.277 GB, free: 14.96 MB / 1.014 GB Notification: Performance of matching and sorting (n=57): time 0.00317/1.108, allocations: 1.256 MB / 1.278 GB, free: 14.81 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/1.108, allocations: 137 kB / 1.278 GB, free: 14.65 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00211/1.111, allocations: 1.219 MB / 1.28 GB, free: 14.49 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001068/1.111, allocations: 39.17 kB / 1.28 GB, free: 14.46 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003035/1.111, allocations: 438.6 kB / 1.28 GB, free: 14.33 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/1.111, allocations: 181.3 kB / 1.28 GB, free: 14.21 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.125e-05/1.111, allocations: 56.31 kB / 1.28 GB, free: 14.2 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001238/1.111, allocations: 334.5 kB / 1.281 GB, free: 13.89 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/1.113, allocations: 486.3 kB / 1.281 GB, free: 13.87 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/1.114, allocations: 0.6378 MB / 1.282 GB, free: 13.72 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002055/1.116, allocations: 0.9802 MB / 1.283 GB, free: 13.51 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/1.116, allocations: 3.016 kB / 1.283 GB, free: 13.51 MB / 1.014 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003229/1.119, allocations: 1.288 MB / 1.284 GB, free: 13.34 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.661e-05/1.12, allocations: 41.62 kB / 1.284 GB, free: 13.31 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/1.12, allocations: 4.25 kB / 1.284 GB, free: 13.31 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/1.12, allocations: 12.94 kB / 1.284 GB, free: 13.31 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009715/1.121, allocations: 206.4 kB / 1.284 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/1.121, allocations: 12.44 kB / 1.284 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/1.122, allocations: 314.4 kB / 1.284 GB, free: 13.23 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.552e-05/1.122, allocations: 31.38 kB / 1.285 GB, free: 13.23 MB / 1.014 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.0005085/1.123, allocations: 332.2 kB / 1.285 GB, free: 13.08 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/1.123, allocations: 115.7 kB / 1.285 GB, free: 13.02 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/1.125, allocations: 1.006 MB / 1.286 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/1.125, allocations: 10.47 kB / 1.286 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/1.125, allocations: 1 kB / 1.286 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/1.125, allocations: 10.17 kB / 1.286 GB, free: 12.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004387/1.129, allocations: 3.171 MB / 1.289 GB, free: 12.12 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/1.13, allocations: 11.28 kB / 1.289 GB, free: 12.12 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/1.13, allocations: 128.4 kB / 1.289 GB, free: 12.12 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.671e-05/1.13, allocations: 13.91 kB / 1.289 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.533e-05/1.13, allocations: 24.81 kB / 1.289 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-05/1.13, allocations: 17.28 kB / 1.289 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.457e-06/1.13, allocations: 13.81 kB / 1.289 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/1.132, allocations: 1.346 MB / 1.291 GB, free: 11.53 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004797/1.133, allocations: 334.8 kB / 1.291 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/1.133, allocations: 24.02 kB / 1.291 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/1.134, allocations: 127.2 kB / 1.291 GB, free: 11.35 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/1.134, allocations: 63.78 kB / 1.291 GB, free: 11.34 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-05/1.134, allocations: 37.5 kB / 1.291 GB, free: 11.34 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001541/1.136, allocations: 0.8889 MB / 1.292 GB, free: 11.22 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.136, allocations: 0 / 1.292 GB, free: 11.22 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001127/1.137, allocations: 299.7 kB / 1.292 GB, free: 11.2 MB / 1.014 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.0007185/1.138, allocations: 350 kB / 1.293 GB, free: 11.06 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002317/1.14, allocations: 1.053 MB / 1.294 GB, free: 10.96 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.14, allocations: 3.344 kB / 1.294 GB, free: 10.96 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007925/1.141, allocations: 0.5249 MB / 1.294 GB, free: 10.89 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003578/1.144, allocations: 0.5305 MB / 1.295 GB, free: 10.85 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/1.148, allocations: 2.418 MB / 1.297 GB, free: 9.625 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006506/1.149, allocations: 1.067 MB / 1.298 GB, free: 8.91 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/1.149, allocations: 89.14 kB / 1.298 GB, free: 8.902 MB / 1.014 GB Notification: Performance of SimCode: time 9.41e-07/1.149, allocations: 0 / 1.298 GB, free: 8.902 MB / 1.014 GB Notification: Performance of Templates: time 0.02488/1.174, allocations: 18.57 MB / 1.316 GB, free: 5.172 MB / 1.014 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 -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