Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.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.PrescribedOutlet,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|heaCooUnl.TSet|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|setHeaHigPow.y.2.|heaHigPow.port_b.Xi_outflow.1.|setCooLimPow.y.2.|cooLimPow.port_b.Xi_outflow.1.|setHeaCooUnl.y.2.|heaCooUnl.port_b.Xi_outflow.1.|steSta.port_b.Xi_outflow.1.|heaCooUnl.X_wSet|heaCooUnl.sta_b.X.1.|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet,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|heaCooUnl.TSet|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|setHeaHigPow.y.2.|heaHigPow.port_b.Xi_outflow.1.|setCooLimPow.y.2.|cooLimPow.port_b.Xi_outflow.1.|setHeaCooUnl.y.2.|heaCooUnl.port_b.Xi_outflow.1.|steSta.port_b.Xi_outflow.1.|heaCooUnl.X_wSet|heaCooUnl.sta_b.X.1.|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001191, allocations: 108.2 kB / 16.41 MB, free: 6.504 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.001307/0.001307, allocations: 187 kB / 17.34 MB, free: 5.742 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.239/2.239, allocations: 390.2 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 59.89 kB / 0.9516 GB, free: 7.594 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9508/0.9524, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet): time 0.2546/1.207, allocations: 193.8 MB / 1.278 GB, free: 11.79 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01012/1.217, allocations: 5.156 MB / 1.283 GB, free: 6.625 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/1.219, allocations: 47.69 kB / 1.283 GB, free: 6.578 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002515/1.222, allocations: 0.812 MB / 1.284 GB, free: 5.762 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.007474/1.229, allocations: 2.602 MB / 1.286 GB, free: 3.148 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003299/1.233, allocations: 1.117 MB / 1.287 GB, free: 2.039 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004536/1.237, allocations: 2.679 MB / 1.29 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001977/1.239, allocations: 0.9502 MB / 1.291 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002697/1.242, allocations: 1.125 MB / 1.292 GB, free: 13.26 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001964/1.244, allocations: 0.9924 MB / 1.293 GB, free: 12.27 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0004415/1.244, allocations: 88 kB / 1.293 GB, free: 12.18 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003989/1.248, allocations: 1.796 MB / 1.295 GB, free: 10.38 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0007378/1.249, allocations: 450.6 kB / 1.295 GB, free: 9.938 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001546/1.251, allocations: 0.6604 MB / 1.296 GB, free: 9.273 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.005024/1.256, allocations: 2.2 MB / 1.298 GB, free: 7.066 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 1.071e-05/1.256, allocations: 0 / 1.298 GB, free: 7.066 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.974e-06/1.256, allocations: 11.88 kB / 1.298 GB, free: 7.055 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.361e-05/1.256, allocations: 0 / 1.298 GB, free: 7.055 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.006012/1.262, allocations: 1.953 MB / 1.3 GB, free: 5.043 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/1.262, allocations: 16.03 kB / 1.3 GB, free: 5.027 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005752/1.268, allocations: 0.8916 MB / 1.301 GB, free: 4.133 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002271/1.27, allocations: 0.9683 MB / 1.302 GB, free: 3.109 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.193e-05/1.27, allocations: 66 kB / 1.302 GB, free: 3.043 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003177/1.27, allocations: 99.88 kB / 1.302 GB, free: 2.945 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004247/1.275, allocations: 1.579 MB / 1.304 GB, free: 1.336 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/1.275, allocations: 4 kB / 1.304 GB, free: 1.332 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/1.275, allocations: 43.92 kB / 1.304 GB, free: 1.289 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-05/1.275, allocations: 45.98 kB / 1.304 GB, free: 1.242 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005377/1.28, allocations: 1.85 MB / 1.305 GB, free: 15.39 MB / 1.045 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.008244/1.289, allocations: 4.715 MB / 1.31 GB, free: 10.44 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004476/1.293, allocations: 1.568 MB / 1.312 GB, free: 8.859 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002279/1.295, allocations: 0.8469 MB / 1.312 GB, free: 8.008 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001354/1.297, allocations: 0.9491 MB / 1.313 GB, free: 6.875 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002633/1.299, allocations: 0.9144 MB / 1.314 GB, free: 5.949 MB / 1.045 GB Notification: Performance of pre-optimization done (n=95): time 3.477e-06/1.3, allocations: 0 / 1.314 GB, free: 5.949 MB / 1.045 GB Notification: Performance of matching and sorting (n=95): time 0.007891/1.307, allocations: 2.454 MB / 1.317 GB, free: 3.484 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.154e-05/1.308, allocations: 64.34 kB / 1.317 GB, free: 3.41 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/1.309, allocations: 1.197 MB / 1.318 GB, free: 2.203 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001455/1.309, allocations: 41.7 kB / 1.318 GB, free: 2.156 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000478/1.31, allocations: 0.5564 MB / 1.318 GB, free: 1.594 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003524/1.31, allocations: 323.4 kB / 1.319 GB, free: 1.273 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003606/1.311, allocations: 182.6 kB / 1.319 GB, free: 1.09 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001519/1.311, allocations: 345.9 kB / 1.319 GB, free: 0.7461 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/1.313, allocations: 0.6967 MB / 1.32 GB, free: 48 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002408/1.315, allocations: 0.9085 MB / 1.321 GB, free: 15.07 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004487/1.32, allocations: 1.558 MB / 1.322 GB, free: 13.46 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/1.32, allocations: 3.938 kB / 1.322 GB, free: 13.46 MB / 1.061 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.005286/1.325, allocations: 1.776 MB / 1.324 GB, free: 11.67 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/1.325, allocations: 8 kB / 1.324 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/1.325, allocations: 7.984 kB / 1.324 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/1.325, allocations: 8 kB / 1.324 GB, free: 11.65 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/1.327, allocations: 343.6 kB / 1.324 GB, free: 11.31 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.919e-05/1.327, allocations: 11.94 kB / 1.324 GB, free: 11.3 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/1.329, allocations: 238.7 kB / 1.325 GB, free: 11.07 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/1.329, allocations: 47.97 kB / 1.325 GB, free: 11.02 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * 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.0006951/1.33, allocations: 335.7 kB / 1.325 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003956/1.33, allocations: 134.3 kB / 1.325 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005309/1.335, allocations: 1.799 MB / 1.327 GB, free: 8.734 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/1.336, allocations: 16 kB / 1.327 GB, free: 8.719 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/1.336, allocations: 3.984 kB / 1.327 GB, free: 8.715 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/1.336, allocations: 3.984 kB / 1.327 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00791/1.343, allocations: 3.344 MB / 1.33 GB, free: 5.266 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/1.344, allocations: 4 kB / 1.33 GB, free: 5.262 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/1.345, allocations: 287.8 kB / 1.33 GB, free: 4.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-05/1.345, allocations: 8 kB / 1.33 GB, free: 4.973 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/1.345, allocations: 35.91 kB / 1.331 GB, free: 4.938 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-05/1.345, allocations: 11.98 kB / 1.331 GB, free: 4.926 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.345, allocations: 4 kB / 1.331 GB, free: 4.922 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007655/1.353, allocations: 2.851 MB / 1.333 GB, free: 2.008 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007389/1.354, allocations: 319.2 kB / 1.334 GB, free: 1.676 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003472/1.354, allocations: 24 kB / 1.334 GB, free: 1.652 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/1.356, allocations: 163.8 kB / 1.334 GB, free: 1.492 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/1.356, allocations: 68.45 kB / 1.334 GB, free: 1.426 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.855e-05/1.356, allocations: 39.97 kB / 1.334 GB, free: 1.387 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.00126/1.357, allocations: 0.8275 MB / 1.335 GB, free: 0.5547 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.5e-07/1.357, allocations: 0 / 1.335 GB, free: 0.5547 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001293/1.359, allocations: 347.6 kB / 1.335 GB, free: 220 kB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (heaHigPow.T,heaHigPow.Xi,cooLimPow.T,cooLimPow.Xi,heaCooUnl.T,heaCooUnl.Xi) * 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 (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001532/1.36, allocations: 0.5358 MB / 1.336 GB, free: 15.84 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.005093/1.365, allocations: 1.634 MB / 1.337 GB, free: 14.21 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.365, allocations: 0 / 1.337 GB, free: 14.21 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.002511/1.368, allocations: 0.8438 MB / 1.338 GB, free: 13.36 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/1.371, allocations: 0.6114 MB / 1.339 GB, free: 12.77 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006954/1.378, allocations: 3.035 MB / 1.342 GB, free: 9.648 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009522/1.379, allocations: 1.179 MB / 1.343 GB, free: 8.438 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000776/1.38, allocations: 135.3 kB / 1.343 GB, free: 8.305 MB / 1.076 GB Notification: Performance of SimCode: time 1.363e-06/1.38, allocations: 0 / 1.343 GB, free: 8.305 MB / 1.076 GB Notification: Performance of Templates: time 0.03572/1.416, allocations: 21.7 MB / 1.364 GB, free: 2.734 MB / 1.092 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches