Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.739/1.739, allocations: 292.6 MB / 307.5 MB, free: 5.184 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.00158/0.001581, allocations: 183.5 kB / 377.1 MB, free: 1.539 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.024/2.024, allocations: 205.4 MB / 0.6366 GB, free: 9.586 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 95.92 kB / 0.7509 GB, free: 62.23 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005053/0.0005055, allocations: 8 kB / 0.8749 GB, free: 11.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3714, allocations: 116.3 MB / 0.9884 GB, free: 6.781 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.024/1.395, allocations: 142.1 MB / 1.127 GB, free: 33.32 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/1.396, allocations: 102.7 kB / 1.127 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01461/1.41, allocations: 5.3 MB / 1.133 GB, free: 29.48 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.988e-06/1.41, allocations: 224 / 1.133 GB, free: 29.48 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 6.221e-05/1.41, allocations: 11.94 kB / 1.133 GB, free: 29.47 MB / 0.7292 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.00122/1.412, allocations: 0.5838 MB / 1.133 GB, free: 28.88 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 7.556e-05/1.412, allocations: 8.031 kB / 1.133 GB, free: 28.87 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.751e-05/1.412, allocations: 39.88 kB / 1.133 GB, free: 28.82 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/1.412, allocations: 30.39 kB / 1.133 GB, free: 28.79 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009695/1.413, allocations: 422.2 kB / 1.134 GB, free: 28.39 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/1.413, allocations: 8 kB / 1.134 GB, free: 28.38 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/1.413, allocations: 1.828 kB / 1.134 GB, free: 28.38 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/1.413, allocations: 85.27 kB / 1.134 GB, free: 28.3 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/1.413, allocations: 0.5625 kB / 1.134 GB, free: 28.3 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/1.413, allocations: 5.719 kB / 1.134 GB, free: 28.3 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/1.413, allocations: 0.5156 kB / 1.134 GB, free: 28.3 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/1.414, allocations: 52.12 kB / 1.134 GB, free: 28.25 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/1.415, allocations: 0.496 MB / 1.134 GB, free: 27.78 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/1.415, allocations: 49.23 kB / 1.134 GB, free: 27.73 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.714e-05/1.415, allocations: 5.188 kB / 1.134 GB, free: 27.73 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/1.415, allocations: 35.97 kB / 1.134 GB, free: 27.68 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 3.086e-06/1.415, allocations: 3.938 kB / 1.134 GB, free: 27.68 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.000406/1.415, allocations: 107.1 kB / 1.134 GB, free: 27.58 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/1.415, allocations: 51.41 kB / 1.134 GB, free: 27.52 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008628/1.416, allocations: 0.5067 MB / 1.135 GB, free: 27.05 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/1.416, allocations: 26.27 kB / 1.135 GB, free: 27.02 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/1.416, allocations: 174.8 kB / 1.135 GB, free: 26.86 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/1.416, allocations: 8.5 kB / 1.135 GB, free: 26.85 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/1.416, allocations: 0 / 1.135 GB, free: 26.85 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001405/1.417, allocations: 348.2 kB / 1.135 GB, free: 26.51 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.689e-05/1.417, allocations: 11 kB / 1.135 GB, free: 26.5 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.643e-05/1.417, allocations: 15.66 kB / 1.135 GB, free: 26.49 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.952e-05/1.417, allocations: 18.39 kB / 1.136 GB, free: 26.48 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/1.417, allocations: 4.562 kB / 1.136 GB, free: 26.47 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002388/1.417, allocations: 96.39 kB / 1.136 GB, free: 26.38 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/1.417, allocations: 6.188 kB / 1.136 GB, free: 26.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/1.417, allocations: 0.7812 kB / 1.136 GB, free: 26.38 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/1.417, allocations: 0.5156 kB / 1.136 GB, free: 26.38 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.017e-05/1.417, allocations: 13.83 kB / 1.136 GB, free: 26.36 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/1.417, allocations: 0.9375 kB / 1.136 GB, free: 26.36 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.862e-05/1.417, allocations: 10.16 kB / 1.136 GB, free: 26.36 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/1.417, allocations: 1.125 kB / 1.136 GB, free: 26.36 MB / 0.7292 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.000217/1.418, allocations: 182.6 kB / 1.136 GB, free: 26.18 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/1.418, allocations: 28.19 kB / 1.136 GB, free: 26.15 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/1.418, allocations: 107 kB / 1.136 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/1.418, allocations: 0 / 1.136 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/1.418, allocations: 3.953 kB / 1.136 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/1.418, allocations: 6.453 kB / 1.136 GB, free: 26.04 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004213/1.418, allocations: 304.5 kB / 1.136 GB, free: 25.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/1.418, allocations: 0.7969 kB / 1.136 GB, free: 25.75 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.171e-05/1.418, allocations: 9.5 kB / 1.136 GB, free: 25.74 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/1.418, allocations: 0 / 1.136 GB, free: 25.74 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/1.419, allocations: 0.9844 kB / 1.136 GB, free: 25.74 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/1.419, allocations: 4.938 kB / 1.136 GB, free: 25.74 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/1.419, allocations: 0.6875 kB / 1.136 GB, free: 25.74 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002471/1.419, allocations: 203.1 kB / 1.136 GB, free: 25.53 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/1.419, allocations: 131.4 kB / 1.137 GB, free: 25.39 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/1.419, allocations: 4.516 kB / 1.137 GB, free: 25.39 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.089e-05/1.419, allocations: 1.078 kB / 1.137 GB, free: 25.39 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/1.419, allocations: 5.5 kB / 1.137 GB, free: 25.38 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-06/1.419, allocations: 1.219 kB / 1.137 GB, free: 25.38 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.000527/1.42, allocations: 411.6 kB / 1.137 GB, free: 25.03 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.41e-07/1.42, allocations: 4 kB / 1.137 GB, free: 25.03 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002956/1.42, allocations: 45.58 kB / 1.137 GB, free: 24.98 MB / 0.7292 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.001469/1.421, allocations: 0.9755 MB / 1.138 GB, free: 24.17 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001709/1.422, allocations: 38.64 kB / 1.138 GB, free: 24.14 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.422, allocations: 3.938 kB / 1.138 GB, free: 24.13 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 5.414e-05/1.422, allocations: 18.81 kB / 1.138 GB, free: 24.12 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/1.422, allocations: 39.61 kB / 1.138 GB, free: 24.09 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003117/1.425, allocations: 1.901 MB / 1.14 GB, free: 22.34 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/1.426, allocations: 0.7909 MB / 1.141 GB, free: 21.57 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001633/1.426, allocations: 48 kB / 1.141 GB, free: 21.54 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/1.426, allocations: 88.81 kB / 1.141 GB, free: 21.46 MB / 0.7292 GB Notification: Performance of SimCode: time 4.3e-07/1.426, allocations: 4 kB / 1.141 GB, free: 21.45 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/1.451, allocations: 5.643 MB / 1.146 GB, free: 18.16 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/1.451, allocations: 261.7 kB / 1.147 GB, free: 17.82 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/3.847, allocations: 0 / 1.147 GB, free: 17.82 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)