Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet",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.005252/0.005252, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001194/0.001194, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 280.3 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8966/0.8966, allocations: 169.3 MB / 0.4983 GB, free: 4.391 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 96.08 kB / 0.681 GB, free: 7.43 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4242, allocations: 86.98 MB / 0.7659 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet): time 0.1999/0.6242, allocations: 193.8 MB / 0.9552 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4387/1.063, allocations: 5.133 MB / 0.9602 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/1.064, allocations: 46.44 kB / 0.9603 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001863/1.066, allocations: 0.8333 MB / 0.9611 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.005847/1.072, allocations: 2.692 MB / 0.9637 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002795/1.075, allocations: 1.11 MB / 0.9648 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003327/1.078, allocations: 2.691 MB / 0.9674 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/1.079, allocations: 0.9399 MB / 0.9683 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002025/1.082, allocations: 1.144 MB / 0.9695 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/1.083, allocations: 0.9897 MB / 0.9704 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001707/1.083, allocations: 89.08 kB / 0.9705 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003159/1.086, allocations: 1.803 MB / 0.9723 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004312/1.087, allocations: 449.2 kB / 0.9727 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0008088/1.088, allocations: 0.6698 MB / 0.9733 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.003326/1.091, allocations: 2.234 MB / 0.9755 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/1.091, allocations: 0 / 0.9755 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/1.091, allocations: 2.094 kB / 0.9755 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.731e-05/1.091, allocations: 0 / 0.9755 GB, free: 1.477 MB / 0.7169 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.005194/1.096, allocations: 2.013 MB / 0.9775 GB, free: 16.48 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.564e-05/1.096, allocations: 12.34 kB / 0.9775 GB, free: 16.48 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002178/1.096, allocations: 143.6 kB / 0.9776 GB, free: 16.45 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005286/1.102, allocations: 0.9014 MB / 0.9785 GB, free: 16.36 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/1.103, allocations: 0.9824 MB / 0.9795 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/1.103, allocations: 67.28 kB / 0.9796 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/1.104, allocations: 95.92 kB / 0.9796 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003246/1.107, allocations: 1.583 MB / 0.9812 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/1.107, allocations: 2.094 kB / 0.9812 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.865e-05/1.107, allocations: 40.39 kB / 0.9812 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.622e-05/1.107, allocations: 45.97 kB / 0.9813 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005045/1.112, allocations: 1.856 MB / 0.9831 GB, free: 15.82 MB / 0.7325 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.007608/1.12, allocations: 4.727 MB / 0.9877 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004076/1.124, allocations: 1.565 MB / 0.9892 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/1.126, allocations: 0.8553 MB / 0.9901 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001302/1.127, allocations: 0.9418 MB / 0.991 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002308/1.13, allocations: 0.9127 MB / 0.9919 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=95): time 3.366e-06/1.13, allocations: 0.75 kB / 0.9919 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of matching and sorting (n=95): time 0.007356/1.137, allocations: 2.459 MB / 0.9943 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/1.137, allocations: 62.75 kB / 0.9943 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/1.139, allocations: 1.205 MB / 0.9955 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001309/1.139, allocations: 44.33 kB / 0.9956 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003799/1.139, allocations: 0.5549 MB / 0.9961 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003069/1.139, allocations: 341.9 kB / 0.9964 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003374/1.14, allocations: 188.3 kB / 0.9966 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001199/1.14, allocations: 341.6 kB / 0.9969 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002024/1.142, allocations: 0.703 MB / 0.9976 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002165/1.144, allocations: 0.9097 MB / 0.9985 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004097/1.148, allocations: 1.548 MB / 1 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/1.148, allocations: 0 / 1 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.004782/1.153, allocations: 1.785 MB / 1.002 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/1.153, allocations: 10.53 kB / 1.002 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/1.153, allocations: 4.719 kB / 1.002 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.56e-05/1.153, allocations: 8.5 kB / 1.002 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/1.155, allocations: 341.7 kB / 1.002 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.356e-05/1.155, allocations: 11.09 kB / 1.002 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/1.156, allocations: 248.6 kB / 1.002 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/1.157, allocations: 45.53 kB / 1.002 GB, free: 11.15 MB / 0.7325 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.0005921/1.157, allocations: 333.2 kB / 1.003 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/1.158, allocations: 145.2 kB / 1.003 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004961/1.162, allocations: 1.814 MB / 1.005 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/1.163, allocations: 10.81 kB / 1.005 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/1.163, allocations: 4 kB / 1.005 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/1.163, allocations: 8.953 kB / 1.005 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007301/1.17, allocations: 3.318 MB / 1.008 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/1.17, allocations: 5.281 kB / 1.008 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/1.171, allocations: 286.3 kB / 1.008 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.624e-05/1.171, allocations: 7.688 kB / 1.008 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/1.172, allocations: 32.62 kB / 1.008 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.159e-05/1.172, allocations: 10.03 kB / 1.008 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.172, allocations: 8.094 kB / 1.008 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007671/1.179, allocations: 2.854 MB / 1.011 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/1.18, allocations: 330.9 kB / 1.011 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005635/1.181, allocations: 26.94 kB / 1.011 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001687/1.183, allocations: 154.8 kB / 1.011 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/1.183, allocations: 71.52 kB / 1.012 GB, free: 9.652 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/1.183, allocations: 41.05 kB / 1.012 GB, free: 9.652 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001406/1.184, allocations: 0.832 MB / 1.012 GB, free: 9.543 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/1.184, allocations: 0 / 1.012 GB, free: 9.543 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001435/1.186, allocations: 343.8 kB / 1.013 GB, free: 9.52 MB / 0.7325 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.009445/1.195, allocations: 3.841 MB / 1.016 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005377/1.201, allocations: 1.631 MB / 1.018 GB, free: 8.363 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.201, allocations: 2.531 kB / 1.018 GB, free: 8.363 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.002421/1.203, allocations: 0.8359 MB / 1.019 GB, free: 8.238 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003387/1.207, allocations: 0.6199 MB / 1.02 GB, free: 7.992 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02571/1.232, allocations: 12.1 MB / 1.031 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009233/1.233, allocations: 1.183 MB / 1.032 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001481/1.235, allocations: 367.5 kB / 1.033 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007953/1.236, allocations: 0.4984 MB / 1.033 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of SimCode: time 9.21e-07/1.236, allocations: 0 / 1.033 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07032/1.306, allocations: 35.69 MB / 1.068 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/11.47, allocations: 10.88 kB / 1.068 GB, free: 11.12 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.48 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe 2>&1)