Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_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_9_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_9_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.001091/0.001091, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.001217/0.001217, allocations: 168.7 kB / 15.95 MB, free: 204 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.471/1.471, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.467/2.467, allocations: 390.9 MB / 0.666 GB, free: 2.523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003607, allocations: 8 kB / 0.8153 GB, free: 13.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8581/0.8585, allocations: 142.4 MB / 0.9544 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02803/0.8866, allocations: 26.92 MB / 0.9807 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01061/0.8972, allocations: 6.479 MB / 0.987 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.8988, allocations: 48.28 kB / 0.9871 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.9003, allocations: 0.5504 MB / 0.9876 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.003436/0.9037, allocations: 1.189 MB / 0.9888 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.9065, allocations: 0.9343 MB / 0.9897 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.003583/0.9101, allocations: 2.776 MB / 0.9924 GB, free: 8.562 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009887/0.9111, allocations: 0.6426 MB / 0.993 GB, free: 7.906 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.9127, allocations: 0.8906 MB / 0.9939 GB, free: 7.012 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009091/0.9137, allocations: 0.7469 MB / 0.9946 GB, free: 6.262 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9e-05/0.9138, allocations: 36 kB / 0.9947 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001578/0.9154, allocations: 0.4911 MB / 0.9952 GB, free: 5.734 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.9156, allocations: 239 kB / 0.9954 GB, free: 5.5 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.9158, allocations: 233 kB / 0.9956 GB, free: 5.266 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.9169, allocations: 1.031 MB / 0.9966 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.917, allocations: 0 / 0.9966 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.673e-06/0.917, allocations: 0 / 0.9966 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.917, allocations: 0 / 0.9966 GB, free: 4.234 MB / 0.7481 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.002222/0.9192, allocations: 1.372 MB / 0.998 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.9193, allocations: 8.562 kB / 0.998 GB, free: 2.797 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002985/0.9223, allocations: 0.6344 MB / 0.9986 GB, free: 2.16 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.9234, allocations: 0.7623 MB / 0.9993 GB, free: 1.344 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.736e-05/0.9235, allocations: 65.97 kB / 0.9994 GB, free: 1.277 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.9236, allocations: 72 kB / 0.9995 GB, free: 1.207 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.9258, allocations: 1.105 MB / 1.001 GB, free: 24 kB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.9259, allocations: 4 kB / 1.001 GB, free: 20 kB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.926, allocations: 28.08 kB / 1.001 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.926, allocations: 16 kB / 1.001 GB, free: 15.97 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002721/0.9287, allocations: 1.027 MB / 1.002 GB, free: 14.95 MB / 0.7637 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.005468/0.9342, allocations: 4.955 MB / 1.006 GB, free: 9.707 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002655/0.9369, allocations: 0.9581 MB / 1.007 GB, free: 8.738 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.9381, allocations: 0.4921 MB / 1.008 GB, free: 8.246 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001395/0.9396, allocations: 1.599 MB / 1.009 GB, free: 6.297 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001471/0.941, allocations: 0.5846 MB / 1.01 GB, free: 5.699 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=61): time 2.795e-06/0.9411, allocations: 0 / 1.01 GB, free: 5.699 MB / 0.7637 GB Notification: Performance of matching and sorting (n=61): time 0.004269/0.9453, allocations: 1.512 MB / 1.011 GB, free: 4.176 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.9454, allocations: 59.97 kB / 1.012 GB, free: 4.105 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/0.9468, allocations: 1.108 MB / 1.013 GB, free: 2.984 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 6.816e-05/0.9469, allocations: 49.64 kB / 1.013 GB, free: 2.93 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/0.9473, allocations: 0.5473 MB / 1.013 GB, free: 2.375 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/0.9475, allocations: 205.1 kB / 1.013 GB, free: 2.172 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.844e-05/0.9476, allocations: 16 kB / 1.013 GB, free: 2.156 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.9477, allocations: 334 kB / 1.014 GB, free: 1.824 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.949, allocations: 465.6 kB / 1.014 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.9505, allocations: 0.7242 MB / 1.015 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.9518, allocations: 0.49 MB / 1.015 GB, free: 48 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.9518, allocations: 4 kB / 1.015 GB, free: 44 kB / 0.7637 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003144/0.955, allocations: 1.286 MB / 1.017 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.955, allocations: 11.95 kB / 1.017 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.955, allocations: 12.06 kB / 1.017 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.955, allocations: 12 kB / 1.017 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.9561, allocations: 279.5 kB / 1.017 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.425e-05/0.9562, allocations: 12 kB / 1.017 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.9573, allocations: 206.9 kB / 1.017 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.061e-05/0.9574, allocations: 43.98 kB / 1.017 GB, free: 14.18 MB / 0.7794 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.00042/0.9578, allocations: 303.7 kB / 1.017 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.958, allocations: 118.5 kB / 1.018 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003333/0.9613, allocations: 1.382 MB / 1.019 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.805e-05/0.9614, allocations: 12 kB / 1.019 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.9614, allocations: 0 / 1.019 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.9614, allocations: 7.984 kB / 1.019 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004441/0.9658, allocations: 2.393 MB / 1.021 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.9659, allocations: 0 / 1.021 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009162/0.9668, allocations: 195.9 kB / 1.021 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.9668, allocations: 8 kB / 1.021 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.283e-05/0.9669, allocations: 27.97 kB / 1.021 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.9669, allocations: 4 kB / 1.021 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.9669, allocations: 0 / 1.021 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004731/0.9716, allocations: 1.997 MB / 1.023 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005009/0.9721, allocations: 291.2 kB / 1.024 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.9723, allocations: 20 kB / 1.024 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009092/0.9732, allocations: 127.8 kB / 1.024 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.9733, allocations: 56.44 kB / 1.024 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-05/0.9734, allocations: 39.91 kB / 1.024 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001058/0.9745, allocations: 0.7521 MB / 1.025 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9745, allocations: 0 / 1.025 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001101/0.9756, allocations: 335.6 kB / 1.025 GB, free: 5.98 MB / 0.7794 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.001611/0.9772, allocations: 0.6617 MB / 1.026 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003162/0.9804, allocations: 1.13 MB / 1.027 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.9804, allocations: 0 / 1.027 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.982, allocations: 0.5892 MB / 1.027 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.9839, allocations: 418.5 kB / 1.028 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005161/0.9891, allocations: 2.704 MB / 1.03 GB, free: 0.6016 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006655/0.9898, allocations: 1.106 MB / 1.031 GB, free: 15.47 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001016/0.9908, allocations: 244.7 kB / 1.032 GB, free: 15.23 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.9911, allocations: 107.4 kB / 1.032 GB, free: 15.12 MB / 0.795 GB Notification: Performance of SimCode: time 9.12e-07/0.9911, allocations: 0 / 1.032 GB, free: 15.12 MB / 0.795 GB Notification: Performance of Templates: time 0.034/1.025, allocations: 18.44 MB / 1.05 GB, free: 12.95 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches