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.004448/0.004448, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001146/0.001146, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.244/1.244, allocations: 222.9 MB / 240.4 MB, free: 4.293 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.274/2.274, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 58.5 kB / 0.9504 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2665, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003616/0.2702, allocations: 1.77 MB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2718, allocations: 0.9161 MB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.272, allocations: 4 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000606/0.2726, allocations: 183.6 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004676/0.2731, allocations: 169.7 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005154/0.2736, allocations: 205.6 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.2739, allocations: 247.4 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.2741, allocations: 56.47 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.2743, allocations: 95.73 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.2745, allocations: 163.5 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.672e-05/0.2746, allocations: 16 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.2747, allocations: 40 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.2748, allocations: 99.72 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.2749, allocations: 111.2 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003941/0.2753, allocations: 351.7 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2753, allocations: 0 / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.175e-06/0.2754, allocations: 0 / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.298e-05/0.2754, allocations: 3.938 kB / 1.092 GB, free: 13.59 MB / 0.8575 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.0009005/0.2763, allocations: 0.5971 MB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.2763, allocations: 8.031 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.91e-05/0.2764, allocations: 38.75 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.146e-05/0.2764, allocations: 32.56 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005865/0.277, allocations: 418.2 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.2771, allocations: 4.375 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.2771, allocations: 11.92 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001832/0.2773, allocations: 81.59 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.2773, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.2773, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.2773, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.2775, allocations: 47.97 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006222/0.2781, allocations: 492.4 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001356/0.2782, allocations: 46.5 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.753e-05/0.2783, allocations: 20.91 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.2783, allocations: 0 / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.2784, allocations: 38.56 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.2784, allocations: 4 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002963/0.2787, allocations: 101.2 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.2787, allocations: 59.33 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006012/0.2793, allocations: 0.5524 MB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.2794, allocations: 25.7 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.2795, allocations: 171.9 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.2795, allocations: 11.84 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.679e-05/0.2795, allocations: 25.7 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.2797, allocations: 342.8 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.092e-05/0.2797, allocations: 15.98 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.091e-05/0.2798, allocations: 12 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.548e-05/0.2799, allocations: 36.83 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2799, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001817/0.2801, allocations: 81.31 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2801, allocations: 8.109 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2801, allocations: 11.86 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.2801, allocations: 3.938 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.99e-05/0.2802, allocations: 8 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.2802, allocations: 3.984 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.623e-05/0.2803, allocations: 4 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.2803, allocations: 4 kB / 1.095 GB, free: 10.09 MB / 0.8575 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.0001475/0.2805, allocations: 177.8 kB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.2805, allocations: 31.62 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002227/0.2808, allocations: 104.5 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2808, allocations: 4 kB / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2808, allocations: 0 / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.2808, allocations: 3.984 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.2811, allocations: 281.5 kB / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2811, allocations: 0 / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.931e-05/0.2811, allocations: 11.94 kB / 1.096 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.2811, allocations: 0 / 1.096 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.2812, allocations: 11.92 kB / 1.096 GB, free: 9.402 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2812, allocations: 4 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2812, allocations: 0 / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.2814, allocations: 179.2 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.2815, allocations: 120.7 kB / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.2815, allocations: 3.938 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.817e-05/0.2816, allocations: 4 kB / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.2817, allocations: 0 / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.2817, allocations: 4 kB / 1.096 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004308/0.2821, allocations: 423.1 kB / 1.096 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2821, allocations: 0 / 1.096 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002557/0.2824, allocations: 27.94 kB / 1.096 GB, free: 8.617 MB / 0.8575 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.001172/0.2835, allocations: 0.9677 MB / 1.097 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001568/0.2837, allocations: 31.92 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2837, allocations: 0 / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.849e-05/0.2838, allocations: 27.92 kB / 1.097 GB, free: 7.691 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.2842, allocations: 46.03 kB / 1.097 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.2874, allocations: 2.882 MB / 1.1 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.2877, allocations: 0.7831 MB / 1.101 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.2878, allocations: 50.92 kB / 1.101 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.288, allocations: 91.39 kB / 1.101 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.288, allocations: 0 / 1.101 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1245/0.4124, allocations: 5.452 MB / 1.106 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.398/8.811, allocations: 17.2 kB / 1.106 GB, free: 14.41 MB / 0.8731 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)