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.001404/0.001404, 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.00189/0.00189, allocations: 193.3 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.806/2.806, allocations: 472.6 MB / 0.7451 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 59.78 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3397, 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.7753/1.115, allocations: 194 MB / 1.258 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.009947/1.125, allocations: 6.939 MB / 1.264 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/1.127, allocations: 44.84 kB / 1.264 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001659/1.128, allocations: 0.6866 MB / 1.265 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00612/1.134, allocations: 2.339 MB / 1.267 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003657/1.138, allocations: 1.411 MB / 1.269 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004015/1.142, allocations: 2.985 MB / 1.272 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/1.143, allocations: 0.882 MB / 1.273 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002543/1.146, allocations: 1.137 MB / 1.274 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00143/1.147, allocations: 0.7936 MB / 1.274 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002141/1.148, allocations: 99.66 kB / 1.275 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00509/1.153, allocations: 2.058 MB / 1.277 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005634/1.153, allocations: 371.2 kB / 1.277 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009279/1.154, allocations: 0.5841 MB / 1.277 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00668/1.161, allocations: 2.362 MB / 1.28 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/1.161, allocations: 8.625 kB / 1.28 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.226e-06/1.161, allocations: 1.312 kB / 1.28 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.031e-05/1.161, allocations: 0 / 1.28 GB, free: 5.492 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.004691/1.166, allocations: 1.624 MB / 1.281 GB, free: 20.63 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/1.166, allocations: 9.219 kB / 1.281 GB, free: 20.63 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003544/1.169, allocations: 0.5343 MB / 1.282 GB, free: 20.57 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002432/1.172, allocations: 0.9822 MB / 1.283 GB, free: 20.23 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001564/1.173, allocations: 278.1 kB / 1.283 GB, free: 20.23 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002239/1.174, allocations: 71.28 kB / 1.283 GB, free: 20.23 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003573/1.177, allocations: 1.13 MB / 1.284 GB, free: 20.11 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/1.177, allocations: 0 / 1.284 GB, free: 20.11 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.917e-05/1.177, allocations: 27.44 kB / 1.284 GB, free: 20.11 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.176e-05/1.177, allocations: 32.47 kB / 1.284 GB, free: 20.11 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003477/1.181, allocations: 1.199 MB / 1.286 GB, free: 20.11 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.005972/1.187, allocations: 3.214 MB / 1.289 GB, free: 19.18 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/1.189, allocations: 0.685 MB / 1.289 GB, free: 19.15 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008188/1.19, allocations: 425.8 kB / 1.29 GB, free: 19.14 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009652/1.19, allocations: 1.029 MB / 1.291 GB, free: 18.01 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001025/1.192, allocations: 0.5163 MB / 1.291 GB, free: 17.9 MB / 1.014 GB Notification: Performance of pre-optimization done (n=57): time 2.645e-06/1.192, allocations: 3.094 kB / 1.291 GB, free: 17.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=57): time 0.003083/1.195, allocations: 1.216 MB / 1.292 GB, free: 17.77 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/1.195, allocations: 143.1 kB / 1.293 GB, free: 17.61 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/1.197, allocations: 1.201 MB / 1.294 GB, free: 17.46 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.538e-05/1.197, allocations: 38.77 kB / 1.294 GB, free: 17.43 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/1.197, allocations: 435.2 kB / 1.294 GB, free: 17.3 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/1.197, allocations: 195.4 kB / 1.294 GB, free: 17.18 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/1.198, allocations: 146.2 kB / 1.295 GB, free: 17.16 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001367/1.198, allocations: 329.5 kB / 1.295 GB, free: 16.86 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/1.199, allocations: 458.5 kB / 1.295 GB, free: 16.86 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/1.201, allocations: 0.6109 MB / 1.296 GB, free: 16.73 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/1.203, allocations: 0.9501 MB / 1.297 GB, free: 16.54 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/1.203, allocations: 4 kB / 1.297 GB, free: 16.54 MB / 1.014 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0034/1.206, allocations: 1.231 MB / 1.298 GB, free: 16.38 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.074e-05/1.206, allocations: 39.55 kB / 1.298 GB, free: 16.35 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/1.206, allocations: 2.375 kB / 1.298 GB, free: 16.35 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/1.206, allocations: 10.12 kB / 1.298 GB, free: 16.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009886/1.207, allocations: 200.4 kB / 1.298 GB, free: 16.34 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/1.207, allocations: 9.391 kB / 1.298 GB, free: 16.33 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/1.209, allocations: 277.1 kB / 1.299 GB, free: 16.27 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.435e-05/1.209, allocations: 37.09 kB / 1.299 GB, free: 16.27 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.0005148/1.21, allocations: 326.2 kB / 1.299 GB, free: 16.12 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/1.21, allocations: 112 kB / 1.299 GB, free: 16.06 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/1.212, allocations: 0.9956 MB / 1.3 GB, free: 15.95 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/1.212, allocations: 13.14 kB / 1.3 GB, free: 15.94 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/1.212, allocations: 0.9688 kB / 1.3 GB, free: 15.94 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/1.212, allocations: 4.516 kB / 1.3 GB, free: 15.94 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005102/1.217, allocations: 3.158 MB / 1.303 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/1.217, allocations: 7.094 kB / 1.303 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006047/1.218, allocations: 124.4 kB / 1.303 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.638e-05/1.218, allocations: 11.05 kB / 1.303 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/1.218, allocations: 30.19 kB / 1.303 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.742e-05/1.218, allocations: 14.09 kB / 1.303 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.328e-05/1.218, allocations: 15.33 kB / 1.303 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/1.22, allocations: 1.345 MB / 1.305 GB, free: 14.56 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004953/1.221, allocations: 330.3 kB / 1.305 GB, free: 14.4 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001732/1.221, allocations: 23.38 kB / 1.305 GB, free: 14.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/1.222, allocations: 114.8 kB / 1.305 GB, free: 14.39 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/1.222, allocations: 60.36 kB / 1.305 GB, free: 14.38 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.528e-05/1.222, allocations: 42.2 kB / 1.305 GB, free: 14.38 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001758/1.224, allocations: 0.8684 MB / 1.306 GB, free: 14.26 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.51e-07/1.224, allocations: 0 / 1.306 GB, free: 14.26 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001399/1.226, allocations: 302.7 kB / 1.306 GB, free: 14.23 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.0007657/1.226, allocations: 351.7 kB / 1.307 GB, free: 14.09 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002449/1.229, allocations: 1.052 MB / 1.308 GB, free: 13.99 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/1.229, allocations: 6.594 kB / 1.308 GB, free: 13.99 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0008546/1.23, allocations: 0.5115 MB / 1.308 GB, free: 13.92 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002559/1.232, allocations: 0.555 MB / 1.309 GB, free: 13.83 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003253/1.235, allocations: 2.041 MB / 1.311 GB, free: 12.93 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006625/1.236, allocations: 1.067 MB / 1.312 GB, free: 12.21 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001056/1.237, allocations: 279.3 kB / 1.312 GB, free: 12.15 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/1.237, allocations: 79.7 kB / 1.312 GB, free: 12.14 MB / 1.014 GB Notification: Performance of SimCode: time 4.51e-07/1.237, allocations: 0 / 1.312 GB, free: 12.14 MB / 1.014 GB Notification: Performance of Templates: time 0.03288/1.27, allocations: 22.07 MB / 1.334 GB, free: 6.594 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