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.001556/0.001556, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001525/0.001525, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.38/1.38, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.727/2.727, allocations: 482.4 MB / 0.7553 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 73.09 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7793/0.7812, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2344/1.016, allocations: 194 MB / 1.272 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01173/1.027, allocations: 6.964 MB / 1.279 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/1.029, allocations: 43.69 kB / 1.279 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001874/1.031, allocations: 0.683 MB / 1.28 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006518/1.038, allocations: 2.345 MB / 1.282 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003513/1.041, allocations: 1.404 MB / 1.284 GB, free: 0.8281 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004403/1.046, allocations: 2.978 MB / 1.286 GB, free: 13.84 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/1.047, allocations: 0.8879 MB / 1.287 GB, free: 12.94 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004835/1.052, allocations: 1.543 MB / 1.289 GB, free: 11.39 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/1.054, allocations: 0.7826 MB / 1.29 GB, free: 10.61 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002044/1.054, allocations: 104 kB / 1.29 GB, free: 10.51 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00428/1.058, allocations: 2.031 MB / 1.292 GB, free: 8.477 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.000475/1.059, allocations: 366.8 kB / 1.292 GB, free: 8.117 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0008008/1.06, allocations: 0.5753 MB / 1.293 GB, free: 7.539 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004251/1.064, allocations: 2.369 MB / 1.295 GB, free: 5.164 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.064, allocations: 0 / 1.295 GB, free: 5.164 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.857e-06/1.064, allocations: 0 / 1.295 GB, free: 5.164 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.739e-05/1.064, allocations: 3.938 kB / 1.295 GB, free: 5.16 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.003597/1.068, allocations: 1.629 MB / 1.297 GB, free: 3.473 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/1.068, allocations: 8.031 kB / 1.297 GB, free: 3.465 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003031/1.071, allocations: 0.5409 MB / 1.297 GB, free: 2.922 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/1.073, allocations: 0.9907 MB / 1.298 GB, free: 1.887 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001232/1.074, allocations: 277.1 kB / 1.298 GB, free: 1.617 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/1.074, allocations: 68 kB / 1.298 GB, free: 1.551 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002651/1.077, allocations: 1.128 MB / 1.299 GB, free: 400 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/1.077, allocations: 4 kB / 1.299 GB, free: 396 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/1.077, allocations: 24 kB / 1.299 GB, free: 372 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.677e-05/1.077, allocations: 33.25 kB / 1.3 GB, free: 340 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003595/1.081, allocations: 1.2 MB / 1.301 GB, free: 15.13 MB / 1.029 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.006358/1.087, allocations: 3.213 MB / 1.304 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/1.089, allocations: 0.6802 MB / 1.304 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008902/1.09, allocations: 426.1 kB / 1.305 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001075/1.091, allocations: 1.025 MB / 1.306 GB, free: 9.488 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/1.092, allocations: 0.5104 MB / 1.306 GB, free: 8.953 MB / 1.029 GB Notification: Performance of pre-optimization done (n=57): time 2.695e-06/1.092, allocations: 0 / 1.306 GB, free: 8.953 MB / 1.029 GB Notification: Performance of matching and sorting (n=57): time 0.003257/1.095, allocations: 1.221 MB / 1.308 GB, free: 7.723 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.742e-05/1.096, allocations: 148.8 kB / 1.308 GB, free: 7.547 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002175/1.098, allocations: 1.2 MB / 1.309 GB, free: 6.332 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 9.163e-05/1.098, allocations: 37.7 kB / 1.309 GB, free: 6.289 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004068/1.098, allocations: 437.5 kB / 1.309 GB, free: 5.859 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/1.099, allocations: 193.2 kB / 1.31 GB, free: 5.668 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003379/1.099, allocations: 146.1 kB / 1.31 GB, free: 5.52 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001577/1.099, allocations: 330 kB / 1.31 GB, free: 5.191 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/1.1, allocations: 456.9 kB / 1.31 GB, free: 4.742 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00165/1.102, allocations: 0.6133 MB / 1.311 GB, free: 4.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002323/1.104, allocations: 0.9418 MB / 1.312 GB, free: 3.078 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/1.104, allocations: 0 / 1.312 GB, free: 3.078 MB / 1.029 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003555/1.108, allocations: 1.236 MB / 1.313 GB, free: 1.824 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.044e-05/1.108, allocations: 41.69 kB / 1.313 GB, free: 1.777 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/1.108, allocations: 4 kB / 1.313 GB, free: 1.773 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/1.108, allocations: 8 kB / 1.313 GB, free: 1.766 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000985/1.109, allocations: 199.9 kB / 1.313 GB, free: 1.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/1.109, allocations: 7.984 kB / 1.313 GB, free: 1.562 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/1.111, allocations: 270.8 kB / 1.314 GB, free: 1.297 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.848e-05/1.111, allocations: 35.97 kB / 1.314 GB, free: 1.262 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.000571/1.111, allocations: 329.5 kB / 1.314 GB, free: 0.9258 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/1.112, allocations: 118.6 kB / 1.314 GB, free: 0.8086 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/1.114, allocations: 0.9884 MB / 1.315 GB, free: 15.81 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/1.114, allocations: 11.92 kB / 1.315 GB, free: 15.8 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/1.114, allocations: 8 kB / 1.315 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/1.114, allocations: 0 / 1.315 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005071/1.119, allocations: 3.161 MB / 1.318 GB, free: 12.48 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/1.119, allocations: 11.94 kB / 1.318 GB, free: 12.46 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006066/1.12, allocations: 124.1 kB / 1.318 GB, free: 12.34 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.317e-05/1.12, allocations: 8 kB / 1.318 GB, free: 12.34 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.816e-05/1.12, allocations: 23.98 kB / 1.318 GB, free: 12.31 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.219e-05/1.12, allocations: 11.94 kB / 1.318 GB, free: 12.3 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/1.12, allocations: 16.45 kB / 1.318 GB, free: 12.29 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/1.122, allocations: 1.353 MB / 1.32 GB, free: 10.81 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005675/1.123, allocations: 331.4 kB / 1.32 GB, free: 10.46 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/1.123, allocations: 23.98 kB / 1.32 GB, free: 10.44 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/1.124, allocations: 111.9 kB / 1.32 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/1.124, allocations: 63.75 kB / 1.32 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.829e-05/1.124, allocations: 39.97 kB / 1.32 GB, free: 10.23 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001683/1.126, allocations: 0.8716 MB / 1.321 GB, free: 9.352 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.014e-06/1.126, allocations: 0 / 1.321 GB, free: 9.352 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001085/1.127, allocations: 311.7 kB / 1.321 GB, free: 9.047 MB / 1.045 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.000749/1.128, allocations: 330.4 kB / 1.322 GB, free: 8.727 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002756/1.131, allocations: 1.054 MB / 1.323 GB, free: 7.664 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/1.131, allocations: 4 kB / 1.323 GB, free: 7.66 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001018/1.132, allocations: 0.5087 MB / 1.323 GB, free: 7.141 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/1.135, allocations: 0.554 MB / 1.324 GB, free: 6.609 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003872/1.138, allocations: 2.096 MB / 1.326 GB, free: 4.375 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007645/1.139, allocations: 1.065 MB / 1.327 GB, free: 3.281 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/1.14, allocations: 83.41 kB / 1.327 GB, free: 3.199 MB / 1.045 GB Notification: Performance of SimCode: time 4.91e-07/1.14, allocations: 0 / 1.327 GB, free: 3.199 MB / 1.045 GB Notification: Performance of Templates: time 0.02884/1.168, allocations: 18.73 MB / 1.345 GB, free: 0.5938 MB / 1.061 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches