Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_0_0_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/Buildings 8.0.0/package.mo): time 2.64/2.64, allocations: 287.3 MB / 302.3 MB, free: 8.387 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 183.8 kB / 370.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.112/2.112, allocations: 205.4 MB / 0.6295 GB, free: 10.64 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 92.14 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005311/0.0005314, allocations: 15.23 kB / 0.8657 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2377, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9418/1.18, allocations: 141 MB / 1.116 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/1.18, allocations: 100.1 kB / 1.116 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03046/1.21, allocations: 5.306 MB / 1.121 GB, free: 31.13 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.406e-06/1.211, allocations: 0 / 1.121 GB, free: 31.13 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.662e-05/1.211, allocations: 7.844 kB / 1.121 GB, free: 31.12 MB / 0.698 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.001544/1.212, allocations: 0.5817 MB / 1.122 GB, free: 30.64 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.879e-05/1.212, allocations: 7.719 kB / 1.122 GB, free: 30.64 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.941e-05/1.212, allocations: 38.31 kB / 1.122 GB, free: 30.61 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/1.213, allocations: 35 kB / 1.122 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/1.214, allocations: 424.3 kB / 1.122 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/1.214, allocations: 7.656 kB / 1.122 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/1.214, allocations: 3.875 kB / 1.122 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/1.214, allocations: 75.47 kB / 1.122 GB, free: 30.32 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/1.214, allocations: 0 / 1.122 GB, free: 30.32 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/1.214, allocations: 0 / 1.122 GB, free: 30.32 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/1.214, allocations: 0 / 1.122 GB, free: 30.32 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/1.215, allocations: 63.34 kB / 1.122 GB, free: 30.31 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/1.216, allocations: 0.4886 MB / 1.123 GB, free: 30.03 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/1.216, allocations: 55.34 kB / 1.123 GB, free: 30 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.777e-05/1.217, allocations: 0 / 1.123 GB, free: 30 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/1.217, allocations: 38.73 kB / 1.123 GB, free: 29.96 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 2.916e-06/1.217, allocations: 0 / 1.123 GB, free: 29.96 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0006278/1.217, allocations: 107.5 kB / 1.123 GB, free: 29.91 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/1.217, allocations: 55.41 kB / 1.123 GB, free: 29.84 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/1.219, allocations: 0.5046 MB / 1.124 GB, free: 29.73 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/1.219, allocations: 29.55 kB / 1.124 GB, free: 29.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/1.219, allocations: 173.8 kB / 1.124 GB, free: 29.61 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.846e-05/1.219, allocations: 14.36 kB / 1.124 GB, free: 29.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-06/1.219, allocations: 0 / 1.124 GB, free: 29.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002042/1.219, allocations: 338.3 kB / 1.124 GB, free: 29.29 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/1.219, allocations: 17.2 kB / 1.124 GB, free: 29.29 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/1.22, allocations: 18.83 kB / 1.124 GB, free: 29.29 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/1.22, allocations: 17.48 kB / 1.124 GB, free: 29.29 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/1.22, allocations: 3.938 kB / 1.124 GB, free: 29.28 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004743/1.22, allocations: 91.48 kB / 1.124 GB, free: 29.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/1.22, allocations: 3.844 kB / 1.124 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/1.22, allocations: 0 / 1.124 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/1.22, allocations: 7.953 kB / 1.124 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/1.221, allocations: 10.64 kB / 1.124 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/1.221, allocations: 0 / 1.124 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/1.221, allocations: 7.125 kB / 1.124 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/1.221, allocations: 7.906 kB / 1.124 GB, free: 29.22 MB / 0.698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003791/1.221, allocations: 181 kB / 1.125 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/1.221, allocations: 27.16 kB / 1.125 GB, free: 29.09 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004801/1.222, allocations: 108.2 kB / 1.125 GB, free: 29.05 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/1.222, allocations: 7.891 kB / 1.125 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/1.222, allocations: 3.812 kB / 1.125 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/1.222, allocations: 0 / 1.125 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000572/1.223, allocations: 299.1 kB / 1.125 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/1.223, allocations: 0 / 1.125 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/1.223, allocations: 10.67 kB / 1.125 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/1.223, allocations: 0 / 1.125 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/1.223, allocations: 0 / 1.125 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/1.223, allocations: 4 kB / 1.125 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.223, allocations: 3.953 kB / 1.125 GB, free: 28.84 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/1.223, allocations: 197.1 kB / 1.125 GB, free: 28.69 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/1.224, allocations: 135.2 kB / 1.125 GB, free: 28.58 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.656e-05/1.224, allocations: 0 / 1.125 GB, free: 28.58 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/1.224, allocations: 7.844 kB / 1.125 GB, free: 28.58 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/1.224, allocations: 6.531 kB / 1.125 GB, free: 28.58 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/1.224, allocations: 3.953 kB / 1.125 GB, free: 28.57 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001143/1.225, allocations: 407.9 kB / 1.126 GB, free: 28.49 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.142e-06/1.225, allocations: 0 / 1.126 GB, free: 28.49 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006675/1.226, allocations: 41.56 kB / 1.126 GB, free: 28.48 MB / 0.698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00236/1.228, allocations: 0.9825 MB / 1.127 GB, free: 27.71 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003481/1.229, allocations: 36.16 kB / 1.127 GB, free: 27.71 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.229, allocations: 0 / 1.127 GB, free: 27.71 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/1.229, allocations: 17.62 kB / 1.127 GB, free: 27.71 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007097/1.23, allocations: 50.31 kB / 1.127 GB, free: 27.71 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006082/1.236, allocations: 1.899 MB / 1.129 GB, free: 27.12 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006547/1.236, allocations: 0.7921 MB / 1.129 GB, free: 26.43 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003616/1.237, allocations: 58.95 kB / 1.13 GB, free: 26.41 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/1.237, allocations: 86.2 kB / 1.13 GB, free: 26.4 MB / 0.698 GB Notification: Performance of SimCode: time 2.023e-06/1.237, allocations: 0 / 1.13 GB, free: 26.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/1.276, allocations: 5.641 MB / 1.135 GB, free: 25.29 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003347/1.277, allocations: 255.7 kB / 1.135 GB, free: 24.95 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.563/3.84, allocations: 3.938 kB / 1.135 GB, free: 24.95 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)