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.001241/0.001242, allocations: 105.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 194.2 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 205.1 MB / 222.5 MB, free: 4.527 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 1.716/1.716, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001931/0.001931, allocations: 69.75 kB / 0.6718 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2514, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.003207/0.2546, allocations: 1.43 MB / 0.785 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007765/0.2554, allocations: 439.9 kB / 0.7855 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.382e-05/0.2555, allocations: 3.938 kB / 0.7855 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.725e-05/0.2555, allocations: 3.938 kB / 0.7855 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.47e-05/0.2556, allocations: 3.938 kB / 0.7855 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.2558, allocations: 11.98 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.121e-05/0.2559, allocations: 27.86 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.256, allocations: 7.984 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.2561, allocations: 11.98 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.877e-05/0.2562, allocations: 15.94 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.2562, allocations: 4 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.131e-05/0.2562, allocations: 0 / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.789e-05/0.2563, allocations: 3.938 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.139e-05/0.2563, allocations: 15.92 kB / 0.7856 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.054e-05/0.2564, allocations: 19.97 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2564, allocations: 0 / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2564, allocations: 0 / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.734e-06/0.2564, allocations: 4 kB / 0.7856 GB, free: 11.27 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.0004197/0.2568, allocations: 343.6 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.2569, allocations: 12.03 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.306e-05/0.2569, allocations: 30.75 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.063e-05/0.257, allocations: 4.844 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.2571, allocations: 168.3 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.2571, allocations: 4.359 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.2572, allocations: 384 / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.2573, allocations: 45.81 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2573, allocations: 0 / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.2573, allocations: 0 / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.2574, allocations: 11.98 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.04e-05/0.2574, allocations: 15.98 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000329/0.2578, allocations: 248.9 kB / 0.7864 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.039e-05/0.2579, allocations: 34.5 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.14e-05/0.2579, allocations: 20.91 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.258, allocations: 4 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.258, allocations: 30.56 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.258, allocations: 0 / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0002368/0.2582, allocations: 65.53 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.2583, allocations: 51.41 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.905e-05/0.2584, allocations: 105.8 kB / 0.7867 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.2584, allocations: 29.83 kB / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.639e-05/0.2584, allocations: 88.08 kB / 0.7868 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.2585, allocations: 11.89 kB / 0.7869 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.693e-05/0.2585, allocations: 9.719 kB / 0.7869 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.2586, allocations: 322.7 kB / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.346e-05/0.2587, allocations: 11.98 kB / 0.7872 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.887e-05/0.2587, allocations: 4 kB / 0.7872 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.508e-05/0.2588, allocations: 28.91 kB / 0.7872 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2588, allocations: 0 / 0.7872 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001145/0.2589, allocations: 53.62 kB / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.259, allocations: 8 kB / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.259, allocations: 0 / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.259, allocations: 0 / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.167e-05/0.2591, allocations: 7.984 kB / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2591, allocations: 0 / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.067e-05/0.2591, allocations: 7.969 kB / 0.7873 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.2591, allocations: 4.25 kB / 0.7873 GB, free: 9.285 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.648e-05/0.2592, allocations: 113.8 kB / 0.7874 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.794e-05/0.2592, allocations: 7.984 kB / 0.7874 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.19e-05/0.2593, allocations: 3.531 kB / 0.7874 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2593, allocations: 4 kB / 0.7874 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2593, allocations: 0 / 0.7874 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2593, allocations: 0 / 0.7874 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.2594, allocations: 157.6 kB / 0.7876 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2595, allocations: 0 / 0.7876 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.423e-05/0.2595, allocations: 15.98 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.2595, allocations: 0 / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/0.2595, allocations: 4 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2595, allocations: 0 / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2595, allocations: 0 / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001661/0.2597, allocations: 151.3 kB / 0.7877 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.2598, allocations: 81.12 kB / 0.7878 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.2598, allocations: 8 kB / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.861e-05/0.2598, allocations: 0 / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.186e-05/0.2599, allocations: 0 / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.2599, allocations: 4 kB / 0.7878 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.296e-05/0.2599, allocations: 87.27 kB / 0.7879 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2599, allocations: 0 / 0.7879 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002208/0.2602, allocations: 4 kB / 0.7879 GB, free: 8.559 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 (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.000423/0.2606, allocations: 0.6861 MB / 0.7886 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001388/0.2607, allocations: 23.98 kB / 0.7886 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2608, allocations: 0 / 0.7886 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.245e-05/0.2608, allocations: 12 kB / 0.7886 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.261, allocations: 10.75 kB / 0.7886 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004294/0.2615, allocations: 144.2 kB / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.2617, allocations: 0.6845 MB / 0.7894 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.397e-05/0.2617, allocations: 0 / 0.7894 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.351e-05/0.2618, allocations: 11.44 kB / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2618, allocations: 0 / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.2783, allocations: 1.202 MB / 0.7906 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.888/7.167, allocations: 11.19 kB / 0.7906 GB, free: 5.828 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/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)