Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.004784/0.004784, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001409/0.001409, allocations: 199.1 kB / 16.68 MB, free: 5.977 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.702/2.702, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 64.11 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2771, allocations: 162.3 MB / 1.242 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002547/0.2797, allocations: 1.667 MB / 1.243 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006469/0.2804, allocations: 442.9 kB / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.315e-05/0.2804, allocations: 0 / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.104e-05/0.2804, allocations: 7.875 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.462e-05/0.2805, allocations: 19.78 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001439/0.2807, allocations: 27.97 kB / 1.244 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2808, allocations: 83.72 kB / 1.244 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.2809, allocations: 35.95 kB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.649e-05/0.281, allocations: 31.86 kB / 1.244 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.457e-05/0.2811, allocations: 39.84 kB / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.2811, allocations: 8 kB / 1.244 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.595e-05/0.2811, allocations: 8 kB / 1.244 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.292e-05/0.2812, allocations: 15.91 kB / 1.244 GB, free: 7.434 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.35e-05/0.2812, allocations: 35.8 kB / 1.244 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.2813, allocations: 87.62 kB / 1.244 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.2813, allocations: 4 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2813, allocations: 0 / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.2813, allocations: 0 / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004814/0.2818, allocations: 391.1 kB / 1.245 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.2819, allocations: 8.031 kB / 1.245 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.697e-05/0.2819, allocations: 38.73 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.282, allocations: 16.84 kB / 1.245 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.2821, allocations: 179 kB / 1.245 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.2821, allocations: 8.375 kB / 1.245 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.2821, allocations: 4.375 kB / 1.245 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.2823, allocations: 99.42 kB / 1.245 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-06/0.2823, allocations: 0 / 1.245 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.2824, allocations: 0 / 1.245 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-06/0.2824, allocations: 0 / 1.245 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.2825, allocations: 51.97 kB / 1.245 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004411/0.283, allocations: 324.7 kB / 1.245 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.2831, allocations: 46.56 kB / 1.245 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.322e-05/0.2832, allocations: 40.88 kB / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.2832, allocations: 4 kB / 1.245 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.2833, allocations: 30.66 kB / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.2833, allocations: 3.938 kB / 1.245 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0003145/0.2836, allocations: 101.6 kB / 1.246 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.2836, allocations: 81.11 kB / 1.246 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.2838, allocations: 134 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.2838, allocations: 29.7 kB / 1.246 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.125e-05/0.2838, allocations: 100.1 kB / 1.246 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.2839, allocations: 7.953 kB / 1.246 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-05/0.2839, allocations: 17.72 kB / 1.246 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.284, allocations: 326.8 kB / 1.246 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.807e-05/0.2841, allocations: 19.98 kB / 1.246 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.296e-05/0.2842, allocations: 37.7 kB / 1.246 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.2844, allocations: 56.8 kB / 1.246 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2844, allocations: 0 / 1.246 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001896/0.2846, allocations: 85.61 kB / 1.246 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2846, allocations: 8 kB / 1.246 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.2846, allocations: 192 / 1.246 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.2846, allocations: 0 / 1.246 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.43e-05/0.2847, allocations: 15.98 kB / 1.246 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.2847, allocations: 4 kB / 1.246 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.773e-05/0.2848, allocations: 19.81 kB / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.2848, allocations: 7.984 kB / 1.246 GB, free: 4.805 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.067e-05/0.2849, allocations: 118.3 kB / 1.247 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.2849, allocations: 4 kB / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.285, allocations: 12.19 kB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.285, allocations: 0 / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.624e-06/0.285, allocations: 4 kB / 1.247 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.285, allocations: 7.938 kB / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.2852, allocations: 193.6 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2852, allocations: 0 / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.708e-05/0.2853, allocations: 12.17 kB / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2853, allocations: 4 kB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.2853, allocations: 0 / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2853, allocations: 4 kB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2853, allocations: 0 / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.2856, allocations: 179.5 kB / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.34e-05/0.2856, allocations: 81.06 kB / 1.247 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.2857, allocations: 3.984 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.902e-05/0.2858, allocations: 11.94 kB / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.2858, allocations: 11.98 kB / 1.247 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.2858, allocations: 11.86 kB / 1.247 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.303e-05/0.2859, allocations: 106.2 kB / 1.247 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2859, allocations: 4 kB / 1.247 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002078/0.2861, allocations: 15.95 kB / 1.247 GB, free: 3.934 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.000509/0.2866, allocations: 0.7047 MB / 1.248 GB, free: 3.203 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001945/0.2868, allocations: 63.89 kB / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2868, allocations: 0 / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.277e-05/0.2869, allocations: 23.98 kB / 1.248 GB, free: 3.117 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.2872, allocations: 9.188 kB / 1.248 GB, free: 3.109 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.2887, allocations: 1.433 MB / 1.249 GB, free: 1.598 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.289, allocations: 0.6963 MB / 1.25 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.916e-05/0.289, allocations: 8.422 kB / 1.25 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.2891, allocations: 23.42 kB / 1.25 GB, free: 0.8438 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.2891, allocations: 0 / 1.25 GB, free: 0.8438 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6855/0.9745, allocations: 2.066 MB / 1.252 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/9.097, allocations: 10.06 kB / 1.252 GB, free: 14.52 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)