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.008059/0.008059, allocations: 100.8 kB / 15.73 MB, free: 5.953 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.001695/0.001695, allocations: 187 kB / 16.67 MB, free: 5.883 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.686/2.686, allocations: 461.9 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 64.12 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3368, allocations: 157.4 MB / 1.208 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.8939/1.231, allocations: 194 MB / 1.397 GB, free: 12.68 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.01216/1.243, allocations: 6.942 MB / 1.404 GB, free: 7.02 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002131/1.245, allocations: 45.81 kB / 1.404 GB, free: 7 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002115/1.247, allocations: 0.6874 MB / 1.405 GB, free: 6.41 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.006718/1.254, allocations: 2.344 MB / 1.407 GB, free: 4.617 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003927/1.258, allocations: 1.418 MB / 1.408 GB, free: 3.562 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.004634/1.263, allocations: 3.001 MB / 1.411 GB, free: 1.797 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001478/1.264, allocations: 0.8843 MB / 1.412 GB, free: 1.25 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002891/1.267, allocations: 1.15 MB / 1.413 GB, free: 0.5742 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001366/1.269, allocations: 0.8076 MB / 1.414 GB, free: 92 kB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0001771/1.269, allocations: 102.7 kB / 1.414 GB, free: 88 kB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004198/1.273, allocations: 2.058 MB / 1.416 GB, free: 14.93 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0004494/1.273, allocations: 366 kB / 1.417 GB, free: 14.67 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0007375/1.274, allocations: 0.5897 MB / 1.417 GB, free: 14.27 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.003928/1.278, allocations: 2.389 MB / 1.419 GB, free: 12.72 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/1.278, allocations: 0 / 1.419 GB, free: 12.72 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.663e-06/1.278, allocations: 4 kB / 1.419 GB, free: 12.71 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.677e-05/1.278, allocations: 0 / 1.419 GB, free: 12.71 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.003494/1.282, allocations: 1.627 MB / 1.421 GB, free: 11.46 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/1.282, allocations: 10.69 kB / 1.421 GB, free: 11.46 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003311/1.285, allocations: 0.5407 MB / 1.422 GB, free: 11.21 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002832/1.288, allocations: 1.034 MB / 1.423 GB, free: 10.41 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.82e-05/1.288, allocations: 56.19 kB / 1.423 GB, free: 10.39 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/1.288, allocations: 68.7 kB / 1.423 GB, free: 10.37 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/1.291, allocations: 1.106 MB / 1.424 GB, free: 9.707 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/1.291, allocations: 3.938 kB / 1.424 GB, free: 9.703 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.144e-05/1.291, allocations: 31.94 kB / 1.424 GB, free: 9.672 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-05/1.291, allocations: 29.3 kB / 1.424 GB, free: 9.645 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003084/1.294, allocations: 1.164 MB / 1.425 GB, free: 8.477 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.00576/1.3, allocations: 3.166 MB / 1.428 GB, free: 5.23 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/1.301, allocations: 0.6802 MB / 1.429 GB, free: 4.543 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007817/1.302, allocations: 426.9 kB / 1.429 GB, free: 4.125 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009953/1.303, allocations: 1.021 MB / 1.43 GB, free: 2.883 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/1.304, allocations: 0.5143 MB / 1.431 GB, free: 2.344 MB / 1.107 GB Notification: Performance of pre-optimization done (n=57): time 2.465e-06/1.304, allocations: 0 / 1.431 GB, free: 2.344 MB / 1.107 GB Notification: Performance of matching and sorting (n=57): time 0.003133/1.307, allocations: 1.221 MB / 1.432 GB, free: 1.109 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/1.308, allocations: 136.9 kB / 1.432 GB, free: 0.9453 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/1.31, allocations: 1.184 MB / 1.433 GB, free: 15.75 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 8.129e-05/1.31, allocations: 41.7 kB / 1.433 GB, free: 15.7 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/1.31, allocations: 437.5 kB / 1.434 GB, free: 15.27 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/1.31, allocations: 193.2 kB / 1.434 GB, free: 15.08 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/1.31, allocations: 138.1 kB / 1.434 GB, free: 14.94 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001388/1.311, allocations: 334 kB / 1.434 GB, free: 14.61 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/1.312, allocations: 436.9 kB / 1.435 GB, free: 14.17 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/1.313, allocations: 0.5938 MB / 1.435 GB, free: 13.53 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002007/1.315, allocations: 0.9262 MB / 1.436 GB, free: 12.55 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/1.315, allocations: 4 kB / 1.436 GB, free: 12.55 MB / 1.123 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002989/1.318, allocations: 1.201 MB / 1.437 GB, free: 11.33 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 4.778e-05/1.318, allocations: 41.62 kB / 1.437 GB, free: 11.29 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/1.318, allocations: 4 kB / 1.437 GB, free: 11.28 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/1.318, allocations: 4 kB / 1.437 GB, free: 11.28 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/1.319, allocations: 187.8 kB / 1.438 GB, free: 11.09 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/1.319, allocations: 11.94 kB / 1.438 GB, free: 11.08 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/1.321, allocations: 242.9 kB / 1.438 GB, free: 10.84 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-05/1.321, allocations: 31.98 kB / 1.438 GB, free: 10.81 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.0004442/1.321, allocations: 331.8 kB / 1.438 GB, free: 10.47 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/1.322, allocations: 114.6 kB / 1.438 GB, free: 10.36 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/1.324, allocations: 0.9917 MB / 1.439 GB, free: 9.355 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/1.324, allocations: 8.047 kB / 1.439 GB, free: 9.348 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/1.324, allocations: 7.922 kB / 1.439 GB, free: 9.34 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/1.324, allocations: 3.984 kB / 1.439 GB, free: 9.336 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004679/1.328, allocations: 3.158 MB / 1.442 GB, free: 6.023 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.328, allocations: 16.11 kB / 1.442 GB, free: 6.008 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005848/1.329, allocations: 115.8 kB / 1.442 GB, free: 5.895 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.475e-05/1.329, allocations: 15.94 kB / 1.442 GB, free: 5.879 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.211e-05/1.329, allocations: 23.98 kB / 1.442 GB, free: 5.855 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-05/1.329, allocations: 15.94 kB / 1.442 GB, free: 5.84 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/1.329, allocations: 15.94 kB / 1.442 GB, free: 5.824 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/1.331, allocations: 1.337 MB / 1.444 GB, free: 4.367 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005418/1.332, allocations: 323.4 kB / 1.444 GB, free: 4.031 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001743/1.332, allocations: 24 kB / 1.444 GB, free: 4.008 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/1.333, allocations: 103.9 kB / 1.444 GB, free: 3.906 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/1.333, allocations: 59.77 kB / 1.444 GB, free: 3.848 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.251e-05/1.333, allocations: 39.97 kB / 1.444 GB, free: 3.809 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.001468/1.335, allocations: 0.8482 MB / 1.445 GB, free: 2.953 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.91e-07/1.335, allocations: 4 kB / 1.445 GB, free: 2.949 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.001104/1.336, allocations: 295.8 kB / 1.445 GB, free: 2.66 MB / 1.123 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.0007158/1.337, allocations: 360.5 kB / 1.446 GB, free: 2.312 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.002418/1.339, allocations: 1.006 MB / 1.447 GB, free: 1.293 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/1.339, allocations: 4 kB / 1.447 GB, free: 1.289 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0009203/1.34, allocations: 0.5163 MB / 1.447 GB, free: 0.7617 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002625/1.343, allocations: 0.5481 MB / 1.448 GB, free: 232 kB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/1.346, allocations: 2.024 MB / 1.45 GB, free: 14.07 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007004/1.347, allocations: 1.073 MB / 1.451 GB, free: 12.97 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.0008949/1.348, allocations: 276.7 kB / 1.451 GB, free: 12.7 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002561/1.348, allocations: 79.41 kB / 1.451 GB, free: 12.62 MB / 1.139 GB Notification: Performance of SimCode: time 3.8e-07/1.348, allocations: 8 kB / 1.451 GB, free: 12.62 MB / 1.139 GB Notification: Performance of Templates: time 0.03585/1.384, allocations: 22.18 MB / 1.473 GB, free: 6.648 MB / 1.154 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