Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_latest_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.001428/0.001428, 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.00184/0.00184, 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 4.0.0+maint.om/package.mo): time 2.886/2.886, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.949/4.949, allocations: 409.2 MB / 0.6838 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007745/0.0007747, allocations: 8 kB / 0.8375 GB, free: 6.547 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.922/1.923, allocations: 146.8 MB / 0.9809 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.00352/1.927, allocations: 1.132 MB / 0.982 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001249/1.928, allocations: 367.6 kB / 0.9823 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.261e-05/1.928, allocations: 0 / 0.9823 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.793e-05/1.928, allocations: 3.984 kB / 0.9823 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.38e-05/1.928, allocations: 4 kB / 0.9823 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/1.928, allocations: 11.94 kB / 0.9824 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001122/1.929, allocations: 15.97 kB / 0.9824 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/1.929, allocations: 4 kB / 0.9824 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/1.929, allocations: 7.984 kB / 0.9824 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/1.929, allocations: 15.92 kB / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/1.929, allocations: 0 / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.577e-05/1.929, allocations: 0 / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.651e-05/1.929, allocations: 0 / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.505e-05/1.929, allocations: 33.64 kB / 0.9824 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.193e-05/1.929, allocations: 15.97 kB / 0.9824 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.477e-06/1.929, allocations: 4 kB / 0.9824 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.196e-06/1.929, allocations: 3.938 kB / 0.9824 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.065e-06/1.929, allocations: 0 / 0.9824 GB, free: 4.684 MB / 0.7325 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.0007454/1.93, allocations: 329.6 kB / 0.9828 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.989e-05/1.93, allocations: 8.031 kB / 0.9828 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.082e-05/1.93, allocations: 34.55 kB / 0.9828 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/1.93, allocations: 7.906 kB / 0.9828 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002014/1.931, allocations: 171 kB / 0.983 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/1.931, allocations: 4 kB / 0.983 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/1.931, allocations: 4 kB / 0.983 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002303/1.931, allocations: 45.62 kB / 0.983 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.931, allocations: 0 / 0.983 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/1.931, allocations: 4 kB / 0.983 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/1.931, allocations: 0 / 0.983 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/1.931, allocations: 27.92 kB / 0.9831 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/1.932, allocations: 249 kB / 0.9833 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/1.932, allocations: 30.53 kB / 0.9833 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/1.932, allocations: 0 / 0.9833 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/1.932, allocations: 38.56 kB / 0.9834 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/1.932, allocations: 3.938 kB / 0.9834 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0004178/1.932, allocations: 69.67 kB / 0.9834 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/1.932, allocations: 51.41 kB / 0.9835 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/1.933, allocations: 109.8 kB / 0.9836 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.045e-05/1.933, allocations: 25.7 kB / 0.9836 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/1.933, allocations: 92.17 kB / 0.9837 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/1.933, allocations: 0 / 0.9837 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/1.933, allocations: 0 / 0.9837 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0003003/1.933, allocations: 322.8 kB / 0.984 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.894e-05/1.933, allocations: 8 kB / 0.984 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.553e-05/1.933, allocations: 7.984 kB / 0.984 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.721e-05/1.933, allocations: 16.06 kB / 0.984 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/1.933, allocations: 0 / 0.984 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001998/1.934, allocations: 65.48 kB / 0.9841 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/1.934, allocations: 7.984 kB / 0.9841 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/1.934, allocations: 4 kB / 0.9841 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/1.934, allocations: 0 / 0.9841 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/1.934, allocations: 4 kB / 0.9841 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/1.934, allocations: 7.969 kB / 0.9841 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.078e-05/1.934, allocations: 4 kB / 0.9841 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/1.934, allocations: 0 / 0.9841 GB, free: 2.746 MB / 0.7325 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.0001802/1.934, allocations: 109.8 kB / 0.9842 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/1.934, allocations: 7.953 kB / 0.9842 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.024e-05/1.934, allocations: 7.531 kB / 0.9842 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/1.934, allocations: 0 / 0.9842 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/1.934, allocations: 0 / 0.9842 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/1.934, allocations: 0 / 0.9842 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/1.935, allocations: 161.7 kB / 0.9844 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/1.935, allocations: 0 / 0.9844 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.006e-05/1.935, allocations: 7.984 kB / 0.9844 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/1.935, allocations: 0 / 0.9844 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/1.935, allocations: 3.953 kB / 0.9844 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/1.935, allocations: 3.938 kB / 0.9844 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/1.935, allocations: 4 kB / 0.9844 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/1.935, allocations: 159.4 kB / 0.9846 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.923e-05/1.935, allocations: 77.11 kB / 0.9846 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/1.935, allocations: 0 / 0.9846 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/1.935, allocations: 7.953 kB / 0.9846 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.605e-05/1.935, allocations: 0 / 0.9846 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/1.935, allocations: 0 / 0.9846 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.24e-05/1.935, allocations: 87.27 kB / 0.9847 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.81e-07/1.935, allocations: 4.031 kB / 0.9847 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003626/1.936, allocations: 7.938 kB / 0.9847 GB, free: 2.016 MB / 0.7325 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.0008248/1.937, allocations: 0.6851 MB / 0.9854 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002063/1.937, allocations: 28.02 kB / 0.9854 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/1.937, allocations: 0 / 0.9854 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 6.129e-05/1.937, allocations: 8 kB / 0.9854 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/1.937, allocations: 7.891 kB / 0.9855 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007717/1.938, allocations: 166.3 kB / 0.9856 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005811/1.939, allocations: 0.6814 MB / 0.9863 GB, free: 356 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.772e-05/1.939, allocations: 0 / 0.9863 GB, free: 356 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.805e-05/1.939, allocations: 19.42 kB / 0.9863 GB, free: 336 kB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/1.939, allocations: 0 / 0.9863 GB, free: 336 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/1.963, allocations: 0.9692 MB / 0.9872 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004935/1.963, allocations: 210 kB / 0.9874 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.971/4.934, allocations: 4 kB / 0.9874 GB, free: 15.29 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat does not exist to compare? outputFormat=mat