Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008719/0.008719, allocations: 98.06 kB / 15.73 MB, free: 6.496 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.002073/0.002073, allocations: 195.3 kB / 16.67 MB, free: 6.391 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.565/1.565, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002653/0.002653, allocations: 278.1 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.111/1.111, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 100.4 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1736, allocations: 86.97 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.3577/0.5313, allocations: 29.33 MB / 0.7946 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0123/0.5437, allocations: 6.874 MB / 0.8013 GB, free: 9.25 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001769/0.5455, allocations: 45.91 kB / 0.8013 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001895/0.5474, allocations: 0.6895 MB / 0.802 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004365/0.5518, allocations: 1.459 MB / 0.8034 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003447/0.5553, allocations: 1.146 MB / 0.8045 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003639/0.559, allocations: 2.478 MB / 0.807 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001392/0.5604, allocations: 0.7901 MB / 0.8077 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002168/0.5625, allocations: 1.021 MB / 0.8087 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001545/0.5641, allocations: 0.8124 MB / 0.8095 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002284/0.5644, allocations: 66.09 kB / 0.8096 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.5667, allocations: 0.828 MB / 0.8104 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004625/0.5672, allocations: 273.9 kB / 0.8107 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008595/0.5681, allocations: 0.5471 MB / 0.8112 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00352/0.5716, allocations: 1.646 MB / 0.8128 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.5716, allocations: 0 / 0.8128 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5716, allocations: 0 / 0.8128 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.188e-05/0.5717, allocations: 0.9688 kB / 0.8128 GB, free: 3.895 MB / 0.5762 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.003878/0.5756, allocations: 1.609 MB / 0.8144 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.5756, allocations: 8.969 kB / 0.8144 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001588/0.5758, allocations: 116.3 kB / 0.8145 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003804/0.5796, allocations: 0.5929 MB / 0.8151 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.5815, allocations: 0.8894 MB / 0.8159 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.961e-05/0.5816, allocations: 57.3 kB / 0.816 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.5817, allocations: 74.52 kB / 0.8161 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.5845, allocations: 1.096 MB / 0.8171 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.5846, allocations: 10.05 kB / 0.8171 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.194e-05/0.5847, allocations: 28.73 kB / 0.8172 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.5847, allocations: 17.91 kB / 0.8172 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003247/0.588, allocations: 1.007 MB / 0.8182 GB, free: 1.195 MB / 0.5762 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.007106/0.5951, allocations: 4.949 MB / 0.823 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003198/0.5983, allocations: 0.9003 MB / 0.8239 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.5999, allocations: 489.9 kB / 0.8244 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00168/0.6016, allocations: 1.593 MB / 0.8259 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00186/0.6034, allocations: 0.5721 MB / 0.8265 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 5.43e-06/0.6035, allocations: 3.984 kB / 0.8265 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.005075/0.6086, allocations: 1.494 MB / 0.8279 GB, free: 9.688 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.6086, allocations: 58.22 kB / 0.828 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.6102, allocations: 1.11 MB / 0.8291 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.6103, allocations: 43.02 kB / 0.8291 GB, free: 9.012 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005267/0.6109, allocations: 0.5553 MB / 0.8297 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.6111, allocations: 214.7 kB / 0.8299 GB, free: 8.336 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002975/0.6114, allocations: 171.9 kB / 0.83 GB, free: 8.23 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.6116, allocations: 337.5 kB / 0.8303 GB, free: 7.902 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/0.6132, allocations: 448.1 kB / 0.8308 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/0.615, allocations: 0.7137 MB / 0.8315 GB, free: 7.148 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003216/0.6182, allocations: 1.118 MB / 0.8326 GB, free: 6.41 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.6183, allocations: 1.125 kB / 0.8326 GB, free: 6.41 MB / 0.5919 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003891/0.6222, allocations: 1.287 MB / 0.8338 GB, free: 5.773 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.6222, allocations: 10.38 kB / 0.8338 GB, free: 5.773 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.6222, allocations: 9.531 kB / 0.8338 GB, free: 5.773 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.6223, allocations: 12.78 kB / 0.8339 GB, free: 5.773 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.6236, allocations: 269 kB / 0.8341 GB, free: 5.691 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.27e-05/0.6236, allocations: 22.64 kB / 0.8341 GB, free: 5.684 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.625, allocations: 181.5 kB / 0.8343 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.6252, allocations: 49.06 kB / 0.8343 GB, free: 5.566 MB / 0.5919 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 ($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 (100): * Single equations (assignments): 100 * 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.0005772/0.6258, allocations: 291.2 kB / 0.8346 GB, free: 5.355 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.626, allocations: 131.8 kB / 0.8348 GB, free: 5.281 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004073/0.6301, allocations: 1.361 MB / 0.8361 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/0.6302, allocations: 7.875 kB / 0.8361 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.6302, allocations: 0 / 0.8361 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.6302, allocations: 3.984 kB / 0.8361 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005629/0.6358, allocations: 2.368 MB / 0.8384 GB, free: 3.039 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.6359, allocations: 2.656 kB / 0.8384 GB, free: 3.039 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.637, allocations: 186.6 kB / 0.8386 GB, free: 2.977 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-06/0.637, allocations: 4.188 kB / 0.8386 GB, free: 2.977 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.661e-05/0.6371, allocations: 25 kB / 0.8386 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.6371, allocations: 4.562 kB / 0.8386 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.6371, allocations: 6.031 kB / 0.8386 GB, free: 2.957 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005568/0.6427, allocations: 1.977 MB / 0.8406 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006601/0.6434, allocations: 285.8 kB / 0.8408 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000208/0.6436, allocations: 22.2 kB / 0.8408 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.6447, allocations: 110.3 kB / 0.841 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.6449, allocations: 55.72 kB / 0.841 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.645, allocations: 33.19 kB / 0.841 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001136/0.6461, allocations: 0.7679 MB / 0.8418 GB, free: 1.109 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6461, allocations: 3.938 kB / 0.8418 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001511/0.6476, allocations: 343.8 kB / 0.8421 GB, free: 1.023 MB / 0.5919 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 (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.008849/0.6565, allocations: 3.089 MB / 0.8451 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003651/0.6602, allocations: 1.115 MB / 0.8462 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.6602, allocations: 0 / 0.8462 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.6619, allocations: 0.5762 MB / 0.8468 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/0.6643, allocations: 462.8 kB / 0.8472 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02075/0.6851, allocations: 9.618 MB / 0.8566 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008415/0.6859, allocations: 1.111 MB / 0.8577 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001068/0.687, allocations: 240.7 kB / 0.8579 GB, free: 3.883 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007543/0.6878, allocations: 459.2 kB / 0.8584 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of SimCode: time 9.41e-07/0.6878, allocations: 0 / 0.8584 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07103/0.7588, allocations: 30.69 MB / 0.8883 GB, free: 5.18 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.84/16.6, allocations: 23.44 kB / 0.8884 GB, free: 5.156 MB / 0.6387 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)