Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_9_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.001035/0.001035, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001374/0.001375, allocations: 168.7 kB / 15.95 MB, free: 204 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.362/1.362, allocations: 223.2 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.365/2.365, allocations: 390.4 MB / 0.6655 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003312, allocations: 8 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6396/0.6399, allocations: 142.3 MB / 0.9539 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.001577/0.6416, allocations: 1.141 MB / 0.955 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005627/0.6421, allocations: 368.5 kB / 0.9553 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.584e-05/0.6422, allocations: 1.156 kB / 0.9553 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.6422, allocations: 3.938 kB / 0.9553 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.968e-05/0.6423, allocations: 0 / 0.9553 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001645/0.6425, allocations: 10.11 kB / 0.9553 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.918e-05/0.6425, allocations: 28.45 kB / 0.9554 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.767e-05/0.6426, allocations: 6.453 kB / 0.9554 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.036e-05/0.6427, allocations: 9.844 kB / 0.9554 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.264e-05/0.6428, allocations: 11.02 kB / 0.9554 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.6428, allocations: 1.312 kB / 0.9554 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.896e-06/0.6428, allocations: 0 / 0.9554 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.108e-05/0.6429, allocations: 1.188 kB / 0.9554 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.6429, allocations: 34.73 kB / 0.9554 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.263e-05/0.6429, allocations: 12.34 kB / 0.9554 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.643, allocations: 4 kB / 0.9554 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.843e-06/0.643, allocations: 0 / 0.9554 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.643, allocations: 1 kB / 0.9554 GB, free: 6.906 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003257/0.6433, allocations: 332.9 kB / 0.9558 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.6433, allocations: 9.469 kB / 0.9558 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.862e-05/0.6434, allocations: 31.75 kB / 0.9558 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.366e-05/0.6434, allocations: 5.266 kB / 0.9558 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.212e-05/0.6435, allocations: 180.2 kB / 0.956 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.6435, allocations: 5.25 kB / 0.956 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.6435, allocations: 1.438 kB / 0.956 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.6437, allocations: 43.25 kB / 0.956 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.6437, allocations: 4 kB / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-06/0.6437, allocations: 0 / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.6437, allocations: 1.375 kB / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.335e-05/0.6438, allocations: 29.44 kB / 0.9561 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002855/0.6441, allocations: 251.1 kB / 0.9563 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.537e-05/0.6442, allocations: 28.86 kB / 0.9563 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.96e-05/0.6442, allocations: 23.38 kB / 0.9563 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.6443, allocations: 0 / 0.9563 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.6443, allocations: 39.72 kB / 0.9564 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.6443, allocations: 0 / 0.9564 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002342/0.6445, allocations: 66.69 kB / 0.9564 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.041e-05/0.6446, allocations: 52.22 kB / 0.9565 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.452e-05/0.6446, allocations: 101.2 kB / 0.9566 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.267e-06/0.6446, allocations: 39.09 kB / 0.9566 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.895e-05/0.6447, allocations: 81.58 kB / 0.9567 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.6447, allocations: 3.906 kB / 0.9567 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/0.6447, allocations: 0 / 0.9567 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.515e-05/0.6447, allocations: 320.2 kB / 0.957 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.878e-05/0.6448, allocations: 11.42 kB / 0.957 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.287e-05/0.6448, allocations: 11.88 kB / 0.957 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.2e-05/0.6449, allocations: 15.39 kB / 0.9571 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6449, allocations: 3.938 kB / 0.9571 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001103/0.645, allocations: 56.78 kB / 0.9571 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.645, allocations: 5.719 kB / 0.9571 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.645, allocations: 0 / 0.9571 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.6451, allocations: 3.953 kB / 0.9571 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.579e-05/0.6451, allocations: 13.83 kB / 0.9571 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.6451, allocations: 0 / 0.9571 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.261e-05/0.6452, allocations: 2.25 kB / 0.9571 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.6452, allocations: 1.219 kB / 0.9571 GB, free: 5.117 MB / 0.7169 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 5.483e-05/0.6453, allocations: 112 kB / 0.9572 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.6453, allocations: 1.438 kB / 0.9572 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.162e-05/0.6453, allocations: 8.875 kB / 0.9573 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.6453, allocations: 0 / 0.9573 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.6453, allocations: 7.953 kB / 0.9573 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.6453, allocations: 5.359 kB / 0.9573 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.6455, allocations: 154.4 kB / 0.9574 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.6455, allocations: 0 / 0.9574 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.434e-05/0.6455, allocations: 5.5 kB / 0.9574 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.6455, allocations: 7.922 kB / 0.9574 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.6455, allocations: 5.234 kB / 0.9574 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.6456, allocations: 3.984 kB / 0.9574 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.6456, allocations: 1.156 kB / 0.9574 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001277/0.6457, allocations: 155 kB / 0.9576 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.6457, allocations: 81.95 kB / 0.9577 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.6457, allocations: 1.062 kB / 0.9577 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.169e-05/0.6458, allocations: 6.359 kB / 0.9577 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.982e-05/0.6458, allocations: 1.469 kB / 0.9577 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.6458, allocations: 5.469 kB / 0.9577 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.612e-05/0.6459, allocations: 91.08 kB / 0.9578 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6459, allocations: 0 / 0.9578 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000217/0.6461, allocations: 3.625 kB / 0.9578 GB, free: 4.426 MB / 0.7169 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.000302/0.6464, allocations: 0.6873 MB / 0.9584 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001269/0.6466, allocations: 24.39 kB / 0.9585 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.6466, allocations: 1.312 kB / 0.9585 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.355e-05/0.6466, allocations: 12.67 kB / 0.9585 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.6469, allocations: 14.25 kB / 0.9585 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003923/0.6473, allocations: 162.9 kB / 0.9586 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001237/0.6474, allocations: 0.6784 MB / 0.9593 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.723e-05/0.6474, allocations: 3.984 kB / 0.9593 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.136e-05/0.6475, allocations: 8.562 kB / 0.9593 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6475, allocations: 0 / 0.9593 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.6589, allocations: 0.9717 MB / 0.9603 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/0.6591, allocations: 217.3 kB / 0.9605 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.546/2.205, allocations: 3.938 kB / 0.9605 GB, free: 2.191 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat does not exist to compare? outputFormat=mat