Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_7_0_0_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/Buildings 7.0.1/package.mo): time 2.46/2.46, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001624/0.001623, allocations: 183.7 kB / 325.5 MB, free: 2.887 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.332/2.333, allocations: 205.4 MB / 0.5764 GB, free: 20.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001196/0.001196, allocations: 99.3 kB / 0.6809 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006369/0.0006368, allocations: 11.91 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2291, allocations: 106.3 MB / 0.8988 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2323/0.4614, allocations: 134.7 MB / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003886/0.4619, allocations: 91.94 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02193/0.4838, allocations: 5.316 MB / 1.036 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.465e-06/0.4839, allocations: 0 / 1.036 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.017e-05/0.484, allocations: 4 kB / 1.036 GB, free: 5.168 MB / 0.6823 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.001087/0.4851, allocations: 0.5799 MB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.4851, allocations: 12.03 kB / 1.036 GB, free: 4.527 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.177e-05/0.4852, allocations: 34.56 kB / 1.036 GB, free: 4.484 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.349e-05/0.4853, allocations: 39.56 kB / 1.036 GB, free: 4.445 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000942/0.4862, allocations: 433.1 kB / 1.037 GB, free: 3.984 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.4863, allocations: 0 / 1.037 GB, free: 3.984 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.4863, allocations: 8 kB / 1.037 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.4866, allocations: 69.67 kB / 1.037 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4866, allocations: 0 / 1.037 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.4866, allocations: 7.984 kB / 1.037 GB, free: 3.895 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.4867, allocations: 8 kB / 1.037 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.4869, allocations: 51.91 kB / 1.037 GB, free: 3.836 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000966/0.4879, allocations: 496.5 kB / 1.037 GB, free: 3.301 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.4881, allocations: 54.5 kB / 1.037 GB, free: 3.238 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.4881, allocations: 8.031 kB / 1.037 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.4882, allocations: 34.73 kB / 1.037 GB, free: 3.188 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.733e-06/0.4882, allocations: 7.875 kB / 1.037 GB, free: 3.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0004273/0.4886, allocations: 109.3 kB / 1.038 GB, free: 3.066 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.4887, allocations: 59.34 kB / 1.038 GB, free: 2.996 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.4897, allocations: 0.5007 MB / 1.038 GB, free: 2.484 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.4898, allocations: 25.7 kB / 1.038 GB, free: 2.453 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.49, allocations: 172 kB / 1.038 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.49, allocations: 15.73 kB / 1.038 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/0.49, allocations: 0 / 1.038 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.4902, allocations: 342.8 kB / 1.039 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.482e-05/0.4903, allocations: 19.98 kB / 1.039 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.527e-05/0.4904, allocations: 12 kB / 1.039 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.03e-05/0.4905, allocations: 19.98 kB / 1.039 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4905, allocations: 0 / 1.039 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000279/0.4908, allocations: 85.39 kB / 1.039 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.4908, allocations: 15.95 kB / 1.039 GB, free: 1.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4908, allocations: 0 / 1.039 GB, free: 1.766 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.4909, allocations: 0 / 1.039 GB, free: 1.766 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.491, allocations: 15.92 kB / 1.039 GB, free: 1.75 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.491, allocations: 3.984 kB / 1.039 GB, free: 1.746 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.4911, allocations: 7.906 kB / 1.039 GB, free: 1.738 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.4912, allocations: 0 / 1.039 GB, free: 1.738 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000227/0.4914, allocations: 173.8 kB / 1.039 GB, free: 1.559 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.489e-05/0.4915, allocations: 39.62 kB / 1.039 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003336/0.4918, allocations: 108.1 kB / 1.039 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.4919, allocations: 0 / 1.039 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4919, allocations: 0 / 1.039 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.4919, allocations: 0 / 1.039 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004318/0.4923, allocations: 305.5 kB / 1.039 GB, free: 1.051 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4923, allocations: 0 / 1.039 GB, free: 1.051 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-05/0.4924, allocations: 8 kB / 1.039 GB, free: 1.043 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.4924, allocations: 7.938 kB / 1.039 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.4925, allocations: 0 / 1.039 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.4925, allocations: 3.953 kB / 1.039 GB, free: 1.031 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4925, allocations: 0 / 1.039 GB, free: 1.031 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003319/0.4928, allocations: 187.2 kB / 1.04 GB, free: 0.832 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.493, allocations: 136.7 kB / 1.04 GB, free: 0.6797 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.972e-05/0.4931, allocations: 7.938 kB / 1.04 GB, free: 0.6719 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.4933, allocations: 4 kB / 1.04 GB, free: 0.668 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.4933, allocations: 7.938 kB / 1.04 GB, free: 0.6602 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.4933, allocations: 4 kB / 1.04 GB, free: 0.6562 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0007486/0.4941, allocations: 407.1 kB / 1.04 GB, free: 272 kB / 0.6823 GB Notification: Performance of sort global known variables: time 3.81e-07/0.4941, allocations: 4 kB / 1.04 GB, free: 268 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000369/0.4945, allocations: 31.88 kB / 1.04 GB, free: 236 kB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00159/0.4961, allocations: 0.9784 MB / 1.041 GB, free: 15.36 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002236/0.4963, allocations: 31.97 kB / 1.041 GB, free: 15.32 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4964, allocations: 0 / 1.041 GB, free: 15.32 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 9.587e-05/0.4965, allocations: 19.94 kB / 1.041 GB, free: 15.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.4969, allocations: 46.41 kB / 1.041 GB, free: 15.26 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004334/0.5013, allocations: 1.895 MB / 1.043 GB, free: 13.31 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.5018, allocations: 0.795 MB / 1.044 GB, free: 12.49 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002248/0.5021, allocations: 49.94 kB / 1.044 GB, free: 12.44 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.5023, allocations: 83.41 kB / 1.044 GB, free: 12.36 MB / 0.698 GB Notification: Performance of SimCode: time 9.62e-07/0.5023, allocations: 3.938 kB / 1.044 GB, free: 12.36 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02796/0.5303, allocations: 5.656 MB / 1.049 GB, free: 6.914 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003784/0.5307, allocations: 253.8 kB / 1.05 GB, free: 6.582 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.619/3.149, allocations: 0 / 1.05 GB, free: 6.582 MB / 0.698 GB