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.001657/0.001657, allocations: 109.4 kB / 15.69 MB, free: 124 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.001756/0.001756, allocations: 188.4 kB / 16.62 MB, free: 6.613 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.456/1.456, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.712/1.712, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001579/0.001579, allocations: 66.11 kB / 0.6718 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2167, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003814/0.2205, allocations: 1.787 MB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001495/0.2221, allocations: 0.8597 MB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.2222, allocations: 4 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005385/0.2228, allocations: 199.5 kB / 0.7864 GB, free: 10.39 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.0004407/0.2233, allocations: 153.9 kB / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.2237, allocations: 186.7 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000307/0.224, allocations: 231.5 kB / 0.787 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.2242, allocations: 53.88 kB / 0.787 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.2244, allocations: 99.59 kB / 0.7871 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.2246, allocations: 159.5 kB / 0.7873 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.532e-05/0.2246, allocations: 20 kB / 0.7873 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.2248, allocations: 47.98 kB / 0.7873 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.2249, allocations: 87.69 kB / 0.7874 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.225, allocations: 115.2 kB / 0.7875 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003923/0.2254, allocations: 350.9 kB / 0.7878 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2254, allocations: 0 / 0.7878 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2254, allocations: 0 / 0.7878 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.2254, allocations: 0 / 0.7878 GB, free: 8.918 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.0008213/0.2263, allocations: 0.603 MB / 0.7884 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.2263, allocations: 16.03 kB / 0.7884 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.433e-05/0.2264, allocations: 34.73 kB / 0.7885 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.131e-05/0.2264, allocations: 36.47 kB / 0.7885 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005082/0.2269, allocations: 410.4 kB / 0.7889 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.227, allocations: 384 / 0.7889 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.227, allocations: 7.938 kB / 0.7889 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.2272, allocations: 81.64 kB / 0.789 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.2272, allocations: 3.938 kB / 0.789 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.2272, allocations: 4 kB / 0.789 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.2272, allocations: 4 kB / 0.789 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.2274, allocations: 51.91 kB / 0.7891 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005752/0.2279, allocations: 484.3 kB / 0.7895 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.2281, allocations: 42.56 kB / 0.7896 GB, free: 7 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.813e-05/0.2282, allocations: 20.86 kB / 0.7896 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.2282, allocations: 11.98 kB / 0.7896 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.2282, allocations: 34.56 kB / 0.7896 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.2282, allocations: 0 / 0.7896 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002918/0.2285, allocations: 101.2 kB / 0.7897 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.2286, allocations: 55.41 kB / 0.7898 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006117/0.2292, allocations: 0.5524 MB / 0.7903 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.2292, allocations: 25.7 kB / 0.7903 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.2294, allocations: 176 kB / 0.7905 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.2294, allocations: 11.84 kB / 0.7905 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.2294, allocations: 13.72 kB / 0.7905 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2296, allocations: 342.8 kB / 0.7909 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.793e-05/0.2296, allocations: 12 kB / 0.7909 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.644e-05/0.2297, allocations: 15.98 kB / 0.7909 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.677e-05/0.2298, allocations: 32.84 kB / 0.7909 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.2298, allocations: 8 kB / 0.7909 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001556/0.23, allocations: 93.23 kB / 0.791 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.23, allocations: 4 kB / 0.791 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.23, allocations: 0 / 0.791 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.23, allocations: 7.938 kB / 0.791 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.646e-05/0.2301, allocations: 7.984 kB / 0.791 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.2301, allocations: 0 / 0.791 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.105e-05/0.2302, allocations: 4 kB / 0.791 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-06/0.2302, allocations: 0 / 0.791 GB, free: 5.418 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.0001626/0.2304, allocations: 181.8 kB / 0.7912 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.332e-05/0.2304, allocations: 27.62 kB / 0.7912 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.47e-05/0.2305, allocations: 42.56 kB / 0.7913 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2305, allocations: 4.266 kB / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2305, allocations: 0 / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2305, allocations: 0 / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.2308, allocations: 285.5 kB / 0.7915 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2308, allocations: 3.984 kB / 0.7916 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.07e-05/0.2309, allocations: 7.984 kB / 0.7916 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2309, allocations: 3.938 kB / 0.7916 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.2309, allocations: 7.938 kB / 0.7916 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2309, allocations: 4 kB / 0.7916 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2309, allocations: 0 / 0.7916 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.2312, allocations: 179.2 kB / 0.7917 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.844e-05/0.2313, allocations: 116.7 kB / 0.7919 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.2313, allocations: 7.938 kB / 0.7919 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.329e-05/0.2314, allocations: 0 / 0.7919 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.2314, allocations: 7.984 kB / 0.7919 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.2315, allocations: 7.938 kB / 0.7919 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004086/0.2319, allocations: 415.1 kB / 0.7923 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2319, allocations: 0 / 0.7923 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002568/0.2321, allocations: 24 kB / 0.7923 GB, free: 4.02 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.00109/0.2332, allocations: 0.9747 MB / 0.7933 GB, free: 3.148 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.2334, allocations: 39.91 kB / 0.7933 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2334, allocations: 7.938 kB / 0.7933 GB, free: 3.102 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.904e-05/0.2335, allocations: 15.94 kB / 0.7933 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.2339, allocations: 48.31 kB / 0.7934 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.2369, allocations: 2.892 MB / 0.7962 GB, free: 80 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.2373, allocations: 0.787 MB / 0.797 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001157/0.2374, allocations: 50.89 kB / 0.797 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.2375, allocations: 83.41 kB / 0.7971 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of SimCode: time 4.31e-07/0.2375, allocations: 0 / 0.7971 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.2584, allocations: 5.375 MB / 0.8023 GB, free: 9.918 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.274/7.533, allocations: 12.12 kB / 0.8023 GB, free: 9.914 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 & /home/hudson/saved_omc/OMSimulator/install/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)