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.264/1.264, allocations: 251.5 MB / 266.7 MB, free: 11.04 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.0008406/0.0008402, allocations: 178.1 kB / 325.9 MB, free: 2.68 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.214/1.214, allocations: 205 MB / 0.576 GB, free: 20.98 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.0006454/0.0006454, allocations: 83.08 kB / 0.6797 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002543/0.0002544, allocations: 12.34 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1307, allocations: 105.4 MB / 0.8962 GB, free: 68.07 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001447/0.1322, allocations: 1.504 MB / 0.8977 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008793/0.1331, allocations: 0.8739 MB / 0.8985 GB, free: 65.67 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.453e-05/0.1332, allocations: 0 / 0.8985 GB, free: 65.67 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003642/0.1335, allocations: 166.6 kB / 0.8987 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.1338, allocations: 159.5 kB / 0.8988 GB, free: 65.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.1341, allocations: 167.9 kB / 0.899 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.1342, allocations: 223.4 kB / 0.8992 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.816e-05/0.1343, allocations: 53.64 kB / 0.8993 GB, free: 64.92 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.24e-05/0.1344, allocations: 79.73 kB / 0.8993 GB, free: 64.84 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.1346, allocations: 127.5 kB / 0.8995 GB, free: 64.72 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.1346, allocations: 8 kB / 0.8995 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.301e-05/0.1347, allocations: 31.97 kB / 0.8995 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.17e-05/0.1347, allocations: 71.75 kB / 0.8996 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.374e-05/0.1348, allocations: 99.22 kB / 0.8997 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.135, allocations: 338.7 kB / 0.9 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.135, allocations: 0 / 0.9 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.032e-06/0.135, allocations: 0 / 0.9 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.135, allocations: 0 / 0.9 GB, free: 64.18 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.0004635/0.1355, allocations: 0.5566 MB / 0.9005 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.741e-05/0.1355, allocations: 8.031 kB / 0.9005 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.298e-05/0.1355, allocations: 38.75 kB / 0.9006 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.852e-05/0.1356, allocations: 28.56 kB / 0.9006 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.1359, allocations: 418.2 kB / 0.901 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.935e-06/0.1359, allocations: 4.375 kB / 0.901 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.1359, allocations: 7.938 kB / 0.901 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.1361, allocations: 81.66 kB / 0.9011 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.1361, allocations: 0 / 0.9011 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.1361, allocations: 0 / 0.9011 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.1361, allocations: 3.938 kB / 0.9011 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.822e-05/0.1362, allocations: 55.95 kB / 0.9012 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003682/0.1366, allocations: 488.4 kB / 0.9016 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 9.481e-05/0.1367, allocations: 46.56 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.17e-05/0.1367, allocations: 24.84 kB / 0.9017 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.1368, allocations: 4 kB / 0.9017 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.012e-05/0.1368, allocations: 34.56 kB / 0.9017 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1368, allocations: 0 / 0.9017 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0002081/0.137, allocations: 113.2 kB / 0.9018 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.482e-05/0.137, allocations: 51.41 kB / 0.9019 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000389/0.1374, allocations: 0.5446 MB / 0.9024 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.822e-06/0.1374, allocations: 33.7 kB / 0.9024 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/0.1375, allocations: 183.8 kB / 0.9026 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.1375, allocations: 7.906 kB / 0.9026 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.701e-05/0.1375, allocations: 13.72 kB / 0.9026 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.593e-05/0.1376, allocations: 342.8 kB / 0.903 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.063e-05/0.1376, allocations: 19.94 kB / 0.903 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.219e-05/0.1377, allocations: 11.98 kB / 0.903 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.079e-05/0.1378, allocations: 40.84 kB / 0.903 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1378, allocations: 0 / 0.903 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000119/0.1379, allocations: 93.3 kB / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.1379, allocations: 4 kB / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.1379, allocations: 0 / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.326e-06/0.1379, allocations: 3.938 kB / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.75e-05/0.138, allocations: 11.98 kB / 0.9031 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.138, allocations: 7.938 kB / 0.9032 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.31e-05/0.1381, allocations: 4 kB / 0.9032 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.1381, allocations: 0 / 0.9032 GB, free: 60.7 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 8.848e-05/0.1382, allocations: 185.9 kB / 0.9033 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.952e-05/0.1382, allocations: 31.56 kB / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/0.1384, allocations: 108.1 kB / 0.9035 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1384, allocations: 4.375 kB / 0.9035 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1384, allocations: 0 / 0.9035 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.1384, allocations: 0 / 0.9035 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.1386, allocations: 285.5 kB / 0.9037 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1386, allocations: 3.984 kB / 0.9037 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.057e-05/0.1386, allocations: 4 kB / 0.9038 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1386, allocations: 4 kB / 0.9038 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.1386, allocations: 7.938 kB / 0.9038 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1386, allocations: 3.938 kB / 0.9038 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1386, allocations: 3.984 kB / 0.9038 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.1388, allocations: 187.2 kB / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.1388, allocations: 112.7 kB / 0.9041 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.1389, allocations: 7.938 kB / 0.9041 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.741e-05/0.1389, allocations: 3.984 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.386e-05/0.139, allocations: 4 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.139, allocations: 4 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002831/0.1393, allocations: 419.1 kB / 0.9045 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1393, allocations: 0 / 0.9045 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002066/0.1395, allocations: 31.92 kB / 0.9045 GB, free: 59.21 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.000779/0.1403, allocations: 0.9709 MB / 0.9055 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001094/0.1404, allocations: 39.92 kB / 0.9055 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1404, allocations: 0 / 0.9055 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.255e-05/0.1405, allocations: 19.98 kB / 0.9055 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.1408, allocations: 40.39 kB / 0.9056 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.1431, allocations: 2.956 MB / 0.9084 GB, free: 55.22 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000151/0.1433, allocations: 0.7873 MB / 0.9092 GB, free: 54.41 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.867e-05/0.1433, allocations: 46.91 kB / 0.9093 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.1434, allocations: 87.41 kB / 0.9093 GB, free: 54.28 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.1434, allocations: 0 / 0.9093 GB, free: 54.28 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4608/0.6042, allocations: 4.947 MB / 0.9142 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001888/0.6044, allocations: 297.8 kB / 0.9144 GB, free: 49.12 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.996/2.6, allocations: 0 / 0.9144 GB, free: 49.12 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)