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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001084/0.001084, allocations: 108 kB / 15.61 MB, free: 152 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.001126/0.001126, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.835/2.835, allocations: 472.6 MB / 0.7451 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 64.73 kB / 0.912 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2729, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.8685/1.141, allocations: 194 MB / 1.258 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.009164/1.151, allocations: 6.939 MB / 1.264 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/1.152, allocations: 47.25 kB / 1.264 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001582/1.153, allocations: 0.6856 MB / 1.265 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00551/1.159, allocations: 2.341 MB / 1.267 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003422/1.162, allocations: 1.409 MB / 1.269 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004867/1.167, allocations: 2.982 MB / 1.272 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/1.169, allocations: 0.8886 MB / 1.273 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002937/1.172, allocations: 1.133 MB / 1.274 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/1.173, allocations: 0.8051 MB / 1.274 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001883/1.174, allocations: 101.8 kB / 1.275 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005008/1.179, allocations: 2.053 MB / 1.277 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007487/1.179, allocations: 368.4 kB / 1.277 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009753/1.18, allocations: 0.5866 MB / 1.278 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004687/1.185, allocations: 2.366 MB / 1.28 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/1.185, allocations: 0.75 kB / 1.28 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.633e-06/1.185, allocations: 1.5 kB / 1.28 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.207e-05/1.185, allocations: 0 / 1.28 GB, free: 5.465 MB / 0.9981 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.003949/1.189, allocations: 1.624 MB / 1.281 GB, free: 20.6 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/1.189, allocations: 9.312 kB / 1.281 GB, free: 20.6 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003507/1.193, allocations: 0.535 MB / 1.282 GB, free: 20.54 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00235/1.195, allocations: 0.9822 MB / 1.283 GB, free: 20.2 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001289/1.196, allocations: 280.4 kB / 1.283 GB, free: 20.2 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/1.197, allocations: 64.09 kB / 1.283 GB, free: 20.2 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002763/1.199, allocations: 1.129 MB / 1.284 GB, free: 20.09 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/1.199, allocations: 2.312 kB / 1.284 GB, free: 20.09 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.704e-05/1.199, allocations: 28.95 kB / 1.284 GB, free: 20.09 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.202e-05/1.2, allocations: 29.14 kB / 1.284 GB, free: 20.09 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003323/1.203, allocations: 1.205 MB / 1.286 GB, free: 20.08 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.006958/1.21, allocations: 3.214 MB / 1.289 GB, free: 19.15 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/1.212, allocations: 0.6865 MB / 1.289 GB, free: 19.12 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007794/1.212, allocations: 426 kB / 1.29 GB, free: 19.11 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009423/1.213, allocations: 1.022 MB / 1.291 GB, free: 17.98 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/1.214, allocations: 0.5158 MB / 1.291 GB, free: 17.88 MB / 1.014 GB Notification: Performance of pre-optimization done (n=57): time 2.465e-06/1.214, allocations: 1.188 kB / 1.291 GB, free: 17.88 MB / 1.014 GB Notification: Performance of matching and sorting (n=57): time 0.00329/1.218, allocations: 1.221 MB / 1.292 GB, free: 17.75 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/1.218, allocations: 149 kB / 1.293 GB, free: 17.59 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002356/1.22, allocations: 1.199 MB / 1.294 GB, free: 17.44 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001416/1.22, allocations: 39.77 kB / 1.294 GB, free: 17.41 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/1.221, allocations: 434 kB / 1.294 GB, free: 17.28 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/1.221, allocations: 191 kB / 1.294 GB, free: 17.16 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/1.221, allocations: 144.4 kB / 1.295 GB, free: 17.14 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001356/1.221, allocations: 333 kB / 1.295 GB, free: 16.84 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/1.223, allocations: 458 kB / 1.295 GB, free: 16.84 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/1.224, allocations: 0.6194 MB / 1.296 GB, free: 16.71 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002156/1.226, allocations: 0.9487 MB / 1.297 GB, free: 16.52 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/1.226, allocations: 1.375 kB / 1.297 GB, free: 16.52 MB / 1.014 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003454/1.23, allocations: 1.228 MB / 1.298 GB, free: 16.36 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.858e-05/1.23, allocations: 42.95 kB / 1.298 GB, free: 16.32 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/1.23, allocations: 8.219 kB / 1.298 GB, free: 16.32 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/1.23, allocations: 5.281 kB / 1.298 GB, free: 16.32 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009919/1.231, allocations: 204.4 kB / 1.298 GB, free: 16.31 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/1.231, allocations: 5.906 kB / 1.298 GB, free: 16.31 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/1.233, allocations: 270.6 kB / 1.299 GB, free: 16.25 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/1.233, allocations: 34.38 kB / 1.299 GB, free: 16.25 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.0005609/1.233, allocations: 333.6 kB / 1.299 GB, free: 16.1 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/1.234, allocations: 114.9 kB / 1.299 GB, free: 16.04 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00232/1.236, allocations: 0.9954 MB / 1.3 GB, free: 15.92 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.876e-05/1.236, allocations: 10.47 kB / 1.3 GB, free: 15.92 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.926e-06/1.236, allocations: 1.062 kB / 1.3 GB, free: 15.92 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/1.236, allocations: 4 kB / 1.3 GB, free: 15.92 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005455/1.242, allocations: 3.156 MB / 1.303 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/1.242, allocations: 10.91 kB / 1.303 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000596/1.242, allocations: 122.5 kB / 1.303 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/1.242, allocations: 9.625 kB / 1.303 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.019e-05/1.242, allocations: 25.16 kB / 1.303 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.145e-05/1.242, allocations: 12.72 kB / 1.303 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/1.242, allocations: 15.44 kB / 1.303 GB, free: 15.13 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002252/1.245, allocations: 1.346 MB / 1.305 GB, free: 14.54 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006236/1.245, allocations: 328.9 kB / 1.305 GB, free: 14.38 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003113/1.246, allocations: 23.28 kB / 1.305 GB, free: 14.38 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/1.247, allocations: 111.2 kB / 1.305 GB, free: 14.37 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/1.247, allocations: 63.03 kB / 1.305 GB, free: 14.36 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/1.247, allocations: 41.3 kB / 1.305 GB, free: 14.36 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00199/1.249, allocations: 0.8682 MB / 1.306 GB, free: 14.24 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.91e-07/1.249, allocations: 0 / 1.306 GB, free: 14.24 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001452/1.251, allocations: 309.2 kB / 1.306 GB, free: 14.21 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.0009225/1.252, allocations: 347.7 kB / 1.307 GB, free: 14.07 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002773/1.254, allocations: 1.057 MB / 1.308 GB, free: 13.96 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.254, allocations: 0 / 1.308 GB, free: 13.96 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000996/1.255, allocations: 0.5151 MB / 1.308 GB, free: 13.89 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/1.258, allocations: 0.5526 MB / 1.309 GB, free: 13.8 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/1.262, allocations: 2.043 MB / 1.311 GB, free: 12.91 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006863/1.263, allocations: 1.071 MB / 1.312 GB, free: 12.19 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001169/1.264, allocations: 280.3 kB / 1.312 GB, free: 12.12 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/1.264, allocations: 83.62 kB / 1.312 GB, free: 12.12 MB / 1.014 GB Notification: Performance of SimCode: time 4.51e-07/1.264, allocations: 0 / 1.312 GB, free: 12.12 MB / 1.014 GB Notification: Performance of Templates: time 0.03405/1.298, allocations: 22.06 MB / 1.334 GB, free: 6.562 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches