Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001339/0.001339, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.863/1.863, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000567/0.0005672, allocations: 11.78 kB / 0.6737 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2852, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002205/0.2874, allocations: 1.441 MB / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.2888, allocations: 0.8164 MB / 0.7895 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.336e-05/0.2889, allocations: 0 / 0.7895 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005052/0.2894, allocations: 166.8 kB / 0.7897 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003129/0.2897, allocations: 131.6 kB / 0.7898 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.2901, allocations: 155.3 kB / 0.7899 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.2904, allocations: 195.5 kB / 0.7901 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.2905, allocations: 45.83 kB / 0.7902 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.2906, allocations: 79.67 kB / 0.7902 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.2909, allocations: 131.6 kB / 0.7904 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.986e-05/0.2909, allocations: 7.984 kB / 0.7904 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.5e-05/0.291, allocations: 24 kB / 0.7904 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.489e-05/0.2911, allocations: 71.73 kB / 0.7905 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.594e-05/0.2912, allocations: 61.58 kB / 0.7905 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003042/0.2915, allocations: 287.6 kB / 0.7908 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.2915, allocations: 0 / 0.7908 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.715e-06/0.2915, allocations: 4 kB / 0.7908 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.2915, allocations: 0 / 0.7908 GB, free: 8.32 MB / 0.6075 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.0008012/0.2923, allocations: 0.564 MB / 0.7913 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.2924, allocations: 15.97 kB / 0.7914 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.759e-05/0.2925, allocations: 35.58 kB / 0.7914 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.293, allocations: 397.3 kB / 0.7918 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.293, allocations: 8 kB / 0.7918 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.293, allocations: 8 kB / 0.7918 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.2932, allocations: 77.55 kB / 0.7919 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.2932, allocations: 0 / 0.7919 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.2932, allocations: 4 kB / 0.7919 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.2933, allocations: 0 / 0.7919 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.2934, allocations: 47.97 kB / 0.7919 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006055/0.294, allocations: 492.5 kB / 0.7924 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.2941, allocations: 46.56 kB / 0.7924 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.495e-05/0.2942, allocations: 24.86 kB / 0.7925 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.2942, allocations: 8 kB / 0.7925 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.2943, allocations: 30.56 kB / 0.7925 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.2943, allocations: 0 / 0.7925 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003549/0.2946, allocations: 109.2 kB / 0.7926 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.2947, allocations: 51.41 kB / 0.7926 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006176/0.2953, allocations: 0.5562 MB / 0.7932 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.2953, allocations: 29.7 kB / 0.7932 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.2955, allocations: 168 kB / 0.7934 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.2955, allocations: 19.75 kB / 0.7934 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-06/0.2955, allocations: 0 / 0.7934 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.2957, allocations: 338.8 kB / 0.7937 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.021e-05/0.2957, allocations: 15.98 kB / 0.7937 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.448e-05/0.2958, allocations: 23.98 kB / 0.7938 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.965e-05/0.2958, allocations: 12.27 kB / 0.7938 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2958, allocations: 0 / 0.7938 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001613/0.296, allocations: 101.2 kB / 0.7939 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.296, allocations: 4 kB / 0.7939 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.296, allocations: 0 / 0.7939 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.296, allocations: 4 kB / 0.7939 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.581e-05/0.2961, allocations: 11.98 kB / 0.7939 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.2961, allocations: 112 / 0.7939 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.783e-05/0.2962, allocations: 7.938 kB / 0.7939 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.2962, allocations: 4 kB / 0.7939 GB, free: 4.926 MB / 0.6075 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.00017/0.2964, allocations: 181.8 kB / 0.7941 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.053e-05/0.2965, allocations: 31.58 kB / 0.7941 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002204/0.2967, allocations: 108.1 kB / 0.7942 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2967, allocations: 0 / 0.7942 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2967, allocations: 0 / 0.7942 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2967, allocations: 0 / 0.7942 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002803/0.297, allocations: 293.4 kB / 0.7945 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.297, allocations: 0 / 0.7945 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-05/0.2971, allocations: 8 kB / 0.7945 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2971, allocations: 0 / 0.7945 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.2971, allocations: 7.938 kB / 0.7945 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2971, allocations: 0 / 0.7945 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.2971, allocations: 8 kB / 0.7945 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.2973, allocations: 183.2 kB / 0.7947 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.802e-05/0.2974, allocations: 120.7 kB / 0.7948 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.2974, allocations: 7.938 kB / 0.7948 GB, free: 3.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.519e-05/0.2975, allocations: 7.953 kB / 0.7948 GB, free: 3.883 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.2976, allocations: 7.984 kB / 0.7948 GB, free: 3.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.2976, allocations: 0 / 0.7948 GB, free: 3.875 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004208/0.298, allocations: 419.1 kB / 0.7952 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.298, allocations: 0 / 0.7952 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002569/0.2983, allocations: 28 kB / 0.7952 GB, free: 3.441 MB / 0.6075 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.0007801/0.2991, allocations: 354.4 kB / 0.7956 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001507/0.2992, allocations: 35.97 kB / 0.7956 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2992, allocations: 4 kB / 0.7956 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.333e-05/0.2993, allocations: 23.92 kB / 0.7956 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.2997, allocations: 40.39 kB / 0.7957 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000838/0.3006, allocations: 0.551 MB / 0.7962 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.3009, allocations: 0.7912 MB / 0.797 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001058/0.3011, allocations: 42.92 kB / 0.797 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.559e-05/0.3011, allocations: 27.42 kB / 0.7971 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.3011, allocations: 4 kB / 0.7971 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of Templates: time 0.005532/0.3067, allocations: 2.293 MB / 0.7993 GB, free: 15.38 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) Environment - environmentSimulation: