Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009486/0.009486, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.002032/0.002032, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.356/2.356, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.91 kB / 0.9509 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8982/0.8994, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2286/1.128, allocations: 194 MB / 1.277 GB, free: 11.64 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01096/1.139, allocations: 6.936 MB / 1.284 GB, free: 4.688 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/1.141, allocations: 47.69 kB / 1.284 GB, free: 4.641 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001962/1.143, allocations: 0.7026 MB / 1.285 GB, free: 3.934 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006082/1.149, allocations: 2.439 MB / 1.287 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003531/1.152, allocations: 1.436 MB / 1.289 GB, free: 72 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00447/1.157, allocations: 2.998 MB / 1.292 GB, free: 13.06 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/1.158, allocations: 0.884 MB / 1.292 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002968/1.161, allocations: 1.165 MB / 1.294 GB, free: 11 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001607/1.163, allocations: 0.8073 MB / 1.294 GB, free: 10.2 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.000271/1.163, allocations: 100 kB / 1.294 GB, free: 10.1 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004136/1.167, allocations: 2.066 MB / 1.297 GB, free: 8.027 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0005181/1.168, allocations: 366.8 kB / 1.297 GB, free: 7.668 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0009867/1.169, allocations: 0.583 MB / 1.297 GB, free: 7.082 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.004345/1.173, allocations: 2.403 MB / 1.3 GB, free: 4.672 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/1.173, allocations: 0 / 1.3 GB, free: 4.672 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.473e-06/1.173, allocations: 0 / 1.3 GB, free: 4.672 MB / 1.029 GB Notification: Performance of Transformations before backend: time 3.467e-05/1.173, allocations: 0 / 1.3 GB, free: 4.672 MB / 1.029 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.003661/1.177, allocations: 1.67 MB / 1.301 GB, free: 2.941 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.177, allocations: 8.031 kB / 1.301 GB, free: 2.934 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003005/1.18, allocations: 0.5455 MB / 1.302 GB, free: 2.387 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002368/1.183, allocations: 1.05 MB / 1.303 GB, free: 1.293 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.718e-05/1.183, allocations: 57.31 kB / 1.303 GB, free: 1.238 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/1.183, allocations: 64 kB / 1.303 GB, free: 1.176 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002483/1.185, allocations: 1.105 MB / 1.304 GB, free: 44 kB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/1.185, allocations: 3.938 kB / 1.304 GB, free: 40 kB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.093e-05/1.185, allocations: 28 kB / 1.304 GB, free: 12 kB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.05e-05/1.185, allocations: 37.3 kB / 1.304 GB, free: 15.98 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003087/1.189, allocations: 1.164 MB / 1.305 GB, free: 14.81 MB / 1.045 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.005934/1.194, allocations: 3.183 MB / 1.308 GB, free: 11.55 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/1.196, allocations: 0.6802 MB / 1.309 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008535/1.197, allocations: 426.2 kB / 1.31 GB, free: 10.44 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000946/1.198, allocations: 1.017 MB / 1.311 GB, free: 9.203 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001071/1.199, allocations: 0.5221 MB / 1.311 GB, free: 8.645 MB / 1.045 GB Notification: Performance of pre-optimization done (n=57): time 2.965e-06/1.199, allocations: 0 / 1.311 GB, free: 8.645 MB / 1.045 GB Notification: Performance of matching and sorting (n=57): time 0.003175/1.202, allocations: 1.229 MB / 1.312 GB, free: 7.41 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.918e-05/1.202, allocations: 144.8 kB / 1.312 GB, free: 7.238 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/1.204, allocations: 1.172 MB / 1.314 GB, free: 6.051 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 8.937e-05/1.205, allocations: 45.7 kB / 1.314 GB, free: 6 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004132/1.205, allocations: 441.8 kB / 1.314 GB, free: 5.566 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/1.205, allocations: 198.3 kB / 1.314 GB, free: 5.371 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002782/1.205, allocations: 150.1 kB / 1.314 GB, free: 5.219 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001334/1.206, allocations: 326 kB / 1.315 GB, free: 4.895 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/1.207, allocations: 440.9 kB / 1.315 GB, free: 4.461 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/1.208, allocations: 0.5937 MB / 1.316 GB, free: 3.82 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002127/1.211, allocations: 0.9262 MB / 1.317 GB, free: 2.836 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/1.211, allocations: 8 kB / 1.317 GB, free: 2.828 MB / 1.045 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003151/1.214, allocations: 1.202 MB / 1.318 GB, free: 1.613 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/1.214, allocations: 37.7 kB / 1.318 GB, free: 1.57 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/1.214, allocations: 7.938 kB / 1.318 GB, free: 1.562 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/1.214, allocations: 8.281 kB / 1.318 GB, free: 1.555 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009545/1.215, allocations: 183.8 kB / 1.318 GB, free: 1.375 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.031e-05/1.215, allocations: 19.86 kB / 1.318 GB, free: 1.355 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/1.216, allocations: 239.1 kB / 1.318 GB, free: 1.121 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.952e-05/1.216, allocations: 35.97 kB / 1.318 GB, free: 1.086 MB / 1.045 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.0004938/1.217, allocations: 323.4 kB / 1.319 GB, free: 0.7539 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/1.217, allocations: 123.2 kB / 1.319 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/1.219, allocations: 0.9903 MB / 1.32 GB, free: 15.63 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/1.219, allocations: 12 kB / 1.32 GB, free: 15.62 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/1.219, allocations: 7.938 kB / 1.32 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/1.219, allocations: 3.984 kB / 1.32 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005046/1.224, allocations: 3.154 MB / 1.323 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/1.224, allocations: 8 kB / 1.323 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/1.225, allocations: 116.2 kB / 1.323 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.44e-05/1.225, allocations: 12 kB / 1.323 GB, free: 12.16 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/1.225, allocations: 23.98 kB / 1.323 GB, free: 12.14 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.605e-05/1.225, allocations: 15.94 kB / 1.323 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.892e-06/1.225, allocations: 8 kB / 1.323 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002244/1.227, allocations: 1.35 MB / 1.324 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006114/1.228, allocations: 343.9 kB / 1.325 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/1.228, allocations: 23.98 kB / 1.325 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/1.229, allocations: 103.9 kB / 1.325 GB, free: 10.17 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/1.23, allocations: 71.55 kB / 1.325 GB, free: 10.1 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.411e-05/1.23, allocations: 35.97 kB / 1.325 GB, free: 10.07 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0015/1.231, allocations: 0.8482 MB / 1.326 GB, free: 9.211 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.81e-07/1.231, allocations: 4 kB / 1.326 GB, free: 9.207 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001072/1.232, allocations: 287.7 kB / 1.326 GB, free: 8.926 MB / 1.061 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.000792/1.233, allocations: 357.7 kB / 1.326 GB, free: 8.582 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002509/1.236, allocations: 1.013 MB / 1.327 GB, free: 7.559 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.236, allocations: 4 kB / 1.327 GB, free: 7.555 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0009902/1.237, allocations: 0.5139 MB / 1.328 GB, free: 7.031 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/1.239, allocations: 0.5542 MB / 1.328 GB, free: 6.492 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/1.243, allocations: 2.054 MB / 1.33 GB, free: 4.309 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007595/1.244, allocations: 1.077 MB / 1.331 GB, free: 3.199 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.00107/1.245, allocations: 275.9 kB / 1.332 GB, free: 2.93 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002767/1.245, allocations: 79.41 kB / 1.332 GB, free: 2.852 MB / 1.061 GB Notification: Performance of SimCode: time 4.7e-07/1.245, allocations: 0 / 1.332 GB, free: 2.852 MB / 1.061 GB Notification: Performance of Templates: time 0.03804/1.283, allocations: 22.16 MB / 1.353 GB, free: 12.91 MB / 1.092 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches