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.001339/0.001339, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001536/0.001536, allocations: 177.3 kB / 15.94 MB, free: 228 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.422/1.422, allocations: 223.2 MB / 239.9 MB, free: 5.426 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.443/2.443, allocations: 390.3 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 12 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7599/0.7603, allocations: 142.3 MB / 0.9535 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02457/0.7849, allocations: 24.56 MB / 0.9775 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01044/0.7954, allocations: 5.957 MB / 0.9833 GB, free: 16 kB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.797, allocations: 40.08 kB / 0.9833 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.7989, allocations: 0.6389 MB / 0.984 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.003905/0.8028, allocations: 1.206 MB / 0.9852 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00379/0.8066, allocations: 1.307 MB / 0.9864 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.003191/0.8098, allocations: 1.571 MB / 0.988 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.8111, allocations: 0.6729 MB / 0.9886 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.8131, allocations: 0.8369 MB / 0.9894 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009283/0.814, allocations: 0.5679 MB / 0.99 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.8142, allocations: 36 kB / 0.99 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001725/0.8159, allocations: 0.5305 MB / 0.9905 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002644/0.8162, allocations: 227.1 kB / 0.9908 GB, free: 9.938 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002963/0.8165, allocations: 237 kB / 0.991 GB, free: 9.699 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.8179, allocations: 1.015 MB / 0.992 GB, free: 8.684 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.8179, allocations: 0 / 0.992 GB, free: 8.684 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8179, allocations: 0 / 0.992 GB, free: 8.684 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.8179, allocations: 0 / 0.992 GB, free: 8.684 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.002492/0.8204, allocations: 1.372 MB / 0.9933 GB, free: 7.254 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.8205, allocations: 8.031 kB / 0.9933 GB, free: 7.246 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003503/0.824, allocations: 0.6422 MB / 0.994 GB, free: 6.602 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.8254, allocations: 0.7585 MB / 0.9947 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.808e-05/0.8255, allocations: 57.94 kB / 0.9947 GB, free: 5.73 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.8256, allocations: 75.98 kB / 0.9948 GB, free: 5.656 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002688/0.8283, allocations: 1.099 MB / 0.9959 GB, free: 4.477 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.8284, allocations: 7.938 kB / 0.9959 GB, free: 4.469 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.398e-05/0.8284, allocations: 28 kB / 0.9959 GB, free: 4.441 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/0.8285, allocations: 16 kB / 0.9959 GB, free: 4.426 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003313/0.8318, allocations: 1.027 MB / 0.9969 GB, free: 3.398 MB / 0.7481 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.006246/0.8381, allocations: 4.963 MB / 1.002 GB, free: 14.15 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.8409, allocations: 0.9503 MB / 1.003 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001356/0.8423, allocations: 1.6 MB / 1.004 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001656/0.844, allocations: 0.5845 MB / 1.005 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=61): time 3.146e-06/0.844, allocations: 0 / 1.005 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of matching and sorting (n=61): time 0.004737/0.8487, allocations: 1.516 MB / 1.006 GB, free: 9.121 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.8488, allocations: 59.97 kB / 1.006 GB, free: 9.051 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.8501, allocations: 1.101 MB / 1.007 GB, free: 7.938 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 7.845e-05/0.8502, allocations: 49.64 kB / 1.008 GB, free: 7.883 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000435/0.8507, allocations: 0.5434 MB / 1.008 GB, free: 7.332 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.8509, allocations: 213 kB / 1.008 GB, free: 7.121 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.8509, allocations: 16 kB / 1.008 GB, free: 7.105 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.8511, allocations: 334 kB / 1.009 GB, free: 6.773 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.8525, allocations: 461.6 kB / 1.009 GB, free: 6.324 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.8542, allocations: 0.7203 MB / 1.01 GB, free: 5.492 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.8556, allocations: 497.8 kB / 1.01 GB, free: 5.004 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.8557, allocations: 4 kB / 1.01 GB, free: 5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003492/0.8592, allocations: 1.29 MB / 1.011 GB, free: 3.699 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.8592, allocations: 11.95 kB / 1.011 GB, free: 3.688 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.8592, allocations: 8 kB / 1.011 GB, free: 3.68 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/0.8593, allocations: 16 kB / 1.011 GB, free: 3.664 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.8605, allocations: 275.6 kB / 1.012 GB, free: 3.395 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.824e-05/0.8605, allocations: 15.94 kB / 1.012 GB, free: 3.379 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.8618, allocations: 206.9 kB / 1.012 GB, free: 3.176 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-05/0.8619, allocations: 47.97 kB / 1.012 GB, free: 3.129 MB / 0.7637 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.0004613/0.8623, allocations: 295.8 kB / 1.012 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.8625, allocations: 118.5 kB / 1.012 GB, free: 2.715 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003748/0.8663, allocations: 1.379 MB / 1.014 GB, free: 1.324 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.8663, allocations: 8 kB / 1.014 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.8663, allocations: 4 kB / 1.014 GB, free: 1.312 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.8663, allocations: 3.984 kB / 1.014 GB, free: 1.309 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/0.8713, allocations: 2.393 MB / 1.016 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.8713, allocations: 0 / 1.016 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.8724, allocations: 199.9 kB / 1.016 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.8724, allocations: 4 kB / 1.016 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.772e-05/0.8725, allocations: 32.08 kB / 1.016 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.8725, allocations: 15.86 kB / 1.016 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.8725, allocations: 0 / 1.016 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005113/0.8776, allocations: 2.077 MB / 1.018 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005235/0.8781, allocations: 287.3 kB / 1.019 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001544/0.8783, allocations: 19.98 kB / 1.019 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009839/0.8793, allocations: 127.8 kB / 1.019 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.8794, allocations: 64.38 kB / 1.019 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.512e-05/0.8795, allocations: 31.97 kB / 1.019 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009491/0.8805, allocations: 0.7521 MB / 1.02 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8805, allocations: 0 / 1.02 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001113/0.8816, allocations: 343.6 kB / 1.02 GB, free: 10.82 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.001407/0.883, allocations: 0.645 MB / 1.021 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003441/0.8865, allocations: 1.122 MB / 1.022 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/0.8865, allocations: 4.188 kB / 1.022 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.8881, allocations: 0.5852 MB / 1.022 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.8902, allocations: 420.9 kB / 1.023 GB, free: 8.215 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004836/0.895, allocations: 2.704 MB / 1.025 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/0.8958, allocations: 1.125 MB / 1.026 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.001175/0.8969, allocations: 248.6 kB / 1.027 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.8972, allocations: 111.3 kB / 1.027 GB, free: 3.961 MB / 0.7794 GB Notification: Performance of SimCode: time 2.705e-06/0.8973, allocations: 4 kB / 1.027 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of Templates: time 0.03047/0.9277, allocations: 18.41 MB / 1.045 GB, free: 1.809 MB / 0.795 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","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches