Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.567/1.567, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001405/0.001405, allocations: 185.4 kB / 326.5 MB, free: 2.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, allocations: 205.4 MB / 0.5775 GB, free: 20.3 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008881/0.0008881, allocations: 89.58 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.0003623, allocations: 10.16 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2075, allocations: 106.3 MB / 0.9002 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002289/0.2099, allocations: 1.457 MB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.2113, allocations: 0.7848 MB / 0.9023 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2115, allocations: 7.938 kB / 0.9024 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0006355/0.2121, allocations: 161 kB / 0.9025 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000355/0.2125, allocations: 131.6 kB / 0.9026 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.2129, allocations: 156.5 kB / 0.9028 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.2131, allocations: 139.8 kB / 0.9029 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.2133, allocations: 41.84 kB / 0.903 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.2134, allocations: 75.67 kB / 0.903 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.2136, allocations: 127.6 kB / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.2136, allocations: 8 kB / 0.9032 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.991e-05/0.2137, allocations: 23.94 kB / 0.9032 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.2138, allocations: 75.72 kB / 0.9032 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.636e-05/0.2139, allocations: 65.58 kB / 0.9033 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.2141, allocations: 291.5 kB / 0.9036 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.2141, allocations: 3.938 kB / 0.9036 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.355e-06/0.2141, allocations: 0 / 0.9036 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.2142, allocations: 0 / 0.9036 GB, free: 60.27 MB / 0.6042 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.0007084/0.2149, allocations: 0.5525 MB / 0.9041 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.2149, allocations: 8.031 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.889e-05/0.215, allocations: 42.55 kB / 0.9042 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/0.215, allocations: 31.58 kB / 0.9042 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.2155, allocations: 413.1 kB / 0.9046 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.2155, allocations: 4 kB / 0.9046 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.2156, allocations: 8 kB / 0.9046 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/0.2157, allocations: 69.67 kB / 0.9047 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.2157, allocations: 0 / 0.9047 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.2157, allocations: 7.984 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2158, allocations: 0 / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.2159, allocations: 55.92 kB / 0.9047 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005414/0.2164, allocations: 484.4 kB / 0.9052 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.2166, allocations: 54.48 kB / 0.9053 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.2166, allocations: 4 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.2166, allocations: 34.56 kB / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2166, allocations: 0 / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0002934/0.2169, allocations: 105.5 kB / 0.9054 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.217, allocations: 51.41 kB / 0.9054 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005149/0.2175, allocations: 0.5523 MB / 0.906 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.2175, allocations: 29.7 kB / 0.906 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.2176, allocations: 179.9 kB / 0.9062 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.039e-05/0.2177, allocations: 7.891 kB / 0.9062 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-06/0.2177, allocations: 0 / 0.9062 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.559e-05/0.2178, allocations: 342.8 kB / 0.9065 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.939e-05/0.2178, allocations: 19.92 kB / 0.9065 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.524e-05/0.2179, allocations: 12 kB / 0.9065 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.911e-05/0.2179, allocations: 23.98 kB / 0.9066 GB, free: 57 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2179, allocations: 0 / 0.9066 GB, free: 57 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001355/0.2181, allocations: 89.25 kB / 0.9067 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2181, allocations: 10.81 kB / 0.9067 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2181, allocations: 0 / 0.9067 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.2181, allocations: 0 / 0.9067 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.595e-05/0.2182, allocations: 12 kB / 0.9067 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.636e-05/0.2183, allocations: 7.984 kB / 0.9067 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.2183, allocations: 4 kB / 0.9067 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.2184, allocations: 336 / 0.9067 GB, free: 56.88 MB / 0.6042 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.0001246/0.2185, allocations: 173.8 kB / 0.9069 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.2185, allocations: 39.52 kB / 0.9069 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.2187, allocations: 108.1 kB / 0.907 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2187, allocations: 8 kB / 0.907 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2188, allocations: 0 / 0.907 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2188, allocations: 0 / 0.907 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002202/0.219, allocations: 285.5 kB / 0.9073 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.219, allocations: 0 / 0.9073 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.548e-05/0.2191, allocations: 11.98 kB / 0.9073 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2191, allocations: 4.062 kB / 0.9073 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.2191, allocations: 3.938 kB / 0.9073 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2191, allocations: 0 / 0.9073 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2191, allocations: 4 kB / 0.9073 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001689/0.2193, allocations: 191.1 kB / 0.9075 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.485e-05/0.2194, allocations: 120.7 kB / 0.9076 GB, free: 55.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.254e-05/0.2194, allocations: 11.94 kB / 0.9076 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.354e-05/0.2195, allocations: 0 / 0.9076 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.2195, allocations: 4 kB / 0.9076 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.2196, allocations: 4 kB / 0.9076 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003328/0.2199, allocations: 419.1 kB / 0.908 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2199, allocations: 0 / 0.908 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002442/0.2201, allocations: 23.91 kB / 0.908 GB, free: 55.39 MB / 0.6042 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.0009761/0.2211, allocations: 0.9744 MB / 0.909 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001448/0.2213, allocations: 43.97 kB / 0.909 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2213, allocations: 0 / 0.909 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.913e-05/0.2213, allocations: 15.98 kB / 0.909 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.2217, allocations: 45.67 kB / 0.9091 GB, free: 54.41 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.224, allocations: 1.879 MB / 0.9109 GB, free: 52.49 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.2242, allocations: 0.7911 MB / 0.9117 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.853e-05/0.2243, allocations: 38.94 kB / 0.9117 GB, free: 51.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.2245, allocations: 91.39 kB / 0.9118 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.2245, allocations: 0 / 0.9118 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.2396, allocations: 5.415 MB / 0.9171 GB, free: 46.31 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/0.2398, allocations: 257.7 kB / 0.9174 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.128/2.368, allocations: 0 / 0.9174 GB, free: 45.96 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)