Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_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.001049/0.001049, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009968/0.0009968, allocations: 192.4 kB / 16.25 MB, free: 6.637 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.2/1.2, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.372/2.372, allocations: 461.9 MB / 0.7344 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 62.42 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.4221, allocations: 157.4 MB / 1.052 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.005568/0.4277, allocations: 1.837 MB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002794/0.4306, allocations: 0.9083 MB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.4308, allocations: 4 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008493/0.4316, allocations: 174.9 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000624/0.4323, allocations: 151.6 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000878/0.4332, allocations: 198.9 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005428/0.4337, allocations: 231.5 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.434, allocations: 57.92 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003243/0.4343, allocations: 103.6 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003782/0.4347, allocations: 151.5 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.28e-05/0.4348, allocations: 20 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.4351, allocations: 51.98 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.4353, allocations: 79.75 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.4355, allocations: 127.1 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006699/0.4362, allocations: 346.8 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4362, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.715e-06/0.4362, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.612e-05/0.4363, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 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.001554/0.4378, allocations: 0.6069 MB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.4379, allocations: 8.625 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.742e-05/0.438, allocations: 38.75 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.4381, allocations: 32.55 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009808/0.4391, allocations: 410.3 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.4391, allocations: 4.375 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.4392, allocations: 11.94 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.4395, allocations: 73.59 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.4395, allocations: 4 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.4396, allocations: 8 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.4396, allocations: 4 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002808/0.4399, allocations: 43.97 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.4409, allocations: 488.4 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.4411, allocations: 46.56 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.4412, allocations: 20.91 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.4413, allocations: 4 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.4413, allocations: 30.56 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.375e-06/0.4414, allocations: 0 / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0006008/0.442, allocations: 105.2 kB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.442, allocations: 59.41 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.4433, allocations: 0.5562 MB / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.4433, allocations: 25.7 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.4435, allocations: 172 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.4436, allocations: 15.73 kB / 1.059 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.194e-05/0.4437, allocations: 13.72 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002026/0.4439, allocations: 342.8 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.922e-05/0.444, allocations: 15.98 kB / 1.06 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.726e-05/0.4441, allocations: 15.98 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.4443, allocations: 36.78 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4443, allocations: 0 / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003976/0.4447, allocations: 89.3 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.4448, allocations: 4 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.4448, allocations: 0 / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.4448, allocations: 3.938 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.445, allocations: 12 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.445, allocations: 0 / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.4451, allocations: 7.984 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.4452, allocations: 3.938 kB / 1.06 GB, free: 0.6758 MB / 0.8106 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.0002848/0.4455, allocations: 173.8 kB / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.4456, allocations: 31.95 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004099/0.446, allocations: 112 kB / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.446, allocations: 0 / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4461, allocations: 4 kB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4461, allocations: 0 / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005647/0.4467, allocations: 285.5 kB / 1.06 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.4467, allocations: 0 / 1.06 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.838e-05/0.4468, allocations: 11.98 kB / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.553e-05/0.4469, allocations: 112 / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.4469, allocations: 4.062 kB / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.4469, allocations: 7.922 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4469, allocations: 0 / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004132/0.4473, allocations: 195.1 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.4475, allocations: 112.7 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.021e-05/0.4476, allocations: 3.938 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.4478, allocations: 4 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.7e-05/0.4479, allocations: 7.984 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.4479, allocations: 0 / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0009864/0.4489, allocations: 419.1 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.72e-07/0.4489, allocations: 0 / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005382/0.4495, allocations: 28 kB / 1.061 GB, free: 15.2 MB / 0.8262 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.002255/0.4518, allocations: 0.9667 MB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002805/0.4521, allocations: 35.84 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4521, allocations: 4 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.4522, allocations: 12 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008344/0.4531, allocations: 54.09 kB / 1.062 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007255/0.4603, allocations: 2.942 MB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006716/0.4611, allocations: 0.7947 MB / 1.066 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002373/0.4613, allocations: 38.94 kB / 1.066 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.4616, allocations: 91.39 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of SimCode: time 1.002e-06/0.4616, allocations: 0 / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3303/0.792, allocations: 5.269 MB / 1.071 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003654/0.7924, allocations: 290.3 kB / 1.071 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.545, allocations: 0.7812 kB / 1.071 GB, free: 4.828 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)