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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_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.001224/0.001224, allocations: 105.4 kB / 15.7 MB, free: 24 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.001867/0.001867, allocations: 199.5 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.759/1.759, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.002655/0.002655, allocations: 73.89 kB / 0.6718 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2981, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003894/0.3021, allocations: 1.776 MB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001526/0.3037, allocations: 0.8675 MB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.869e-05/0.3038, allocations: 0 / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005477/0.3043, allocations: 183.6 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000423/0.3048, allocations: 161.9 kB / 0.7866 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004404/0.3053, allocations: 189.8 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003107/0.3056, allocations: 235.5 kB / 0.787 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.3058, allocations: 61.86 kB / 0.787 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.306, allocations: 99.66 kB / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.3062, allocations: 151.5 kB / 0.7873 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/0.3063, allocations: 16 kB / 0.7873 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.3064, allocations: 51.98 kB / 0.7873 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.3066, allocations: 87.69 kB / 0.7874 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.3067, allocations: 119.2 kB / 0.7875 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004413/0.3071, allocations: 350.8 kB / 0.7879 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3071, allocations: 0 / 0.7879 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.674e-06/0.3072, allocations: 4 kB / 0.7879 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.124e-06/0.3072, allocations: 0 / 0.7879 GB, free: 8.914 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.0009078/0.3081, allocations: 0.5991 MB / 0.7884 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.3081, allocations: 8.031 kB / 0.7885 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.967e-05/0.3082, allocations: 42.75 kB / 0.7885 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.551e-05/0.3083, allocations: 36.45 kB / 0.7885 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005053/0.3088, allocations: 406.4 kB / 0.7889 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.3088, allocations: 8.375 kB / 0.7889 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.3088, allocations: 11.94 kB / 0.7889 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.309, allocations: 77.55 kB / 0.789 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.309, allocations: 0 / 0.789 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.309, allocations: 4 kB / 0.789 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.309, allocations: 0 / 0.789 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.3092, allocations: 43.97 kB / 0.7891 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005988/0.3098, allocations: 488.3 kB / 0.7895 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.3099, allocations: 54.5 kB / 0.7896 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.52e-05/0.31, allocations: 20.91 kB / 0.7896 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.31, allocations: 0 / 0.7896 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.3101, allocations: 30.56 kB / 0.7896 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.3101, allocations: 4 kB / 0.7896 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003188/0.3104, allocations: 113.1 kB / 0.7897 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.3105, allocations: 55.41 kB / 0.7898 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006507/0.3111, allocations: 0.5524 MB / 0.7903 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.3111, allocations: 25.7 kB / 0.7904 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.3113, allocations: 168 kB / 0.7905 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.234e-05/0.3113, allocations: 19.81 kB / 0.7905 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.3114, allocations: 13.72 kB / 0.7905 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3115, allocations: 342.8 kB / 0.7909 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.732e-05/0.3116, allocations: 19.98 kB / 0.7909 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.363e-05/0.3116, allocations: 11.98 kB / 0.7909 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.906e-05/0.3117, allocations: 36.89 kB / 0.7909 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3118, allocations: 3.938 kB / 0.7909 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001885/0.312, allocations: 89.3 kB / 0.791 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.312, allocations: 4 kB / 0.791 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.312, allocations: 0 / 0.791 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.312, allocations: 3.938 kB / 0.791 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.664e-05/0.3121, allocations: 12 kB / 0.791 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3121, allocations: 0 / 0.791 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.179e-05/0.3122, allocations: 3.984 kB / 0.791 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.876e-06/0.3122, allocations: 4 kB / 0.7911 GB, free: 5.41 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.3124, allocations: 177.8 kB / 0.7912 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.919e-05/0.3125, allocations: 27.62 kB / 0.7912 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.814e-05/0.3125, allocations: 38.47 kB / 0.7913 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.3125, allocations: 4 kB / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3125, allocations: 0 / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.3126, allocations: 7.984 kB / 0.7913 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000297/0.3129, allocations: 277.5 kB / 0.7916 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3129, allocations: 0 / 0.7916 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.803e-05/0.3129, allocations: 11.94 kB / 0.7916 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3129, allocations: 0 / 0.7916 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.313, allocations: 11.92 kB / 0.7916 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.313, allocations: 0 / 0.7916 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.313, allocations: 0 / 0.7916 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.3132, allocations: 187.2 kB / 0.7918 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.3133, allocations: 116.7 kB / 0.7919 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.3134, allocations: 3.938 kB / 0.7919 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-05/0.3134, allocations: 8 kB / 0.7919 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.3135, allocations: 3.938 kB / 0.7919 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-06/0.3135, allocations: 0 / 0.7919 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000461/0.314, allocations: 423.1 kB / 0.7923 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.11e-07/0.314, allocations: 0 / 0.7923 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002711/0.3143, allocations: 20 kB / 0.7923 GB, free: 4.02 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 (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.001258/0.3155, allocations: 0.9855 MB / 0.7933 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001664/0.3157, allocations: 27.92 kB / 0.7933 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3157, allocations: 0 / 0.7933 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.608e-05/0.3158, allocations: 23.92 kB / 0.7933 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.3162, allocations: 56.03 kB / 0.7934 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003215/0.3195, allocations: 2.882 MB / 0.7962 GB, free: 84 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.3198, allocations: 0.7831 MB / 0.797 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001183/0.32, allocations: 42.94 kB / 0.797 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3201, allocations: 99.39 kB / 0.7971 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of SimCode: time 5e-07/0.3201, allocations: 0 / 0.7971 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02647/0.3466, allocations: 5.37 MB / 0.8023 GB, free: 9.93 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/7.995, allocations: 10.44 kB / 0.8023 GB, free: 9.922 MB / 0.6231 GB (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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)