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.008425/0.008425, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001577/0.001577, allocations: 188.9 kB / 16.67 MB, free: 5.973 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.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.516/2.516, allocations: 390.2 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.53 kB / 0.9509 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3221, allocations: 140.4 MB / 1.088 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.9993/1.321, allocations: 194 MB / 1.277 GB, free: 3.695 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0123/1.334, allocations: 6.945 MB / 1.284 GB, free: 3.543 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00244/1.336, allocations: 45.44 kB / 1.284 GB, free: 3.543 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002284/1.339, allocations: 0.7032 MB / 1.285 GB, free: 3.535 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.008399/1.347, allocations: 2.444 MB / 1.287 GB, free: 3.449 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004844/1.352, allocations: 1.434 MB / 1.289 GB, free: 3.41 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.006213/1.358, allocations: 3.001 MB / 1.292 GB, free: 3.395 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002348/1.361, allocations: 0.8895 MB / 1.292 GB, free: 3.312 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004046/1.365, allocations: 1.158 MB / 1.294 GB, free: 3.309 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/1.367, allocations: 0.8039 MB / 1.294 GB, free: 3.297 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000716/1.368, allocations: 101 kB / 1.294 GB, free: 3.297 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006806/1.375, allocations: 2.073 MB / 1.297 GB, free: 3.273 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001186/1.376, allocations: 363.2 kB / 1.297 GB, free: 3.27 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002268/1.378, allocations: 0.5857 MB / 1.297 GB, free: 3.27 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.008285/1.386, allocations: 2.394 MB / 1.3 GB, free: 3.062 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/1.386, allocations: 3.312 kB / 1.3 GB, free: 3.062 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.635e-06/1.386, allocations: 1 kB / 1.3 GB, free: 3.062 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001063/1.387, allocations: 1.406 kB / 1.3 GB, free: 3.062 MB / 1.014 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.00591/1.393, allocations: 1.622 MB / 1.301 GB, free: 2.191 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/1.393, allocations: 10.47 kB / 1.301 GB, free: 2.191 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003436/1.396, allocations: 0.5332 MB / 1.302 GB, free: 2.129 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002957/1.399, allocations: 1.047 MB / 1.303 GB, free: 1.785 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-05/1.399, allocations: 51.78 kB / 1.303 GB, free: 1.785 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002749/1.399, allocations: 67.25 kB / 1.303 GB, free: 1.785 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002852/1.402, allocations: 1.103 MB / 1.304 GB, free: 1.672 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/1.402, allocations: 4.062 kB / 1.304 GB, free: 1.672 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/1.402, allocations: 36.23 kB / 1.304 GB, free: 1.668 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-05/1.403, allocations: 36.31 kB / 1.304 GB, free: 1.668 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/1.406, allocations: 1.161 MB / 1.305 GB, free: 1.664 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.006934/1.413, allocations: 3.151 MB / 1.308 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/1.415, allocations: 0.6899 MB / 1.309 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00086/1.416, allocations: 423 kB / 1.309 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009809/1.417, allocations: 1.023 MB / 1.31 GB, free: 15.58 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/1.418, allocations: 0.5184 MB / 1.311 GB, free: 15.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=57): time 4.909e-06/1.418, allocations: 1 kB / 1.311 GB, free: 15.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=57): time 0.003423/1.421, allocations: 1.226 MB / 1.312 GB, free: 15.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/1.421, allocations: 140 kB / 1.312 GB, free: 15.17 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002542/1.424, allocations: 1.175 MB / 1.313 GB, free: 15.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001701/1.424, allocations: 38.17 kB / 1.313 GB, free: 14.99 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000386/1.424, allocations: 435.8 kB / 1.314 GB, free: 14.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002241/1.425, allocations: 190.6 kB / 1.314 GB, free: 14.74 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003867/1.425, allocations: 146.4 kB / 1.314 GB, free: 14.72 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000129/1.425, allocations: 332.5 kB / 1.315 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/1.426, allocations: 443.1 kB / 1.315 GB, free: 14.42 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/1.428, allocations: 0.5927 MB / 1.316 GB, free: 14.29 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/1.43, allocations: 0.9263 MB / 1.316 GB, free: 14.11 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/1.43, allocations: 5.312 kB / 1.316 GB, free: 14.11 MB / 1.029 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003759/1.434, allocations: 1.207 MB / 1.318 GB, free: 13.96 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.93e-05/1.434, allocations: 41.98 kB / 1.318 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/1.434, allocations: 3.562 kB / 1.318 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.819e-05/1.434, allocations: 6.781 kB / 1.318 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009221/1.435, allocations: 187.5 kB / 1.318 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/1.435, allocations: 9.5 kB / 1.318 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/1.437, allocations: 243.7 kB / 1.318 GB, free: 13.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/1.437, allocations: 37 kB / 1.318 GB, free: 13.86 MB / 1.029 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.0007959/1.438, allocations: 330.5 kB / 1.318 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005121/1.438, allocations: 115.7 kB / 1.319 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00245/1.441, allocations: 0.9922 MB / 1.32 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/1.441, allocations: 13.48 kB / 1.32 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/1.441, allocations: 1 kB / 1.32 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/1.441, allocations: 4.609 kB / 1.32 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006762/1.447, allocations: 3.15 MB / 1.323 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.233e-05/1.448, allocations: 11.09 kB / 1.323 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006447/1.448, allocations: 115.9 kB / 1.323 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-05/1.448, allocations: 10 kB / 1.323 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.419e-05/1.448, allocations: 29.08 kB / 1.323 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-05/1.448, allocations: 16.38 kB / 1.323 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/1.448, allocations: 16.16 kB / 1.323 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/1.451, allocations: 1.339 MB / 1.324 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009159/1.452, allocations: 330.5 kB / 1.324 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004625/1.452, allocations: 26.7 kB / 1.324 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/1.454, allocations: 99.8 kB / 1.325 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/1.454, allocations: 65.14 kB / 1.325 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/1.454, allocations: 39.52 kB / 1.325 GB, free: 11.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002049/1.457, allocations: 0.848 MB / 1.325 GB, free: 11.88 MB / 1.029 GB Notification: Performance of sort global known variables: time 4.31e-07/1.457, allocations: 0 / 1.325 GB, free: 11.88 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001926/1.458, allocations: 305.9 kB / 1.326 GB, free: 11.85 MB / 1.029 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.0011/1.46, allocations: 355.4 kB / 1.326 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002671/1.462, allocations: 1.016 MB / 1.327 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/1.462, allocations: 0 / 1.327 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0009807/1.463, allocations: 0.5172 MB / 1.328 GB, free: 11.54 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/1.467, allocations: 0.5554 MB / 1.328 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/1.471, allocations: 2.022 MB / 1.33 GB, free: 10.55 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009544/1.472, allocations: 1.07 MB / 1.331 GB, free: 9.836 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001321/1.473, allocations: 265.9 kB / 1.331 GB, free: 9.781 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/1.474, allocations: 79.97 kB / 1.331 GB, free: 9.777 MB / 1.029 GB Notification: Performance of SimCode: time 1.142e-06/1.474, allocations: 4 kB / 1.332 GB, free: 9.773 MB / 1.029 GB Notification: Performance of Templates: time 0.03998/1.514, allocations: 22.17 MB / 1.353 GB, free: 3.125 MB / 1.029 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