Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: 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_10_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_10_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.001613/0.001613, allocations: 106.7 kB / 16.41 MB, free: 6.512 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.001723/0.001723, allocations: 187 kB / 17.34 MB, free: 5.742 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.422/2.422, allocations: 437 MB / 0.7112 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 67.89 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8411/0.8426, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2058/1.048, allocations: 194 MB / 1.357 GB, free: 1.086 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.01073/1.059, allocations: 6.936 MB / 1.364 GB, free: 10.14 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001396/1.061, allocations: 47.69 kB / 1.364 GB, free: 10.09 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.001982/1.063, allocations: 0.7064 MB / 1.364 GB, free: 9.379 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.0059/1.069, allocations: 2.437 MB / 1.367 GB, free: 6.934 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003427/1.072, allocations: 1.438 MB / 1.368 GB, free: 5.512 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.003945/1.076, allocations: 3.006 MB / 1.371 GB, free: 2.496 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001316/1.077, allocations: 0.8879 MB / 1.372 GB, free: 1.594 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002601/1.08, allocations: 1.157 MB / 1.373 GB, free: 448 kB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001614/1.082, allocations: 0.7986 MB / 1.374 GB, free: 15.64 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0003792/1.082, allocations: 103.9 kB / 1.374 GB, free: 15.54 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003887/1.086, allocations: 2.062 MB / 1.376 GB, free: 13.47 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0004645/1.086, allocations: 362.9 kB / 1.376 GB, free: 13.12 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0006841/1.087, allocations: 0.5908 MB / 1.377 GB, free: 12.52 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.003532/1.091, allocations: 2.397 MB / 1.379 GB, free: 10.12 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/1.091, allocations: 0 / 1.379 GB, free: 10.12 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.463e-06/1.091, allocations: 0 / 1.379 GB, free: 10.12 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.492e-05/1.091, allocations: 0 / 1.379 GB, free: 10.12 MB / 1.107 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.003491/1.094, allocations: 1.625 MB / 1.381 GB, free: 8.438 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/1.094, allocations: 12.86 kB / 1.381 GB, free: 8.426 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003044/1.097, allocations: 0.537 MB / 1.381 GB, free: 7.887 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002429/1.1, allocations: 1.032 MB / 1.382 GB, free: 6.809 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.962e-05/1.1, allocations: 61.31 kB / 1.382 GB, free: 6.75 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/1.1, allocations: 64 kB / 1.382 GB, free: 6.688 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/1.102, allocations: 1.105 MB / 1.383 GB, free: 5.555 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/1.102, allocations: 7.875 kB / 1.383 GB, free: 5.547 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.782e-05/1.102, allocations: 28 kB / 1.384 GB, free: 5.52 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/1.102, allocations: 33.3 kB / 1.384 GB, free: 5.488 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002962/1.105, allocations: 1.164 MB / 1.385 GB, free: 4.324 MB / 1.107 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.006165/1.112, allocations: 3.17 MB / 1.388 GB, free: 1.074 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/1.113, allocations: 0.688 MB / 1.388 GB, free: 388 kB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008299/1.114, allocations: 418.1 kB / 1.389 GB, free: 15.96 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/1.115, allocations: 1.017 MB / 1.39 GB, free: 14.73 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/1.116, allocations: 0.5221 MB / 1.39 GB, free: 14.18 MB / 1.123 GB Notification: Performance of pre-optimization done (n=57): time 2.405e-06/1.116, allocations: 0 / 1.39 GB, free: 14.18 MB / 1.123 GB Notification: Performance of matching and sorting (n=57): time 0.003059/1.119, allocations: 1.221 MB / 1.392 GB, free: 12.95 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/1.119, allocations: 144.8 kB / 1.392 GB, free: 12.78 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/1.121, allocations: 1.18 MB / 1.393 GB, free: 11.58 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001025/1.121, allocations: 41.7 kB / 1.393 GB, free: 11.54 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.000375/1.122, allocations: 433.5 kB / 1.393 GB, free: 11.11 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.000197/1.122, allocations: 189.2 kB / 1.393 GB, free: 10.92 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002841/1.122, allocations: 146.1 kB / 1.394 GB, free: 10.77 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001305/1.122, allocations: 330 kB / 1.394 GB, free: 10.44 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/1.124, allocations: 436.9 kB / 1.394 GB, free: 10.01 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/1.125, allocations: 0.601 MB / 1.395 GB, free: 9.371 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/1.127, allocations: 0.9262 MB / 1.396 GB, free: 8.391 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/1.127, allocations: 4 kB / 1.396 GB, free: 8.387 MB / 1.123 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00312/1.13, allocations: 1.201 MB / 1.397 GB, free: 7.168 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/1.13, allocations: 35.73 kB / 1.397 GB, free: 7.129 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/1.13, allocations: 4 kB / 1.397 GB, free: 7.125 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/1.13, allocations: 4 kB / 1.397 GB, free: 7.121 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009591/1.131, allocations: 191.9 kB / 1.397 GB, free: 6.934 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/1.131, allocations: 15.92 kB / 1.397 GB, free: 6.918 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/1.133, allocations: 238.9 kB / 1.397 GB, free: 6.684 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.53e-05/1.133, allocations: 39.97 kB / 1.398 GB, free: 6.645 MB / 1.123 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.0005455/1.134, allocations: 327.8 kB / 1.398 GB, free: 6.309 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002337/1.134, allocations: 114.6 kB / 1.398 GB, free: 6.195 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002215/1.136, allocations: 0.9862 MB / 1.399 GB, free: 5.203 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/1.136, allocations: 11.98 kB / 1.399 GB, free: 5.191 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/1.136, allocations: 3.938 kB / 1.399 GB, free: 5.188 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/1.136, allocations: 0 / 1.399 GB, free: 5.188 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00508/1.141, allocations: 3.172 MB / 1.402 GB, free: 1.859 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/1.141, allocations: 8 kB / 1.402 GB, free: 1.852 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006033/1.142, allocations: 119.8 kB / 1.402 GB, free: 1.734 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.329e-05/1.142, allocations: 12.19 kB / 1.402 GB, free: 1.723 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.234e-05/1.142, allocations: 27.98 kB / 1.402 GB, free: 1.695 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.1e-05/1.142, allocations: 15.94 kB / 1.402 GB, free: 1.68 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/1.142, allocations: 8 kB / 1.402 GB, free: 1.672 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/1.144, allocations: 1.357 MB / 1.404 GB, free: 208 kB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006495/1.145, allocations: 327.5 kB / 1.404 GB, free: 15.86 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/1.145, allocations: 23.98 kB / 1.404 GB, free: 15.84 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/1.146, allocations: 99.91 kB / 1.404 GB, free: 15.74 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/1.146, allocations: 67.69 kB / 1.404 GB, free: 15.67 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.543e-05/1.147, allocations: 31.98 kB / 1.404 GB, free: 15.64 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.001474/1.148, allocations: 0.8521 MB / 1.405 GB, free: 14.78 MB / 1.139 GB Notification: Performance of sort global known variables: time 2.1e-07/1.148, allocations: 0 / 1.405 GB, free: 14.78 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.001149/1.149, allocations: 303.8 kB / 1.405 GB, free: 14.48 MB / 1.139 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.0007382/1.15, allocations: 329.1 kB / 1.405 GB, free: 14.17 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.002438/1.152, allocations: 1.021 MB / 1.406 GB, free: 13.13 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.45e-05/1.152, allocations: 4 kB / 1.406 GB, free: 13.13 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0009712/1.153, allocations: 0.5087 MB / 1.407 GB, free: 12.61 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/1.156, allocations: 0.55 MB / 1.408 GB, free: 12.07 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003795/1.16, allocations: 2.081 MB / 1.41 GB, free: 9.852 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000723/1.161, allocations: 1.061 MB / 1.411 GB, free: 8.754 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003914/1.161, allocations: 87.41 kB / 1.411 GB, free: 8.668 MB / 1.139 GB Notification: Performance of SimCode: time 8.01e-07/1.161, allocations: 0 / 1.411 GB, free: 8.668 MB / 1.139 GB Notification: Performance of Templates: time 0.02695/1.188, allocations: 18.82 MB / 1.429 GB, free: 5.961 MB / 1.154 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches