Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_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.0008777/0.0008777, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005329/0.005329, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.233/1.233, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.166/2.166, allocations: 390.9 MB / 0.6664 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002664/0.0002664, allocations: 15.98 kB / 0.8161 GB, free: 13.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5022/0.5025, allocations: 142.4 MB / 0.9552 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001551/0.5041, allocations: 1.481 MB / 0.9566 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.5052, allocations: 0.8905 MB / 0.9575 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.671e-05/0.5052, allocations: 5 kB / 0.9575 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003937/0.5056, allocations: 162 kB / 0.9576 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.5059, allocations: 152.6 kB / 0.9578 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.5062, allocations: 188.7 kB / 0.958 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002064/0.5064, allocations: 224.4 kB / 0.9582 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.5066, allocations: 55.66 kB / 0.9582 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.5067, allocations: 79.33 kB / 0.9583 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.5068, allocations: 140.8 kB / 0.9584 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.5068, allocations: 6.375 kB / 0.9585 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.769e-05/0.5069, allocations: 33.61 kB / 0.9585 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.677e-05/0.507, allocations: 68.09 kB / 0.9586 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.97e-05/0.5071, allocations: 120.9 kB / 0.9587 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.5073, allocations: 343.8 kB / 0.959 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.5073, allocations: 0 / 0.959 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5073, allocations: 1.375 kB / 0.959 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.5073, allocations: 0 / 0.959 GB, free: 4.762 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004971/0.5078, allocations: 0.5574 MB / 0.9595 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.5078, allocations: 9.625 kB / 0.9595 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.6e-05/0.5079, allocations: 44.05 kB / 0.9596 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.036e-05/0.5079, allocations: 30.31 kB / 0.9596 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.5083, allocations: 419.8 kB / 0.96 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.205e-06/0.5083, allocations: 1.75 kB / 0.96 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.5083, allocations: 12.06 kB / 0.96 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.5085, allocations: 72.98 kB / 0.9601 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.5085, allocations: 5.375 kB / 0.9601 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.5085, allocations: 4 kB / 0.9601 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.5085, allocations: 5.359 kB / 0.9601 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.5086, allocations: 48.84 kB / 0.9602 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003934/0.509, allocations: 482.1 kB / 0.9606 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.783e-05/0.5091, allocations: 50.98 kB / 0.9607 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.519e-05/0.5092, allocations: 19.52 kB / 0.9607 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.5092, allocations: 3.938 kB / 0.9607 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.167e-05/0.5092, allocations: 31.59 kB / 0.9607 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.5092, allocations: 4 kB / 0.9607 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000234/0.5094, allocations: 112.5 kB / 0.9608 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.71e-05/0.5095, allocations: 52.47 kB / 0.9609 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005114/0.51, allocations: 0.5495 MB / 0.9614 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.462e-06/0.51, allocations: 26.98 kB / 0.9614 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/0.5101, allocations: 174.3 kB / 0.9616 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.491e-05/0.5101, allocations: 16.89 kB / 0.9616 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.829e-05/0.5101, allocations: 10.59 kB / 0.9616 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.083e-05/0.5102, allocations: 340.7 kB / 0.962 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.576e-05/0.5102, allocations: 17.55 kB / 0.962 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.689e-05/0.5103, allocations: 17.56 kB / 0.962 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.262e-05/0.5104, allocations: 49.14 kB / 0.962 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.5104, allocations: 3.938 kB / 0.9621 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001389/0.5105, allocations: 92.39 kB / 0.9621 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.5105, allocations: 4.688 kB / 0.9621 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.5105, allocations: 1.031 kB / 0.9621 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.5106, allocations: 3.938 kB / 0.9621 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.899e-05/0.5106, allocations: 7.562 kB / 0.9622 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.477e-06/0.5106, allocations: 0 / 0.9622 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.109e-05/0.5107, allocations: 10.73 kB / 0.9622 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.5107, allocations: 1 kB / 0.9622 GB, free: 2.09 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 (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.0001014/0.5108, allocations: 184.3 kB / 0.9623 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.5109, allocations: 28.78 kB / 0.9624 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.5111, allocations: 107.4 kB / 0.9625 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.5111, allocations: 0.9062 kB / 0.9625 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5111, allocations: 5.031 kB / 0.9625 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.5111, allocations: 0 / 0.9625 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.5113, allocations: 291 kB / 0.9628 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.5113, allocations: 0 / 0.9628 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.421e-05/0.5113, allocations: 10.95 kB / 0.9628 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.5113, allocations: 0.9062 kB / 0.9628 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.5114, allocations: 3.938 kB / 0.9628 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.5114, allocations: 1.031 kB / 0.9628 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5114, allocations: 0 / 0.9628 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001498/0.5115, allocations: 191.9 kB / 0.963 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/0.5116, allocations: 127.6 kB / 0.9631 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.5116, allocations: 4.969 kB / 0.9631 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.672e-05/0.5117, allocations: 5.953 kB / 0.9631 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.075e-05/0.5117, allocations: 2 kB / 0.9631 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.5118, allocations: 1 kB / 0.9631 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003458/0.5121, allocations: 421.9 kB / 0.9635 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5121, allocations: 0 / 0.9635 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002356/0.5123, allocations: 24.92 kB / 0.9635 GB, free: 1.016 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 (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.0008727/0.5132, allocations: 0.9779 MB / 0.9645 GB, free: 236 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.5134, allocations: 43.03 kB / 0.9645 GB, free: 216 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.5134, allocations: 4 kB / 0.9645 GB, free: 212 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.703e-05/0.5134, allocations: 20.08 kB / 0.9645 GB, free: 204 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.5138, allocations: 36.64 kB / 0.9646 GB, free: 184 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003/0.5168, allocations: 2.968 MB / 0.9675 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.5171, allocations: 0.7835 MB / 0.9682 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.485e-05/0.5172, allocations: 48.09 kB / 0.9683 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.5173, allocations: 87.75 kB / 0.9684 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of SimCode: time 3.11e-07/0.5173, allocations: 1.156 kB / 0.9684 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.207/3.725, allocations: 4.935 MB / 0.9732 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002602/3.725, allocations: 278.8 kB / 0.9734 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/5.36, allocations: 3.125 kB / 0.9735 GB, free: 10.65 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)