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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00111/0.00111, 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.00114/0.00114, allocations: 191 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.318/1.318, allocations: 222.9 MB / 239.9 MB, free: 4.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437 MB / 0.7101 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 55.91 kB / 0.8689 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.652/0.6533, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003194/0.6566, allocations: 1.834 MB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.6578, allocations: 0.9084 MB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.606e-05/0.6579, allocations: 7.938 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004897/0.6584, allocations: 173.8 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003321/0.6587, allocations: 149 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.6591, allocations: 199.5 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.6594, allocations: 235.5 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.6595, allocations: 55.92 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.6597, allocations: 107.6 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.6598, allocations: 151.5 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.6599, allocations: 16 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.415e-05/0.66, allocations: 47.97 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.56e-05/0.6601, allocations: 87.75 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.589e-05/0.6602, allocations: 119.2 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.6605, allocations: 346.8 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.6605, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6605, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.6605, allocations: 0 / 1.021 GB, free: 14.31 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.0007132/0.6612, allocations: 0.6069 MB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.6612, allocations: 8.031 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.396e-05/0.6613, allocations: 34.75 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.487e-05/0.6613, allocations: 40.55 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004604/0.6618, allocations: 418.2 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.6618, allocations: 384 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.522e-05/0.6619, allocations: 11.94 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.662, allocations: 77.59 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.662, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.6621, allocations: 4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.6621, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.6622, allocations: 43.97 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005272/0.6627, allocations: 488.5 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.6629, allocations: 46.56 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.166e-05/0.6629, allocations: 20.91 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.6629, allocations: 8.109 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.663, allocations: 34.5 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 2.945e-06/0.663, allocations: 0 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002618/0.6632, allocations: 105.2 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.6633, allocations: 51.41 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00055/0.6638, allocations: 0.5524 MB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.6639, allocations: 25.7 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.664, allocations: 179.9 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.664, allocations: 11.81 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.664, allocations: 17.66 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.6642, allocations: 342.8 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.7e-05/0.6642, allocations: 12 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.244e-05/0.6643, allocations: 15.98 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.744e-05/0.6644, allocations: 36.78 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.6644, allocations: 4 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001513/0.6645, allocations: 89.58 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.6645, allocations: 4 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.6646, allocations: 4 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.6646, allocations: 7.969 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.082e-05/0.6646, allocations: 7.984 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.6647, allocations: 0 / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.209e-05/0.6647, allocations: 4 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.6647, allocations: 0 / 1.024 GB, free: 10.81 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.0001326/0.6649, allocations: 185.8 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.372e-05/0.6649, allocations: 27.62 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.6651, allocations: 108.1 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.6651, allocations: 0 / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.6652, allocations: 0 / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.6652, allocations: 0 / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002498/0.6654, allocations: 289.5 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.6654, allocations: 0 / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.772e-05/0.6655, allocations: 4 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.6655, allocations: 4 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.086e-06/0.6655, allocations: 3.938 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.6655, allocations: 4 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6655, allocations: 3.984 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.6657, allocations: 183.1 kB / 1.025 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.027e-05/0.6658, allocations: 116.7 kB / 1.025 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.6658, allocations: 7.938 kB / 1.025 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.979e-05/0.6659, allocations: 7.984 kB / 1.025 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.532e-05/0.666, allocations: 0 / 1.025 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.666, allocations: 8 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003955/0.6664, allocations: 415.1 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6664, allocations: 0 / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002577/0.6666, allocations: 35.89 kB / 1.026 GB, free: 9.328 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.001099/0.6678, allocations: 0.9682 MB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001439/0.6679, allocations: 43.91 kB / 1.027 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6679, allocations: 0 / 1.027 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.281e-05/0.668, allocations: 15.98 kB / 1.027 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.6684, allocations: 39.08 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.6716, allocations: 2.949 MB / 1.03 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.672, allocations: 0.7869 MB / 1.03 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001064/0.6721, allocations: 46.92 kB / 1.03 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.6722, allocations: 83.41 kB / 1.031 GB, free: 4.406 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.6722, allocations: 4 kB / 1.031 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0156/0.6878, allocations: 5.266 MB / 1.036 GB, free: 15.32 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/0.6881, allocations: 280.1 kB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.494, allocations: 0 / 1.036 GB, free: 14.95 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)