Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",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.001526/0.001526, 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.001712/0.001713, 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 3.2.3+maint.om/package.mo): time 3.202/3.202, allocations: 205.4 MB / 222.1 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.056/3.056, allocations: 292.6 MB / 0.5497 GB, free: 14.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007133/0.0007135, allocations: 10.94 kB / 0.6737 GB, free: 26.07 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4328/0.4335, allocations: 116.3 MB / 0.7872 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002994/0.4366, allocations: 1.14 MB / 0.7883 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.4378, allocations: 409.6 kB / 0.7887 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.483e-05/0.4378, allocations: 0 / 0.7887 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.25e-05/0.4379, allocations: 7.984 kB / 0.7887 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.826e-05/0.438, allocations: 0 / 0.7887 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.4382, allocations: 11.94 kB / 0.7888 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.4383, allocations: 15.97 kB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.4385, allocations: 7.984 kB / 0.7888 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.4386, allocations: 11.94 kB / 0.7888 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.4388, allocations: 11.92 kB / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.4388, allocations: 0 / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.4388, allocations: 0 / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.039e-05/0.4388, allocations: 8 kB / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.486e-05/0.4389, allocations: 25.7 kB / 0.7888 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.804e-05/0.439, allocations: 19.97 kB / 0.7889 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.439, allocations: 0 / 0.7889 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.038e-06/0.439, allocations: 0 / 0.7889 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.4391, allocations: 0 / 0.7889 GB, free: 10.18 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0007001/0.4398, allocations: 335.5 kB / 0.7892 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 8.727e-05/0.4399, allocations: 8.031 kB / 0.7892 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.904e-05/0.44, allocations: 42.56 kB / 0.7892 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.691e-05/0.44, allocations: 3.984 kB / 0.7892 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.4403, allocations: 174.9 kB / 0.7894 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.4403, allocations: 4 kB / 0.7894 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.4403, allocations: 0 / 0.7894 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.4406, allocations: 41.69 kB / 0.7894 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.4406, allocations: 0 / 0.7894 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.4406, allocations: 0 / 0.7894 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.4407, allocations: 4 kB / 0.7894 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.4408, allocations: 23.98 kB / 0.7895 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005742/0.4414, allocations: 252.9 kB / 0.7897 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.4416, allocations: 34.5 kB / 0.7897 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.4416, allocations: 0 / 0.7897 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.4417, allocations: 38.62 kB / 0.7898 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.4417, allocations: 0 / 0.7898 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0004021/0.4421, allocations: 61.67 kB / 0.7898 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.4422, allocations: 63.28 kB / 0.7899 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.4423, allocations: 109.9 kB / 0.79 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.4424, allocations: 29.7 kB / 0.79 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/0.4425, allocations: 84.08 kB / 0.7901 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.4425, allocations: 7.906 kB / 0.7901 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.4425, allocations: 0 / 0.7901 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.4427, allocations: 318.8 kB / 0.7904 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.309e-05/0.4427, allocations: 8 kB / 0.7904 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.294e-05/0.4428, allocations: 15.98 kB / 0.7904 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.599e-05/0.4429, allocations: 12.06 kB / 0.7905 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4429, allocations: 0 / 0.7905 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001867/0.4431, allocations: 49.69 kB / 0.7905 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.4432, allocations: 8 kB / 0.7905 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.4432, allocations: 3.984 kB / 0.7905 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.4432, allocations: 0 / 0.7905 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.4434, allocations: 11.97 kB / 0.7905 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.4434, allocations: 0 / 0.7905 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.988e-05/0.4435, allocations: 4 kB / 0.7905 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.4435, allocations: 3.953 kB / 0.7905 GB, free: 8.234 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001411/0.4436, allocations: 117.8 kB / 0.7906 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.4437, allocations: 3.906 kB / 0.7906 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.6e-05/0.4437, allocations: 3.531 kB / 0.7907 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.4437, allocations: 0 / 0.7907 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4438, allocations: 8 kB / 0.7907 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4438, allocations: 3.938 kB / 0.7907 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.4441, allocations: 157.9 kB / 0.7908 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4441, allocations: 0 / 0.7908 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.128e-05/0.4442, allocations: 11.98 kB / 0.7908 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.4442, allocations: 0 / 0.7908 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.4442, allocations: 8 kB / 0.7908 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.4442, allocations: 0 / 0.7908 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4442, allocations: 0 / 0.7908 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.4445, allocations: 159.4 kB / 0.791 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.4446, allocations: 77.11 kB / 0.7911 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.4446, allocations: 0 / 0.7911 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.4447, allocations: 4 kB / 0.7911 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.943e-05/0.4448, allocations: 3.938 kB / 0.7911 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.4448, allocations: 0 / 0.7911 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.132e-05/0.4449, allocations: 95.3 kB / 0.7912 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.91e-07/0.4449, allocations: 0 / 0.7912 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003938/0.4453, allocations: 7.906 kB / 0.7912 GB, free: 7.488 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0007229/0.4461, allocations: 0.6852 MB / 0.7918 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003076/0.4464, allocations: 27.92 kB / 0.7919 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4464, allocations: 0 / 0.7919 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.941e-05/0.4465, allocations: 12 kB / 0.7919 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.4468, allocations: 4 kB / 0.7919 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007385/0.4476, allocations: 158.4 kB / 0.792 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.448, allocations: 0.677 MB / 0.7927 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.128e-05/0.4481, allocations: 4 kB / 0.7927 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.4482, allocations: 11.42 kB / 0.7927 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of SimCode: time 5.51e-07/0.4482, allocations: 0 / 0.7927 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.4741, allocations: 0.9678 MB / 0.7936 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003255/0.4745, allocations: 201.7 kB / 0.7938 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.866/3.341, allocations: 4 kB / 0.7938 GB, free: 4.785 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) Environment - environmentSimulation: