Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_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.001248/0.001248, allocations: 108 kB / 15.61 MB, free: 152 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.001172/0.001172, allocations: 196 kB / 16.53 MB, free: 6.699 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.459/2.459, allocations: 469.8 MB / 0.7424 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 64.59 kB / 0.9087 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2374, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002937/0.2404, allocations: 1.782 MB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.2417, allocations: 0.9123 MB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.326e-05/0.2418, allocations: 7.938 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004462/0.2423, allocations: 187.5 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003433/0.2426, allocations: 152 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004057/0.243, allocations: 211.7 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.2433, allocations: 235.5 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.2435, allocations: 65.91 kB / 1.068 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.2436, allocations: 95.67 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.2438, allocations: 159.4 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.2439, allocations: 20 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.068e-05/0.244, allocations: 43.98 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.2441, allocations: 87.75 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2442, allocations: 119.2 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.2445, allocations: 354.8 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2445, allocations: 0 / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2445, allocations: 0 / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.2446, allocations: 4 kB / 1.068 GB, free: 9.762 MB / 0.8262 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.0007528/0.2453, allocations: 0.5991 MB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.2453, allocations: 8.031 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.2454, allocations: 42.73 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.2e-05/0.2454, allocations: 28.56 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005014/0.246, allocations: 414.3 kB / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.246, allocations: 4.375 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.246, allocations: 7.938 kB / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001518/0.2462, allocations: 81.59 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2462, allocations: 4 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.2462, allocations: 3.984 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.2462, allocations: 0 / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.2463, allocations: 47.97 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000545/0.2469, allocations: 480.4 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.247, allocations: 50.55 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.984e-05/0.2471, allocations: 16.92 kB / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.2471, allocations: 7.984 kB / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.2471, allocations: 38.5 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.2471, allocations: 0 / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002662/0.2474, allocations: 101.2 kB / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.2474, allocations: 51.41 kB / 1.07 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005982/0.248, allocations: 0.5601 MB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.2481, allocations: 25.7 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.2482, allocations: 175.9 kB / 1.071 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.2482, allocations: 15.83 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.2483, allocations: 13.72 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.2484, allocations: 342.8 kB / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.703e-05/0.2485, allocations: 16 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.857e-05/0.2485, allocations: 15.98 kB / 1.071 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.638e-05/0.2486, allocations: 36.78 kB / 1.071 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2486, allocations: 0 / 1.071 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001568/0.2488, allocations: 85.3 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.2488, allocations: 4 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.2488, allocations: 0 / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2488, allocations: 7.875 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.484e-05/0.2489, allocations: 15.98 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.2489, allocations: 0 / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.065e-05/0.249, allocations: 8 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-06/0.249, allocations: 0 / 1.072 GB, free: 6.266 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.0001406/0.2491, allocations: 173.8 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.619e-05/0.2492, allocations: 31.62 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.2494, allocations: 112.4 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.2494, allocations: 4 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2494, allocations: 0 / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2494, allocations: 0 / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.2497, allocations: 281.5 kB / 1.072 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2497, allocations: 3.984 kB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.2497, allocations: 12 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2498, allocations: 0 / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.2498, allocations: 4.047 kB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2498, allocations: 3.938 kB / 1.072 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2498, allocations: 0 / 1.072 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.25, allocations: 191.1 kB / 1.072 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.634e-05/0.2501, allocations: 116.7 kB / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.2501, allocations: 3.938 kB / 1.072 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.522e-05/0.2502, allocations: 4 kB / 1.072 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.2502, allocations: 3.984 kB / 1.072 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.2502, allocations: 0 / 1.072 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004265/0.2507, allocations: 419.1 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2507, allocations: 4 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002342/0.2509, allocations: 20 kB / 1.073 GB, free: 4.801 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.001486/0.2524, allocations: 0.9744 MB / 1.074 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.2526, allocations: 43.91 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.2526, allocations: 0 / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.761e-05/0.2526, allocations: 15.98 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.253, allocations: 37.55 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.2561, allocations: 2.892 MB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.2565, allocations: 0.7947 MB / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.824e-05/0.2566, allocations: 50.91 kB / 1.078 GB, free: 0 / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.2567, allocations: 83.48 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.2568, allocations: 0 / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.466/1.723, allocations: 5.365 MB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.451/10.17, allocations: 16.55 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)