Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_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.001264/0.001264, 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.001371/0.001371, 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.341/2.341, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.89 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6434/0.6447, allocations: 140.4 MB / 0.9497 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002596/0.6473, allocations: 1.767 MB / 0.9514 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.6484, allocations: 0.9174 MB / 0.9523 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.988e-05/0.6485, allocations: 1.25 kB / 0.9523 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004392/0.6489, allocations: 176.5 kB / 0.9525 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.6493, allocations: 175.4 kB / 0.9527 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003624/0.6496, allocations: 212.1 kB / 0.9529 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002265/0.6499, allocations: 241 kB / 0.9531 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.65, allocations: 58.95 kB / 0.9532 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.6501, allocations: 102.4 kB / 0.9533 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.6503, allocations: 152 kB / 0.9534 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.31e-05/0.6504, allocations: 22.34 kB / 0.9534 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.6505, allocations: 51.25 kB / 0.9535 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.404e-05/0.6506, allocations: 93.06 kB / 0.9536 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.49e-05/0.6507, allocations: 107.7 kB / 0.9537 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.6509, allocations: 351.9 kB / 0.954 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.651, allocations: 0 / 0.954 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.263e-06/0.651, allocations: 0 / 0.954 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.651, allocations: 1 kB / 0.954 GB, free: 5.973 MB / 0.7169 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.0006207/0.6516, allocations: 0.6063 MB / 0.9546 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.6516, allocations: 9.406 kB / 0.9546 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.498e-05/0.6517, allocations: 37.22 kB / 0.9546 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.251e-05/0.6517, allocations: 34.47 kB / 0.9547 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.6521, allocations: 414.3 kB / 0.9551 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.803e-06/0.6521, allocations: 6.844 kB / 0.9551 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.6522, allocations: 8.219 kB / 0.9551 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.6523, allocations: 83 kB / 0.9552 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.6523, allocations: 1.219 kB / 0.9552 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.6523, allocations: 0 / 0.9552 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.6524, allocations: 1.188 kB / 0.9552 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.6525, allocations: 44.41 kB / 0.9552 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004357/0.6529, allocations: 487.4 kB / 0.9557 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.653, allocations: 44.03 kB / 0.9557 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.476e-05/0.6531, allocations: 24.41 kB / 0.9557 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.6531, allocations: 7.938 kB / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.909e-06/0.6531, allocations: 30.56 kB / 0.9558 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.6531, allocations: 0 / 0.9558 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002445/0.6534, allocations: 111.5 kB / 0.9559 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.797e-05/0.6534, allocations: 51.41 kB / 0.9559 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005001/0.6539, allocations: 0.5493 MB / 0.9565 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.614e-06/0.6539, allocations: 25.7 kB / 0.9565 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/0.654, allocations: 183.2 kB / 0.9567 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.654, allocations: 5.25 kB / 0.9567 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.6541, allocations: 16.47 kB / 0.9567 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.448e-05/0.6541, allocations: 344.9 kB / 0.957 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.536e-05/0.6542, allocations: 11.69 kB / 0.957 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.601e-05/0.6542, allocations: 10.94 kB / 0.957 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.188e-05/0.6543, allocations: 37.97 kB / 0.9571 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.6543, allocations: 4 kB / 0.9571 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001426/0.6545, allocations: 91.98 kB / 0.9572 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.6545, allocations: 5.625 kB / 0.9572 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.6545, allocations: 0 / 0.9572 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.6545, allocations: 4.969 kB / 0.9572 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.914e-05/0.6546, allocations: 9.609 kB / 0.9572 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.6546, allocations: 0 / 0.9572 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.389e-05/0.6547, allocations: 2.25 kB / 0.9572 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.6547, allocations: 1.156 kB / 0.9572 GB, free: 3.273 MB / 0.7169 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.0001142/0.6549, allocations: 188.4 kB / 0.9574 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.261e-05/0.6549, allocations: 28.75 kB / 0.9574 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.6551, allocations: 107.4 kB / 0.9575 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.6551, allocations: 1.594 kB / 0.9575 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.6551, allocations: 4 kB / 0.9575 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.6551, allocations: 0 / 0.9575 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.6553, allocations: 283.6 kB / 0.9578 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.6553, allocations: 0 / 0.9578 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.6554, allocations: 10.75 kB / 0.9578 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6554, allocations: 0 / 0.9578 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.6554, allocations: 7.938 kB / 0.9578 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.6554, allocations: 1.094 kB / 0.9578 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.6554, allocations: 3.984 kB / 0.9578 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.6556, allocations: 183.7 kB / 0.958 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.6557, allocations: 110.6 kB / 0.9581 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.6557, allocations: 9.25 kB / 0.9581 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.887e-05/0.6558, allocations: 9.453 kB / 0.9581 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.011e-05/0.6558, allocations: 1.531 kB / 0.9581 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-06/0.6558, allocations: 1.375 kB / 0.9581 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003719/0.6562, allocations: 421.1 kB / 0.9585 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6562, allocations: 0 / 0.9585 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002574/0.6565, allocations: 29.89 kB / 0.9585 GB, free: 2.195 MB / 0.7169 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.0009649/0.6574, allocations: 0.9673 MB / 0.9595 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001535/0.6576, allocations: 43.67 kB / 0.9595 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6576, allocations: 0 / 0.9595 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.068e-05/0.6577, allocations: 14.02 kB / 0.9595 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.6581, allocations: 44.41 kB / 0.9596 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.661, allocations: 2.895 MB / 0.9624 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.6614, allocations: 0.7793 MB / 0.9632 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001126/0.6615, allocations: 55.94 kB / 0.9632 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.6617, allocations: 89.31 kB / 0.9633 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.6617, allocations: 0 / 0.9633 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.6859, allocations: 5.368 MB / 0.9685 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.974/7.66, allocations: 1.875 kB / 0.9685 GB, free: 11.92 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)