Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.sta_a.T|heaHigPow.sta_b.T|cooLimPow.sta_a.T|cooLimPow.sta_b.T|heaCooUnl.sta_a.T|heaCooUnl.sta_b.T|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.sta_a.T|heaHigPow.sta_b.T|cooLimPow.sta_a.T|cooLimPow.sta_b.T|heaCooUnl.sta_a.T|heaCooUnl.sta_b.T|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001742/0.001743, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.002358/0.002358, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.864/2.864, allocations: 437.7 MB / 0.7117 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 8 kB / 0.8722 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7737/0.7741, allocations: 153.8 MB / 1.022 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02793/0.8021, allocations: 26.93 MB / 1.049 GB, free: 5.055 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01008/0.8122, allocations: 6.482 MB / 1.055 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.8134, allocations: 43.62 kB / 1.055 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.8149, allocations: 0.5519 MB / 1.056 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.003239/0.8182, allocations: 1.197 MB / 1.057 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002846/0.821, allocations: 0.9392 MB / 1.058 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.004484/0.8255, allocations: 2.757 MB / 1.06 GB, free: 9.059 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001519/0.8271, allocations: 0.6468 MB / 1.061 GB, free: 8.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00212/0.8292, allocations: 0.8945 MB / 1.062 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.8304, allocations: 0.7469 MB / 1.063 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.599e-05/0.8305, allocations: 40 kB / 1.063 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001669/0.8322, allocations: 0.495 MB / 1.063 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002833/0.8325, allocations: 235 kB / 1.063 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.8328, allocations: 233 kB / 1.064 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001242/0.8341, allocations: 1.023 MB / 1.065 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.8341, allocations: 0 / 1.065 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.734e-06/0.8341, allocations: 0 / 1.065 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.469e-05/0.8341, allocations: 0 / 1.065 GB, free: 4.727 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002405/0.8365, allocations: 1.376 MB / 1.066 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.8366, allocations: 8.031 kB / 1.066 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/0.8396, allocations: 0.6344 MB / 1.067 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.8408, allocations: 0.7546 MB / 1.067 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.658e-05/0.8409, allocations: 58 kB / 1.067 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.841, allocations: 83.84 kB / 1.067 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.8434, allocations: 1.103 MB / 1.068 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.8434, allocations: 4 kB / 1.068 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.607e-05/0.8435, allocations: 35.98 kB / 1.069 GB, free: 492 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.8435, allocations: 16 kB / 1.069 GB, free: 476 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002808/0.8464, allocations: 1.02 MB / 1.07 GB, free: 15.44 MB / 0.8262 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.005966/0.8523, allocations: 4.97 MB / 1.074 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.855, allocations: 0.952 MB / 1.075 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.8563, allocations: 0.4946 MB / 1.076 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001371/0.8577, allocations: 1.595 MB / 1.077 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001501/0.8592, allocations: 0.5845 MB / 1.078 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 2.925e-06/0.8592, allocations: 4 kB / 1.078 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.004279/0.8635, allocations: 1.512 MB / 1.079 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.8636, allocations: 59.97 kB / 1.079 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.8649, allocations: 1.112 MB / 1.081 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.252e-05/0.865, allocations: 37.7 kB / 1.081 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004408/0.8654, allocations: 0.5473 MB / 1.081 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.8656, allocations: 205.1 kB / 1.081 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/0.8657, allocations: 19.94 kB / 1.081 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.8658, allocations: 345.9 kB / 1.082 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.8671, allocations: 457.6 kB / 1.082 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.8686, allocations: 0.7242 MB / 1.083 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.8699, allocations: 493.8 kB / 1.083 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.87, allocations: 8 kB / 1.083 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003147/0.8731, allocations: 1.282 MB / 1.085 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.8732, allocations: 13.23 kB / 1.085 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.8732, allocations: 8 kB / 1.085 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.8732, allocations: 12 kB / 1.085 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.8744, allocations: 279.8 kB / 1.085 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.8744, allocations: 16 kB / 1.085 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.8755, allocations: 202.9 kB / 1.085 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.263e-05/0.8756, allocations: 47.97 kB / 1.085 GB, free: 14.67 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004441/0.876, allocations: 299.7 kB / 1.085 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.8762, allocations: 118.5 kB / 1.086 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003457/0.8797, allocations: 1.386 MB / 1.087 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.8797, allocations: 11.98 kB / 1.087 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.8797, allocations: 0 / 1.087 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.8797, allocations: 11.98 kB / 1.087 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.8843, allocations: 2.378 MB / 1.089 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.8843, allocations: 0 / 1.089 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009502/0.8853, allocations: 199.8 kB / 1.089 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.8853, allocations: 7.984 kB / 1.089 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.278e-05/0.8854, allocations: 23.98 kB / 1.089 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.8854, allocations: 11.97 kB / 1.089 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.8854, allocations: 0 / 1.089 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004671/0.8901, allocations: 2.001 MB / 1.091 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004387/0.8905, allocations: 291.2 kB / 1.092 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.8907, allocations: 19.95 kB / 1.092 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008465/0.8915, allocations: 127.9 kB / 1.092 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.8917, allocations: 44.5 kB / 1.092 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.263e-05/0.8917, allocations: 36.06 kB / 1.092 GB, free: 7.574 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0009588/0.8927, allocations: 0.7598 MB / 1.093 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8927, allocations: 0 / 1.093 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001058/0.8938, allocations: 339.6 kB / 1.093 GB, free: 6.477 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001475/0.8953, allocations: 0.6504 MB / 1.094 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003048/0.8983, allocations: 1.122 MB / 1.095 GB, free: 4.867 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.8983, allocations: 0 / 1.095 GB, free: 4.867 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.8998, allocations: 0.5892 MB / 1.095 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/0.9017, allocations: 439 kB / 1.096 GB, free: 3.855 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004812/0.9065, allocations: 2.688 MB / 1.098 GB, free: 1.121 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007501/0.9073, allocations: 1.108 MB / 1.099 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001104/0.9084, allocations: 248.6 kB / 1.1 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.9087, allocations: 107.4 kB / 1.1 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of SimCode: time 9.92e-07/0.9087, allocations: 0 / 1.1 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of Templates: time 0.03382/0.9426, allocations: 18.45 MB / 1.118 GB, free: 13.46 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches