Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.001376/0.001376, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001433/0.001434, allocations: 192.3 kB / 16.13 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.472/2.472, allocations: 437 MB / 0.7099 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 67.91 kB / 0.8687 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5899/0.5914, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003178/0.5946, allocations: 1.819 MB / 1.018 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001317/0.596, allocations: 0.9201 MB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.543e-05/0.596, allocations: 11.88 kB / 1.019 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.000503/0.5965, allocations: 168.7 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003085/0.5969, allocations: 149.8 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.5973, allocations: 202.7 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002464/0.5975, allocations: 211.5 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.5977, allocations: 63.89 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.5978, allocations: 79.67 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.598, allocations: 143.5 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.598, allocations: 11.98 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.995e-05/0.5981, allocations: 28 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.046e-05/0.5982, allocations: 79.73 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.028e-05/0.5983, allocations: 103.2 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.5987, allocations: 342.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.5987, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.72e-07/0.5987, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.5987, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007424/0.5994, allocations: 0.6031 MB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.5995, allocations: 12.03 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.5995, allocations: 38.75 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.193e-05/0.5996, allocations: 32.56 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/0.6001, allocations: 418.1 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.6001, allocations: 4.375 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.6001, allocations: 7.938 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.6003, allocations: 77.66 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.6003, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.6003, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.6003, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.6004, allocations: 51.97 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005558/0.601, allocations: 480.5 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.6011, allocations: 50.5 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.359e-05/0.6012, allocations: 24.84 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.6012, allocations: 4.109 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.6013, allocations: 34.5 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.6013, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002873/0.6016, allocations: 109.4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.6016, allocations: 51.41 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000582/0.6022, allocations: 0.5446 MB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.6022, allocations: 25.7 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.6023, allocations: 183.9 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.6024, allocations: 7.812 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.6024, allocations: 21.7 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.6025, allocations: 342.8 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.816e-05/0.6026, allocations: 11.92 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.787e-05/0.6026, allocations: 15.98 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.814e-05/0.6027, allocations: 40.83 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.6027, allocations: 4 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001612/0.6029, allocations: 85.31 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.6029, allocations: 8 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.6029, allocations: 3.984 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.603, allocations: 3.938 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.621e-05/0.603, allocations: 4 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.603, allocations: 0 / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.863e-05/0.6031, allocations: 7.938 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.6031, allocations: 0 / 1.024 GB, free: 10.98 MB / 0.7794 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 (3): * Single equations (assignments): 3 * 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 0.0001407/0.6033, allocations: 189.8 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.084e-05/0.6033, allocations: 27.62 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.6035, allocations: 104.1 kB / 1.024 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.6035, allocations: 0 / 1.024 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.6035, allocations: 0 / 1.024 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.6036, allocations: 3.984 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.6038, allocations: 281.5 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6038, allocations: 0 / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.664e-05/0.6039, allocations: 8 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.6039, allocations: 3.984 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.6039, allocations: 7.938 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.6039, allocations: 0 / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.6039, allocations: 3.938 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.6041, allocations: 183.2 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.811e-05/0.6042, allocations: 120.7 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.6043, allocations: 7.938 kB / 1.025 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.718e-05/0.6044, allocations: 4 kB / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.6044, allocations: 7.938 kB / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.6044, allocations: 0 / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.00043/0.6048, allocations: 419.1 kB / 1.025 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6048, allocations: 0 / 1.025 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002561/0.6051, allocations: 27.91 kB / 1.025 GB, free: 9.508 MB / 0.7794 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 (3): * Single equations (assignments): 3 * 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.00123/0.6063, allocations: 0.9675 MB / 1.026 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001534/0.6065, allocations: 35.92 kB / 1.026 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.6065, allocations: 0 / 1.026 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.251e-05/0.6066, allocations: 19.98 kB / 1.026 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.607, allocations: 44 kB / 1.026 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/0.6104, allocations: 2.94 MB / 1.029 GB, free: 5.535 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.6108, allocations: 0.7834 MB / 1.03 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.6109, allocations: 42.92 kB / 1.03 GB, free: 4.684 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.6111, allocations: 95.39 kB / 1.03 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.6111, allocations: 0 / 1.03 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.6285, allocations: 5.162 MB / 1.035 GB, free: 15.61 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002929/0.6289, allocations: 276.4 kB / 1.036 GB, free: 15.23 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.418, allocations: 0 / 1.036 GB, free: 15.23 MB / 0.795 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)