Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_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.006662/0.006662, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001858/0.001858, allocations: 198.9 kB / 16.67 MB, free: 5.934 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.434/2.434, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 63.84 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6037/0.6056, allocations: 159.1 MB / 1.22 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002753/0.6083, allocations: 1.768 MB / 1.222 GB, free: 292 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001336/0.6097, allocations: 0.9287 MB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.78e-05/0.6098, allocations: 0 / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004427/0.6102, allocations: 180.7 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003521/0.6106, allocations: 161.6 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000418/0.611, allocations: 210.5 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.6113, allocations: 247.5 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.6115, allocations: 53.64 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.6116, allocations: 103.6 kB / 1.224 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.6118, allocations: 155.5 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.86e-05/0.6119, allocations: 24 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.798e-05/0.612, allocations: 39.98 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.726e-05/0.6121, allocations: 87.75 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.6122, allocations: 111.2 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.6126, allocations: 366.2 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.6126, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.032e-06/0.6126, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.6126, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9512 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.0007263/0.6133, allocations: 0.6106 MB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 2.863e-05/0.6134, allocations: 12.03 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.6134, allocations: 46.67 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.6135, allocations: 32.7 kB / 1.225 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.6139, allocations: 414.6 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.614, allocations: 4.375 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.614, allocations: 7.938 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.6141, allocations: 77.61 kB / 1.226 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.6142, allocations: 0 / 1.226 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.6142, allocations: 3.984 kB / 1.226 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.6142, allocations: 0 / 1.226 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.6143, allocations: 55.91 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000527/0.6148, allocations: 484.5 kB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.615, allocations: 50.48 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.768e-05/0.615, allocations: 16.92 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.615, allocations: 4 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.6151, allocations: 38.55 kB / 1.226 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.6151, allocations: 0 / 1.226 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0002564/0.6153, allocations: 105.4 kB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.6154, allocations: 51.41 kB / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005808/0.616, allocations: 0.5524 MB / 1.227 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.616, allocations: 29.7 kB / 1.227 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.6161, allocations: 168.1 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.6161, allocations: 19.83 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/0.6162, allocations: 21.66 kB / 1.227 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.6163, allocations: 338.8 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.712e-05/0.6164, allocations: 15.98 kB / 1.227 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.946e-05/0.6164, allocations: 11.98 kB / 1.228 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.293e-05/0.6165, allocations: 32.84 kB / 1.228 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.6165, allocations: 4 kB / 1.228 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001535/0.6167, allocations: 93.42 kB / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.6167, allocations: 4 kB / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.6167, allocations: 0 / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.6167, allocations: 3.938 kB / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.507e-05/0.6168, allocations: 8 kB / 1.228 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.6168, allocations: 4.094 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.454e-05/0.6169, allocations: 3.938 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.85e-06/0.6169, allocations: 4 kB / 1.228 GB, free: 10.14 MB / 0.9512 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.0001424/0.617, allocations: 181.8 kB / 1.228 GB, free: 9.949 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.6171, allocations: 31.81 kB / 1.228 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.6173, allocations: 104.1 kB / 1.228 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.6173, allocations: 0 / 1.228 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.6173, allocations: 3.938 kB / 1.228 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.6173, allocations: 0 / 1.228 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.6176, allocations: 285.5 kB / 1.228 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.6176, allocations: 0 / 1.228 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.555e-05/0.6176, allocations: 11.98 kB / 1.228 GB, free: 9.465 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.6177, allocations: 4 kB / 1.228 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.6177, allocations: 8.312 kB / 1.228 GB, free: 9.453 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.6177, allocations: 0 / 1.228 GB, free: 9.453 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.6177, allocations: 0 / 1.228 GB, free: 9.453 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/0.6179, allocations: 191.3 kB / 1.228 GB, free: 9.25 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.973e-05/0.618, allocations: 116.9 kB / 1.229 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.618, allocations: 3.938 kB / 1.229 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.478e-05/0.6181, allocations: 8 kB / 1.229 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.6181, allocations: 3.984 kB / 1.229 GB, free: 9.102 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.6181, allocations: 0 / 1.229 GB, free: 9.102 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004223/0.6186, allocations: 419.1 kB / 1.229 GB, free: 8.691 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6186, allocations: 3.938 kB / 1.229 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002285/0.6188, allocations: 23.94 kB / 1.229 GB, free: 8.664 MB / 0.9512 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.001477/0.6203, allocations: 0.9781 MB / 1.23 GB, free: 7.793 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001314/0.6204, allocations: 35.91 kB / 1.23 GB, free: 7.758 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6204, allocations: 8 kB / 1.23 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.128e-05/0.6205, allocations: 19.92 kB / 1.23 GB, free: 7.73 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.6208, allocations: 35.73 kB / 1.23 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.6238, allocations: 2.886 MB / 1.233 GB, free: 4.73 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.6242, allocations: 0.7831 MB / 1.234 GB, free: 3.922 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.738e-05/0.6243, allocations: 47.09 kB / 1.234 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.6244, allocations: 91.41 kB / 1.234 GB, free: 3.789 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.6245, allocations: 0 / 1.234 GB, free: 3.789 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.058/2.683, allocations: 5.47 MB / 1.239 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/17.39, allocations: 3.938 kB / 1.239 GB, free: 14.49 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)