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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009246/0.0009246, allocations: 99.38 kB / 15.37 MB, free: 0.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009979/0.0009979, allocations: 181.9 kB / 16.28 MB, free: 6.656 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.282/1.282, allocations: 223.3 MB / 240.3 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.496/2.496, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002907/0.0002907, allocations: 8.406 kB / 0.9029 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2373, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002041/0.2394, allocations: 1.494 MB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001373/0.2408, allocations: 0.8772 MB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.747e-05/0.2409, allocations: 4 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004716/0.2414, allocations: 176.8 kB / 1.061 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003395/0.2418, allocations: 147 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.2422, allocations: 193.5 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.2425, allocations: 223.4 kB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.2426, allocations: 57.94 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.2428, allocations: 75.67 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.243, allocations: 135.5 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.21e-05/0.243, allocations: 4 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.48e-05/0.2431, allocations: 32 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.789e-05/0.2432, allocations: 75.69 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.2433, allocations: 124.9 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.2436, allocations: 334.7 kB / 1.063 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2436, allocations: 0 / 1.063 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.522e-06/0.2436, allocations: 4 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.2436, allocations: 0 / 1.063 GB, free: 0.918 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.0007054/0.2444, allocations: 0.5565 MB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2444, allocations: 12.03 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.854e-05/0.2444, allocations: 42.67 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.2445, allocations: 36.47 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005192/0.245, allocations: 406.4 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.2451, allocations: 4.375 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.2451, allocations: 7.938 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.2452, allocations: 77.67 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.2453, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.2453, allocations: 4 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.2453, allocations: 3.938 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.2454, allocations: 55.91 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005605/0.246, allocations: 484.4 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.2462, allocations: 54.55 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.428e-05/0.2462, allocations: 16.86 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.2462, allocations: 4 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.2463, allocations: 34.56 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.2463, allocations: 0 / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002838/0.2466, allocations: 109.4 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.2466, allocations: 55.41 kB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006611/0.2473, allocations: 0.5561 MB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.2473, allocations: 33.7 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.2474, allocations: 168 kB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.2475, allocations: 11.83 kB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.498e-05/0.2475, allocations: 13.72 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.2476, allocations: 342.8 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.603e-05/0.2477, allocations: 15.98 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.077e-05/0.2477, allocations: 11.98 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.645e-05/0.2478, allocations: 44.83 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2478, allocations: 4 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001698/0.248, allocations: 93.23 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.248, allocations: 8 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.248, allocations: 0 / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2481, allocations: 3.938 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.85e-05/0.2481, allocations: 12 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.2482, allocations: 0 / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.445e-05/0.2482, allocations: 0 / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-06/0.2482, allocations: 7.984 kB / 1.066 GB, free: 13.43 MB / 0.8262 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.0001439/0.2484, allocations: 177.9 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.221e-05/0.2484, allocations: 35.56 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002135/0.2487, allocations: 108.1 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.2487, allocations: 4 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2487, allocations: 7.875 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2487, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.249, allocations: 281.5 kB / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.249, allocations: 0 / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.349e-05/0.249, allocations: 11.98 kB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.249, allocations: 0 / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.249, allocations: 3.938 kB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2491, allocations: 0 / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2491, allocations: 8 kB / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.2493, allocations: 187.2 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.2494, allocations: 116.7 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.2494, allocations: 11.94 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.574e-05/0.2495, allocations: 3.984 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.843e-05/0.2496, allocations: 8 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-06/0.2496, allocations: 0 / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004278/0.25, allocations: 415.1 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.25, allocations: 3.938 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000259/0.2503, allocations: 35.89 kB / 1.067 GB, free: 11.94 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.001109/0.2514, allocations: 0.9823 MB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001422/0.2515, allocations: 43.91 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2516, allocations: 0 / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.704e-05/0.2516, allocations: 23.92 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.252, allocations: 36.91 kB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003424/0.2554, allocations: 2.949 MB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.2558, allocations: 0.7873 MB / 1.072 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001097/0.2559, allocations: 54.84 kB / 1.072 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.256, allocations: 83.41 kB / 1.072 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.256, allocations: 0 / 1.072 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.695/1.951, allocations: 4.941 MB / 1.077 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002581/1.951, allocations: 291 kB / 1.077 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.466/4.418, allocations: 0 / 1.077 GB, free: 1.883 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)