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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 196.4 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.734/1.734, allocations: 292.3 MB / 0.5489 GB, free: 12.8 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 73.45 kB / 0.6716 GB, free: 26.07 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2208, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003375/0.2242, allocations: 1.78 MB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001333/0.2255, allocations: 0.8675 MB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.527e-05/0.2256, allocations: 4 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000565/0.2262, allocations: 183.3 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003942/0.2266, allocations: 161.8 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004024/0.227, allocations: 186.4 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003537/0.2274, allocations: 227.5 kB / 0.7868 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.2276, allocations: 61.88 kB / 0.7868 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.2277, allocations: 103.6 kB / 0.7869 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.2279, allocations: 151.5 kB / 0.7871 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.061e-05/0.228, allocations: 16 kB / 0.7871 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.934e-05/0.2281, allocations: 55.91 kB / 0.7872 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.2282, allocations: 83.75 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.2283, allocations: 119.2 kB / 0.7874 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003724/0.2287, allocations: 342.8 kB / 0.7877 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2287, allocations: 7.984 kB / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2287, allocations: 0 / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.2287, allocations: 0 / 0.7877 GB, free: 9.055 MB / 0.6075 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.0007946/0.2295, allocations: 0.6069 MB / 0.7883 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2296, allocations: 8.031 kB / 0.7883 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.701e-05/0.2296, allocations: 38.75 kB / 0.7883 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.75e-05/0.2297, allocations: 32.47 kB / 0.7884 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.2302, allocations: 410.4 kB / 0.7887 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.2302, allocations: 384 / 0.7887 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.2303, allocations: 15.94 kB / 0.7888 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.2304, allocations: 69.67 kB / 0.7888 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2304, allocations: 0 / 0.7888 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.2305, allocations: 7.938 kB / 0.7888 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2305, allocations: 0 / 0.7888 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.2306, allocations: 43.97 kB / 0.7889 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005817/0.2312, allocations: 0.4963 MB / 0.7894 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.2313, allocations: 42.56 kB / 0.7894 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.718e-05/0.2314, allocations: 20.91 kB / 0.7894 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.2314, allocations: 4 kB / 0.7894 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.2315, allocations: 30.56 kB / 0.7895 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.2315, allocations: 4 kB / 0.7895 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002865/0.2318, allocations: 105.2 kB / 0.7896 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.2318, allocations: 55.41 kB / 0.7896 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006093/0.2324, allocations: 0.5485 MB / 0.7902 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.2325, allocations: 29.69 kB / 0.7902 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.2326, allocations: 168 kB / 0.7903 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.2326, allocations: 11.84 kB / 0.7904 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.2327, allocations: 21.7 kB / 0.7904 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2328, allocations: 338.8 kB / 0.7907 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.488e-05/0.2329, allocations: 15.98 kB / 0.7907 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.041e-05/0.2329, allocations: 12 kB / 0.7907 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.61e-05/0.233, allocations: 36.83 kB / 0.7908 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.233, allocations: 0 / 0.7908 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001652/0.2332, allocations: 93.23 kB / 0.7908 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.2332, allocations: 4 kB / 0.7908 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2332, allocations: 8 kB / 0.7909 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.2332, allocations: 3.938 kB / 0.7909 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.015e-05/0.2333, allocations: 4 kB / 0.7909 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2333, allocations: 0 / 0.7909 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.599e-05/0.2334, allocations: 7.984 kB / 0.7909 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.2334, allocations: 4 kB / 0.7909 GB, free: 5.555 MB / 0.6075 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.0001509/0.2336, allocations: 182.4 kB / 0.7911 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.2336, allocations: 27.62 kB / 0.7911 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.054e-05/0.2337, allocations: 42.47 kB / 0.7911 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2337, allocations: 0 / 0.7911 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2337, allocations: 0 / 0.7911 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2337, allocations: 0 / 0.7911 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.234, allocations: 289.5 kB / 0.7914 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.234, allocations: 0 / 0.7914 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.635e-05/0.2341, allocations: 4 kB / 0.7914 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.2341, allocations: 336 / 0.7914 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.2341, allocations: 4.047 kB / 0.7914 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.807e-06/0.2341, allocations: 15.86 kB / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2341, allocations: 0 / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.2343, allocations: 187.1 kB / 0.7916 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.053e-05/0.2344, allocations: 112.7 kB / 0.7917 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.2345, allocations: 11.92 kB / 0.7917 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.524e-05/0.2345, allocations: 0 / 0.7917 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.2346, allocations: 0 / 0.7917 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.2346, allocations: 4 kB / 0.7917 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004236/0.235, allocations: 423.1 kB / 0.7921 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.235, allocations: 0 / 0.7921 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002492/0.2353, allocations: 28 kB / 0.7921 GB, free: 4.152 MB / 0.6075 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.001145/0.2364, allocations: 0.9691 MB / 0.7931 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001687/0.2366, allocations: 35.92 kB / 0.7931 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2366, allocations: 0 / 0.7931 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.912e-05/0.2367, allocations: 19.92 kB / 0.7931 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.2371, allocations: 47.2 kB / 0.7932 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00325/0.2404, allocations: 2.9 MB / 0.796 GB, free: 224 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.2408, allocations: 0.787 MB / 0.7968 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001074/0.2409, allocations: 51.03 kB / 0.7968 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.2411, allocations: 87.39 kB / 0.7969 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of SimCode: time 3.21e-07/0.2411, allocations: 4 kB / 0.7969 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.261, allocations: 5.354 MB / 0.8022 GB, free: 10.06 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.155/7.416, allocations: 13.05 kB / 0.8022 GB, free: 10.06 MB / 0.6231 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-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)