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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001623/0.001624, allocations: 106.1 kB / 15.99 MB, free: 6.359 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.00188/0.00188, allocations: 193.8 kB / 16.91 MB, free: 6.195 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.325/1.325, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.541/2.541, allocations: 469.4 MB / 0.7423 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 68.39 kB / 0.9083 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.323, allocations: 159.1 MB / 1.064 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.7722/1.095, allocations: 191.5 MB / 1.251 GB, free: 9.996 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01042/1.106, allocations: 6.889 MB / 1.257 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001675/1.107, allocations: 43.69 kB / 1.257 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001826/1.109, allocations: 0.5906 MB / 1.258 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005787/1.115, allocations: 2.208 MB / 1.26 GB, free: 248 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003327/1.118, allocations: 1.315 MB / 1.262 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004169/1.123, allocations: 2.994 MB / 1.264 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/1.124, allocations: 0.9071 MB / 1.265 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003057/1.127, allocations: 1.161 MB / 1.266 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001881/1.129, allocations: 0.8427 MB / 1.267 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000326/1.129, allocations: 100 kB / 1.267 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004179/1.134, allocations: 2.136 MB / 1.269 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0006226/1.134, allocations: 370.9 kB / 1.27 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001131/1.135, allocations: 0.5947 MB / 1.27 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002746/1.138, allocations: 1.774 MB / 1.272 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/1.138, allocations: 0 / 1.272 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.593e-06/1.138, allocations: 0 / 1.272 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.256e-05/1.138, allocations: 0 / 1.272 GB, free: 4.066 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004087/1.142, allocations: 1.633 MB / 1.274 GB, free: 2.375 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/1.142, allocations: 12.62 kB / 1.274 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003125/1.145, allocations: 0.5371 MB / 1.274 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002393/1.148, allocations: 0.979 MB / 1.275 GB, free: 0.8008 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001151/1.149, allocations: 281 kB / 1.275 GB, free: 0.5273 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/1.149, allocations: 71.98 kB / 1.276 GB, free: 468 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00266/1.152, allocations: 1.117 MB / 1.277 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/1.152, allocations: 7.875 kB / 1.277 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.383e-05/1.152, allocations: 28 kB / 1.277 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.866e-05/1.152, allocations: 33.3 kB / 1.277 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003171/1.155, allocations: 1.192 MB / 1.278 GB, free: 14.05 MB / 0.9981 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.006407/1.162, allocations: 3.213 MB / 1.281 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/1.163, allocations: 0.688 MB / 1.282 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007992/1.164, allocations: 422.2 kB / 1.282 GB, free: 9.645 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000912/1.165, allocations: 1.021 MB / 1.283 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001062/1.166, allocations: 0.5182 MB / 1.284 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=57): time 3.556e-06/1.166, allocations: 0 / 1.284 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57): time 0.003054/1.169, allocations: 1.225 MB / 1.285 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.648e-05/1.169, allocations: 140.8 kB / 1.285 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002266/1.172, allocations: 1.204 MB / 1.286 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001147/1.172, allocations: 37.7 kB / 1.286 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003995/1.172, allocations: 441.4 kB / 1.287 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/1.172, allocations: 185.3 kB / 1.287 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/1.173, allocations: 146.1 kB / 1.287 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001211/1.173, allocations: 326 kB / 1.287 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/1.174, allocations: 464.9 kB / 1.288 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/1.176, allocations: 0.6171 MB / 1.288 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/1.178, allocations: 0.9418 MB / 1.289 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/1.178, allocations: 0 / 1.289 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003277/1.181, allocations: 1.24 MB / 1.29 GB, free: 0.7344 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/1.181, allocations: 37.7 kB / 1.29 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/1.181, allocations: 4 kB / 1.29 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/1.181, allocations: 4 kB / 1.29 GB, free: 0.6836 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009524/1.182, allocations: 207.8 kB / 1.291 GB, free: 492 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/1.182, allocations: 7.938 kB / 1.291 GB, free: 484 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/1.184, allocations: 266.9 kB / 1.291 GB, free: 216 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/1.184, allocations: 35.98 kB / 1.291 GB, free: 180 kB / 0.9981 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.0005767/1.185, allocations: 336.7 kB / 1.291 GB, free: 15.83 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/1.185, allocations: 114.6 kB / 1.291 GB, free: 15.72 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/1.187, allocations: 0.9999 MB / 1.292 GB, free: 14.71 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/1.187, allocations: 4.047 kB / 1.292 GB, free: 14.71 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/1.187, allocations: 7.922 kB / 1.292 GB, free: 14.7 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/1.187, allocations: 7.984 kB / 1.292 GB, free: 14.7 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004951/1.192, allocations: 3.154 MB / 1.295 GB, free: 11.39 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-05/1.192, allocations: 8 kB / 1.295 GB, free: 11.38 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000612/1.193, allocations: 119.8 kB / 1.296 GB, free: 11.26 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.467e-05/1.193, allocations: 12.19 kB / 1.296 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.039e-05/1.193, allocations: 27.98 kB / 1.296 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.517e-05/1.193, allocations: 15.92 kB / 1.296 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/1.193, allocations: 11.94 kB / 1.296 GB, free: 11.2 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/1.195, allocations: 1.333 MB / 1.297 GB, free: 9.738 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006178/1.196, allocations: 335.3 kB / 1.297 GB, free: 9.391 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002575/1.196, allocations: 24 kB / 1.297 GB, free: 9.367 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/1.197, allocations: 111.9 kB / 1.297 GB, free: 9.258 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/1.197, allocations: 59.77 kB / 1.297 GB, free: 9.199 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.609e-05/1.198, allocations: 39.91 kB / 1.297 GB, free: 9.16 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001748/1.199, allocations: 0.8755 MB / 1.298 GB, free: 8.277 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.71e-07/1.199, allocations: 0 / 1.298 GB, free: 8.277 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001184/1.201, allocations: 295.8 kB / 1.299 GB, free: 7.988 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.0008604/1.201, allocations: 347.1 kB / 1.299 GB, free: 7.652 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002723/1.204, allocations: 1.048 MB / 1.3 GB, free: 6.59 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/1.204, allocations: 0 / 1.3 GB, free: 6.59 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009858/1.205, allocations: 0.5221 MB / 1.3 GB, free: 6.059 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003099/1.208, allocations: 0.5528 MB / 1.301 GB, free: 5.52 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004362/1.213, allocations: 2.392 MB / 1.303 GB, free: 2.996 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007853/1.213, allocations: 1.065 MB / 1.304 GB, free: 1.895 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/1.214, allocations: 91.39 kB / 1.304 GB, free: 1.809 MB / 1.014 GB Notification: Performance of SimCode: time 1.252e-06/1.214, allocations: 0 / 1.304 GB, free: 1.809 MB / 1.014 GB Notification: Performance of Templates: time 0.0291/1.243, allocations: 18.72 MB / 1.323 GB, free: 15.21 MB / 1.045 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