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.001155/0.001155, allocations: 100.1 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.001311/0.001311, allocations: 177.3 kB / 15.95 MB, free: 216 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.395/1.395, allocations: 223.2 MB / 239.9 MB, free: 5.449 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.584/2.584, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005259/0.000526, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8435/0.8441, allocations: 142.3 MB / 0.9536 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.001461/0.8456, allocations: 1.135 MB / 0.9547 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00051/0.8461, allocations: 370.3 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.758e-05/0.8461, allocations: 0 / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.8462, allocations: 1.031 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.845e-05/0.8462, allocations: 1.094 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.8463, allocations: 13.08 kB / 0.9551 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.597e-05/0.8464, allocations: 17.14 kB / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.677e-05/0.8465, allocations: 2.812 kB / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.655e-05/0.8466, allocations: 13.12 kB / 0.9551 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.974e-05/0.8467, allocations: 11.97 kB / 0.9551 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.8467, allocations: 0 / 0.9551 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.628e-06/0.8467, allocations: 1.438 kB / 0.9551 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.8467, allocations: 5.141 kB / 0.9551 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.976e-05/0.8467, allocations: 26.64 kB / 0.9551 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 4.812e-05/0.8468, allocations: 13.33 kB / 0.9552 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.8468, allocations: 4 kB / 0.9552 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8468, allocations: 0 / 0.9552 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.8468, allocations: 0 / 0.9552 GB, free: 6.801 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.0003246/0.8471, allocations: 333.9 kB / 0.9555 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.8472, allocations: 9.188 kB / 0.9555 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.904e-05/0.8472, allocations: 35.69 kB / 0.9555 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.454e-05/0.8473, allocations: 13.12 kB / 0.9555 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.084e-05/0.8473, allocations: 168.3 kB / 0.9557 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.8474, allocations: 9.156 kB / 0.9557 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-06/0.8474, allocations: 1.125 kB / 0.9557 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001259/0.8475, allocations: 47.08 kB / 0.9558 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.8475, allocations: 3.938 kB / 0.9558 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.8475, allocations: 0.9688 kB / 0.9558 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.8475, allocations: 0 / 0.9558 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.803e-05/0.8476, allocations: 27.12 kB / 0.9558 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000278/0.8479, allocations: 254.7 kB / 0.956 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.043e-05/0.848, allocations: 33.16 kB / 0.9561 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.848, allocations: 0 / 0.9561 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.8481, allocations: 35.56 kB / 0.9561 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.8481, allocations: 4 kB / 0.9561 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000227/0.8483, allocations: 71.34 kB / 0.9562 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.8483, allocations: 51.41 kB / 0.9562 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.728e-05/0.8484, allocations: 101.4 kB / 0.9563 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.995e-06/0.8484, allocations: 26.77 kB / 0.9563 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.114e-05/0.8484, allocations: 89.31 kB / 0.9564 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.8485, allocations: 9.812 kB / 0.9564 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.8485, allocations: 0 / 0.9564 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.8485, allocations: 314.8 kB / 0.9567 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.153e-05/0.8486, allocations: 12.08 kB / 0.9567 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.327e-05/0.8486, allocations: 7.281 kB / 0.9567 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.326e-05/0.8487, allocations: 19.48 kB / 0.9568 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8487, allocations: 0 / 0.9568 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001159/0.8488, allocations: 61.22 kB / 0.9568 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.8488, allocations: 4.25 kB / 0.9568 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.8488, allocations: 1.375 kB / 0.9568 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.8488, allocations: 0 / 0.9568 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.495e-05/0.8489, allocations: 8.703 kB / 0.9568 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.8489, allocations: 5.484 kB / 0.9568 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.284e-05/0.849, allocations: 6.312 kB / 0.9569 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.849, allocations: 0 / 0.9569 GB, free: 5.016 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.491e-05/0.849, allocations: 112.5 kB / 0.957 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.8491, allocations: 1.406 kB / 0.957 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.8491, allocations: 4.625 kB / 0.957 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.8491, allocations: 0 / 0.957 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.8491, allocations: 5.078 kB / 0.957 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.8491, allocations: 0 / 0.957 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.8492, allocations: 159.6 kB / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8492, allocations: 7.938 kB / 0.9571 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.313e-05/0.8493, allocations: 4.562 kB / 0.9571 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.8493, allocations: 0 / 0.9571 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.8493, allocations: 5.531 kB / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.8493, allocations: 3.984 kB / 0.9571 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.8493, allocations: 0 / 0.9571 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001491/0.8495, allocations: 159.8 kB / 0.9573 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.234e-05/0.8495, allocations: 82.45 kB / 0.9574 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.8495, allocations: 0 / 0.9574 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.225e-05/0.8496, allocations: 6.766 kB / 0.9574 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.8496, allocations: 1.406 kB / 0.9574 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.8497, allocations: 1.438 kB / 0.9574 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.121e-05/0.8497, allocations: 87.5 kB / 0.9575 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8497, allocations: 0 / 0.9575 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002123/0.8499, allocations: 11.73 kB / 0.9575 GB, free: 4.328 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.0003113/0.8502, allocations: 0.6834 MB / 0.9581 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.8504, allocations: 28.89 kB / 0.9582 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.8504, allocations: 0 / 0.9582 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.328e-05/0.8504, allocations: 13.39 kB / 0.9582 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.8506, allocations: 5.844 kB / 0.9582 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003902/0.851, allocations: 158.5 kB / 0.9583 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.8511, allocations: 0.6824 MB / 0.959 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.356e-05/0.8511, allocations: 9.203 kB / 0.959 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.8512, allocations: 8.625 kB / 0.959 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.8512, allocations: 0 / 0.959 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.8643, allocations: 0.9772 MB / 0.96 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.8646, allocations: 196 kB / 0.9602 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/2.577, allocations: 1.5 kB / 0.9602 GB, free: 2.098 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