Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_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.00148/0.00148, allocations: 108 kB / 15.6 MB, free: 132 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.001621/0.001621, allocations: 195.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.47/2.47, allocations: 461.9 MB / 0.7346 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 61.22 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2398, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002897/0.2427, allocations: 1.775 MB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.2439, allocations: 0.9281 MB / 1.056 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.287e-05/0.244, allocations: 4 kB / 1.056 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004268/0.2445, allocations: 178.1 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.2448, allocations: 171.9 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.2452, allocations: 202.3 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002338/0.2454, allocations: 235.5 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.2456, allocations: 57.94 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.2457, allocations: 103.6 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.2459, allocations: 147.5 kB / 1.057 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.2459, allocations: 20 kB / 1.057 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.361e-05/0.246, allocations: 47.98 kB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.772e-05/0.2461, allocations: 95.67 kB / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.951e-05/0.2462, allocations: 111.2 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.2465, allocations: 350.8 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2465, allocations: 0 / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2465, allocations: 0 / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.2465, allocations: 4 kB / 1.057 GB, free: 3.836 MB / 0.8106 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.0006994/0.2472, allocations: 0.5991 MB / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.2473, allocations: 8.031 kB / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.25e-05/0.2473, allocations: 42.73 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.216e-05/0.2474, allocations: 28.56 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.2478, allocations: 414.2 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.2479, allocations: 4.375 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.2479, allocations: 11.94 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.248, allocations: 73.67 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.248, allocations: 0 / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.2481, allocations: 4 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.2481, allocations: 0 / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.2482, allocations: 51.89 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005064/0.2487, allocations: 484.5 kB / 1.059 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.2488, allocations: 54.48 kB / 1.059 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.016e-05/0.2489, allocations: 16.92 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2489, allocations: 0 / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.2489, allocations: 38.55 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.2489, allocations: 0 / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002628/0.2492, allocations: 109.2 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.2492, allocations: 59.28 kB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005585/0.2498, allocations: 0.5562 MB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.2498, allocations: 25.7 kB / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2499, allocations: 168 kB / 1.06 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.25, allocations: 19.73 kB / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.25, allocations: 13.72 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2501, allocations: 342.8 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.924e-05/0.2502, allocations: 15.98 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.19e-05/0.2502, allocations: 15.98 kB / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.831e-05/0.2503, allocations: 32.84 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2503, allocations: 0 / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001636/0.2505, allocations: 93.23 kB / 1.06 GB, free: 372 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.2505, allocations: 4 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-06/0.2505, allocations: 0 / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.2505, allocations: 7.938 kB / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.757e-05/0.2506, allocations: 8 kB / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.2506, allocations: 0 / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.377e-05/0.2507, allocations: 3.984 kB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.2507, allocations: 8 kB / 1.06 GB, free: 340 kB / 0.8106 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.0001361/0.2509, allocations: 178.3 kB / 1.061 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.248e-05/0.2509, allocations: 31.62 kB / 1.061 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.2511, allocations: 104.1 kB / 1.061 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2511, allocations: 4 kB / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.2511, allocations: 0 / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2511, allocations: 0 / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.2514, allocations: 277.6 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2514, allocations: 3.938 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.116e-05/0.2515, allocations: 11.98 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2515, allocations: 0 / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2515, allocations: 7.875 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2515, allocations: 0 / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2515, allocations: 0 / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001938/0.2517, allocations: 191.2 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.942e-05/0.2518, allocations: 112.7 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.2518, allocations: 3.938 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-05/0.2519, allocations: 4.422 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.252, allocations: 7.984 kB / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.252, allocations: 0 / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004081/0.2524, allocations: 419.1 kB / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2524, allocations: 4 kB / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002497/0.2526, allocations: 24 kB / 1.062 GB, free: 14.88 MB / 0.8262 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.001073/0.2537, allocations: 0.9804 MB / 1.063 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001314/0.2539, allocations: 31.91 kB / 1.063 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2539, allocations: 0 / 1.063 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.224e-05/0.2539, allocations: 23.92 kB / 1.063 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.2543, allocations: 39.47 kB / 1.063 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.2573, allocations: 2.894 MB / 1.066 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.2577, allocations: 0.787 MB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001047/0.2578, allocations: 50.86 kB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.2579, allocations: 95.39 kB / 1.066 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.2579, allocations: 0 / 1.066 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2696/0.5276, allocations: 5.384 MB / 1.072 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.348/8.876, allocations: 4.109 kB / 1.072 GB, free: 4.781 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)