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.0009297/0.0009299, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001116/0.001116, allocations: 177.3 kB / 15.95 MB, free: 216 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.609/1.609, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.858/1.858, allocations: 292.5 MB / 0.5497 GB, free: 14.61 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.0005464/0.0005465, allocations: 19.22 kB / 0.6736 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3002, allocations: 116.3 MB / 0.7871 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002454/0.3027, allocations: 1.449 MB / 0.7885 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001415/0.3042, allocations: 0.7773 MB / 0.7893 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.638e-05/0.3043, allocations: 8 kB / 0.7893 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005952/0.3049, allocations: 150.9 kB / 0.7894 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003629/0.3053, allocations: 139.6 kB / 0.7896 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.3057, allocations: 151.2 kB / 0.7897 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.3059, allocations: 135.7 kB / 0.7899 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3061, allocations: 53.81 kB / 0.7899 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.3063, allocations: 79.61 kB / 0.79 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.3065, allocations: 127.6 kB / 0.7901 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.3065, allocations: 8 kB / 0.7901 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.223e-05/0.3066, allocations: 20 kB / 0.7901 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.3067, allocations: 67.75 kB / 0.7902 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.3068, allocations: 65.58 kB / 0.7903 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.3071, allocations: 287.6 kB / 0.7905 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.3071, allocations: 0 / 0.7905 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.434e-06/0.3071, allocations: 0 / 0.7905 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.3071, allocations: 4 kB / 0.7905 GB, free: 8.43 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.0007851/0.3079, allocations: 0.5679 MB / 0.7911 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.308, allocations: 8.031 kB / 0.7911 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.419e-05/0.308, allocations: 35.58 kB / 0.7911 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.3086, allocations: 389.3 kB / 0.7915 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.3086, allocations: 4 kB / 0.7915 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.3086, allocations: 4 kB / 0.7915 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001916/0.3088, allocations: 85.59 kB / 0.7916 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3089, allocations: 0 / 0.7916 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.3089, allocations: 3.938 kB / 0.7916 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.3089, allocations: 4 kB / 0.7916 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.309, allocations: 47.97 kB / 0.7916 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006354/0.3097, allocations: 492.5 kB / 0.7921 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.3098, allocations: 46.56 kB / 0.7922 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.3098, allocations: 3.953 kB / 0.7922 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.3099, allocations: 34.62 kB / 0.7922 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3099, allocations: 0 / 0.7922 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003091/0.3102, allocations: 113.3 kB / 0.7923 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.3102, allocations: 55.41 kB / 0.7924 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006498/0.3109, allocations: 0.5484 MB / 0.7929 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.3109, allocations: 25.7 kB / 0.7929 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.3111, allocations: 176 kB / 0.7931 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.3111, allocations: 11.75 kB / 0.7931 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.3111, allocations: 4 kB / 0.7931 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001763/0.3113, allocations: 346.8 kB / 0.7934 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.169e-05/0.3114, allocations: 15.92 kB / 0.7934 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.143e-05/0.3114, allocations: 15.98 kB / 0.7935 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.851e-05/0.3115, allocations: 16 kB / 0.7935 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3115, allocations: 0 / 0.7935 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001582/0.3116, allocations: 101.2 kB / 0.7936 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.3117, allocations: 7.953 kB / 0.7936 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3117, allocations: 0 / 0.7936 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3117, allocations: 0 / 0.7936 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.854e-05/0.3118, allocations: 11.98 kB / 0.7936 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3118, allocations: 0 / 0.7936 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.233e-05/0.3119, allocations: 4.109 kB / 0.7936 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3119, allocations: 3.938 kB / 0.7936 GB, free: 5.07 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.0001828/0.3121, allocations: 185.8 kB / 0.7938 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.244e-05/0.3122, allocations: 31.62 kB / 0.7938 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002267/0.3124, allocations: 100.2 kB / 0.7939 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3124, allocations: 0 / 0.7939 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3124, allocations: 3.938 kB / 0.7939 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3124, allocations: 0 / 0.7939 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003057/0.3127, allocations: 289.5 kB / 0.7942 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.3128, allocations: 8 kB / 0.7942 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.502e-05/0.3128, allocations: 4 kB / 0.7942 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3128, allocations: 4 kB / 0.7942 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.3128, allocations: 0 / 0.7942 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.3129, allocations: 3.953 kB / 0.7942 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3129, allocations: 3.984 kB / 0.7942 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.3131, allocations: 195.5 kB / 0.7944 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.3132, allocations: 120.7 kB / 0.7945 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.3132, allocations: 0 / 0.7945 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.686e-05/0.3133, allocations: 4 kB / 0.7945 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.343e-05/0.3134, allocations: 7.938 kB / 0.7945 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.3134, allocations: 0 / 0.7945 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004345/0.3138, allocations: 419.1 kB / 0.7949 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3138, allocations: 3.938 kB / 0.7949 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002475/0.3141, allocations: 24 kB / 0.7949 GB, free: 3.59 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.0008384/0.3149, allocations: 366 kB / 0.7953 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001507/0.3151, allocations: 31.98 kB / 0.7953 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3151, allocations: 0 / 0.7953 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.142e-05/0.3152, allocations: 19.98 kB / 0.7953 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.3155, allocations: 43.86 kB / 0.7954 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008403/0.3163, allocations: 0.5628 MB / 0.7959 GB, free: 2.68 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.3168, allocations: 0.7911 MB / 0.7967 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001161/0.3169, allocations: 54.91 kB / 0.7968 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.435e-05/0.3169, allocations: 23.44 kB / 0.7968 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.3169, allocations: 0 / 0.7968 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of Templates: time 0.005618/0.3226, allocations: 2.285 MB / 0.799 GB, free: 15.52 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: