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.324/1.324, allocations: 252 MB / 267.3 MB, free: 10.86 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.0009947/0.0009947, allocations: 180.8 kB / 327 MB, free: 2.129 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.44/1.44, allocations: 205.4 MB / 0.578 GB, free: 20.14 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.0008085/0.0008085, allocations: 86.36 kB / 0.6826 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003014, allocations: 11.97 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1691, allocations: 106.3 MB / 0.9009 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001709/0.1708, allocations: 1.487 MB / 0.9024 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001056/0.1719, allocations: 0.8429 MB / 0.9032 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.172, allocations: 4 kB / 0.9032 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0004238/0.1725, allocations: 178.7 kB / 0.9034 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000331/0.1728, allocations: 139.6 kB / 0.9035 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.1732, allocations: 180.2 kB / 0.9037 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002334/0.1734, allocations: 223.4 kB / 0.9039 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.1735, allocations: 41.67 kB / 0.9039 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.1737, allocations: 83.61 kB / 0.904 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.1738, allocations: 123.6 kB / 0.9041 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.274e-05/0.1739, allocations: 11.94 kB / 0.9041 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.86e-05/0.174, allocations: 31.98 kB / 0.9042 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.556e-05/0.1741, allocations: 71.69 kB / 0.9042 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.565e-05/0.1741, allocations: 125 kB / 0.9044 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.1744, allocations: 339 kB / 0.9047 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1744, allocations: 0 / 0.9047 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1744, allocations: 7.938 kB / 0.9047 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.1744, allocations: 0 / 0.9047 GB, free: 59.55 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.0005782/0.175, allocations: 0.5489 MB / 0.9052 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1751, allocations: 8.031 kB / 0.9052 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.169e-05/0.1751, allocations: 34.75 kB / 0.9053 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.143e-05/0.1752, allocations: 36.5 kB / 0.9053 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.1756, allocations: 418.2 kB / 0.9057 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.1756, allocations: 12.3 kB / 0.9057 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.1756, allocations: 11.94 kB / 0.9057 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.1758, allocations: 85.55 kB / 0.9058 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-06/0.1758, allocations: 0 / 0.9058 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.1758, allocations: 4 kB / 0.9058 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1758, allocations: 0 / 0.9058 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.1759, allocations: 51.91 kB / 0.9059 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004678/0.1764, allocations: 484.5 kB / 0.9063 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.1765, allocations: 50.5 kB / 0.9064 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.72e-05/0.1766, allocations: 20.91 kB / 0.9064 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.1766, allocations: 4 kB / 0.9064 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.466e-05/0.1766, allocations: 34.56 kB / 0.9064 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1766, allocations: 0 / 0.9064 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0002534/0.1769, allocations: 109.2 kB / 0.9065 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.957e-05/0.1769, allocations: 55.34 kB / 0.9066 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004544/0.1774, allocations: 0.5485 MB / 0.9071 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.564e-06/0.1774, allocations: 25.7 kB / 0.9071 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.065e-05/0.1775, allocations: 183.8 kB / 0.9073 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.1775, allocations: 7.906 kB / 0.9073 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.1775, allocations: 0 / 0.9073 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.519e-05/0.1776, allocations: 346.8 kB / 0.9077 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.46e-05/0.1776, allocations: 12 kB / 0.9077 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.587e-05/0.1776, allocations: 19.98 kB / 0.9077 GB, free: 56.26 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.907e-05/0.1777, allocations: 36.84 kB / 0.9077 GB, free: 56.22 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1777, allocations: 0 / 0.9077 GB, free: 56.22 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001406/0.1779, allocations: 93.34 kB / 0.9078 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1779, allocations: 11.94 kB / 0.9078 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1779, allocations: 0 / 0.9078 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.1779, allocations: 4.266 kB / 0.9078 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.968e-05/0.178, allocations: 11.98 kB / 0.9078 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.85e-06/0.178, allocations: 4 kB / 0.9078 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.296e-05/0.1781, allocations: 0 / 0.9078 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.1781, allocations: 8 kB / 0.9079 GB, free: 56.08 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.1782, allocations: 177.8 kB / 0.908 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.389e-05/0.1783, allocations: 35.61 kB / 0.9081 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.1785, allocations: 108.1 kB / 0.9082 GB, free: 55.75 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1785, allocations: 4 kB / 0.9082 GB, free: 55.74 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1785, allocations: 0 / 0.9082 GB, free: 55.74 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1785, allocations: 3.938 kB / 0.9082 GB, free: 55.74 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.1787, allocations: 289.5 kB / 0.9084 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1787, allocations: 0 / 0.9084 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.817e-05/0.1787, allocations: 8 kB / 0.9085 GB, free: 55.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1788, allocations: 3.938 kB / 0.9085 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.1788, allocations: 3.938 kB / 0.9085 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1788, allocations: 0 / 0.9085 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1788, allocations: 7.984 kB / 0.9085 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001513/0.1789, allocations: 187.2 kB / 0.9086 GB, free: 55.18 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.575e-05/0.179, allocations: 116.7 kB / 0.9088 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.1791, allocations: 15.94 kB / 0.9088 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.693e-05/0.1791, allocations: 0 / 0.9088 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.1792, allocations: 7.984 kB / 0.9088 GB, free: 55.03 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.1792, allocations: 0 / 0.9088 GB, free: 55.03 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000322/0.1795, allocations: 419.1 kB / 0.9092 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5.71e-07/0.1795, allocations: 4 kB / 0.9092 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002395/0.1798, allocations: 23.94 kB / 0.9092 GB, free: 54.59 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 (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.0009/0.1807, allocations: 0.9642 MB / 0.9101 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001285/0.1808, allocations: 39.91 kB / 0.9102 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1808, allocations: 4 kB / 0.9102 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.676e-05/0.1809, allocations: 20.03 kB / 0.9102 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.1812, allocations: 49.45 kB / 0.9103 GB, free: 53.62 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.1839, allocations: 2.956 MB / 0.9131 GB, free: 50.59 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.1841, allocations: 0.7872 MB / 0.9139 GB, free: 49.78 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001024/0.1842, allocations: 42.88 kB / 0.914 GB, free: 49.74 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.1844, allocations: 95.33 kB / 0.914 GB, free: 49.64 MB / 0.6042 GB Notification: Performance of SimCode: time 3.31e-07/0.1844, allocations: 0 / 0.914 GB, free: 49.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01368/0.198, allocations: 4.942 MB / 0.9189 GB, free: 44.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.1982, allocations: 297.7 kB / 0.9192 GB, free: 44.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.153, allocations: 0 / 0.9192 GB, free: 44.5 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)