Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_Buildings_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.004642/0.004642, allocations: 97.39 kB / 15.73 MB, free: 5.988 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.001332/0.001332, allocations: 188.4 kB / 16.67 MB, free: 5.918 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.257/1.257, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.592/2.592, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 67.89 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2563, allocations: 162.3 MB / 1.242 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.5096/0.766, allocations: 54.55 MB / 1.295 GB, free: 12.3 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01389/0.7799, allocations: 10.34 MB / 1.305 GB, free: 4.922 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.7813, allocations: 67.88 kB / 1.305 GB, free: 4.895 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.7831, allocations: 0.9046 MB / 1.306 GB, free: 4.414 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.003827/0.7869, allocations: 1.913 MB / 1.308 GB, free: 3.316 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004475/0.7914, allocations: 2.076 MB / 1.31 GB, free: 2.258 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.004119/0.7955, allocations: 3.747 MB / 1.314 GB, free: 0.5352 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001441/0.797, allocations: 1.172 MB / 1.315 GB, free: 8 kB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003172/0.8002, allocations: 1.866 MB / 1.317 GB, free: 15.14 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00137/0.8016, allocations: 1.192 MB / 1.318 GB, free: 14.64 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001674/0.8017, allocations: 104.3 kB / 1.318 GB, free: 14.64 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002622/0.8044, allocations: 1.286 MB / 1.319 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0003772/0.8048, allocations: 386.2 kB / 1.32 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0008287/0.8056, allocations: 0.8564 MB / 1.32 GB, free: 13.4 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.003378/0.809, allocations: 2.455 MB / 1.323 GB, free: 12.45 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.809, allocations: 9.094 kB / 1.323 GB, free: 12.45 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.153e-06/0.809, allocations: 0 / 1.323 GB, free: 12.45 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.969e-05/0.809, allocations: 0 / 1.323 GB, free: 12.45 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003344/0.8124, allocations: 2.188 MB / 1.325 GB, free: 10.98 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.8124, allocations: 9.969 kB / 1.325 GB, free: 10.98 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001837/0.8126, allocations: 165.3 kB / 1.325 GB, free: 10.87 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003323/0.8159, allocations: 0.6565 MB / 1.326 GB, free: 10.73 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.8179, allocations: 1.194 MB / 1.327 GB, free: 10.06 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.52e-05/0.8179, allocations: 91.95 kB / 1.327 GB, free: 10.01 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.8181, allocations: 105.7 kB / 1.327 GB, free: 9.98 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002947/0.821, allocations: 1.494 MB / 1.329 GB, free: 9.191 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.8211, allocations: 11.62 kB / 1.329 GB, free: 9.184 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.904e-05/0.8212, allocations: 45.12 kB / 1.329 GB, free: 9.152 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.8212, allocations: 28.3 kB / 1.329 GB, free: 9.152 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003321/0.8245, allocations: 1.222 MB / 1.33 GB, free: 8.801 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008646/0.8332, allocations: 8.381 MB / 1.338 GB, free: 1.875 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003089/0.8363, allocations: 1.093 MB / 1.339 GB, free: 1.562 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.8378, allocations: 0.558 MB / 1.34 GB, free: 1.398 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002183/0.84, allocations: 2.903 MB / 1.343 GB, free: 14.06 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001711/0.8418, allocations: 0.6731 MB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of pre-optimization done (n=85): time 2.514e-06/0.8418, allocations: 0 / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of matching and sorting (n=85): time 0.005041/0.8468, allocations: 1.793 MB / 1.345 GB, free: 13.3 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.8469, allocations: 65.31 kB / 1.345 GB, free: 13.23 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.8486, allocations: 1.493 MB / 1.346 GB, free: 12.6 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.747e-05/0.8487, allocations: 43.23 kB / 1.347 GB, free: 12.55 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005979/0.8493, allocations: 0.7942 MB / 1.347 GB, free: 11.85 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/0.8496, allocations: 317.2 kB / 1.348 GB, free: 11.57 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/0.8499, allocations: 223.8 kB / 1.348 GB, free: 11.45 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.85, allocations: 351.3 kB / 1.348 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/0.8516, allocations: 0.5233 MB / 1.349 GB, free: 10.86 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/0.8534, allocations: 0.8988 MB / 1.35 GB, free: 10.12 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003256/0.8567, allocations: 1.412 MB / 1.351 GB, free: 9.145 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.8567, allocations: 2.844 kB / 1.351 GB, free: 9.145 MB / 1.061 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003844/0.8605, allocations: 1.615 MB / 1.352 GB, free: 8.352 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.8605, allocations: 9.906 kB / 1.352 GB, free: 8.352 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.8606, allocations: 10.53 kB / 1.352 GB, free: 8.352 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.8606, allocations: 17.56 kB / 1.353 GB, free: 8.352 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.8619, allocations: 348.7 kB / 1.353 GB, free: 8.25 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-05/0.8619, allocations: 20.53 kB / 1.353 GB, free: 8.246 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.8633, allocations: 234.9 kB / 1.353 GB, free: 8.105 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.8634, allocations: 63.47 kB / 1.353 GB, free: 8.09 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (140): * Single equations (assignments): 140 * 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.0004816/0.8639, allocations: 341 kB / 1.353 GB, free: 7.848 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/0.8641, allocations: 180.4 kB / 1.354 GB, free: 7.75 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0046/0.8687, allocations: 2.092 MB / 1.356 GB, free: 6.641 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.148e-05/0.8688, allocations: 16.52 kB / 1.356 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.8688, allocations: 1.812 kB / 1.356 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.8688, allocations: 11.91 kB / 1.356 GB, free: 6.625 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005881/0.8747, allocations: 3.289 MB / 1.359 GB, free: 4.551 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.8747, allocations: 5.031 kB / 1.359 GB, free: 4.547 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.8758, allocations: 234.9 kB / 1.359 GB, free: 4.473 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.657e-06/0.8758, allocations: 4.688 kB / 1.359 GB, free: 4.473 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/0.8759, allocations: 41.84 kB / 1.359 GB, free: 4.445 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.8759, allocations: 5.812 kB / 1.359 GB, free: 4.445 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8759, allocations: 1.812 kB / 1.359 GB, free: 4.445 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005738/0.8816, allocations: 2.698 MB / 1.362 GB, free: 2.992 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005597/0.8822, allocations: 395.7 kB / 1.362 GB, free: 2.656 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/0.8824, allocations: 22.94 kB / 1.362 GB, free: 2.641 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.8834, allocations: 118.4 kB / 1.362 GB, free: 2.586 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.8836, allocations: 80.89 kB / 1.362 GB, free: 2.543 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.787e-05/0.8837, allocations: 50.83 kB / 1.362 GB, free: 2.523 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001243/0.8849, allocations: 1.002 MB / 1.363 GB, free: 2.02 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8849, allocations: 1.438 kB / 1.363 GB, free: 2.02 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001464/0.8864, allocations: 0.5453 MB / 1.364 GB, free: 1.875 MB / 1.061 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 (110): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * 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.008303/0.8947, allocations: 3.994 MB / 1.368 GB, free: 15.58 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.003667/0.8984, allocations: 1.454 MB / 1.369 GB, free: 14.93 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.8984, allocations: 0 / 1.369 GB, free: 14.93 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.9003, allocations: 0.8096 MB / 1.37 GB, free: 14.56 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/0.9034, allocations: 0.736 MB / 1.371 GB, free: 14.15 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/0.9237, allocations: 12.57 MB / 1.383 GB, free: 4.5 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008358/0.9245, allocations: 1.307 MB / 1.384 GB, free: 3.168 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001213/0.9258, allocations: 376.9 kB / 1.385 GB, free: 2.793 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008749/0.9266, allocations: 0.7023 MB / 1.385 GB, free: 2.094 MB / 1.076 GB Notification: Performance of SimCode: time 1.022e-06/0.9267, allocations: 0 / 1.385 GB, free: 2.094 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.588/9.514, allocations: 47.47 MB / 1.432 GB, free: 3.234 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.87/31.39, allocations: 3.984 kB / 1.432 GB, free: 3.23 MB / 1.123 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)