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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001573/0.001573, allocations: 108 kB / 15.61 MB, free: 152 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.001877/0.001877, allocations: 197.7 kB / 16.53 MB, free: 6.664 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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.585/2.585, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 63.27 kB / 0.8992 GB, free: 36.88 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2591, allocations: 157.4 MB / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002759/0.2619, allocations: 1.679 MB / 1.055 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006937/0.2626, allocations: 454.8 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.369e-05/0.2627, allocations: 3.938 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.181e-05/0.2627, allocations: 15.86 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.035e-05/0.2628, allocations: 11.86 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.263, allocations: 27.91 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.2631, allocations: 79.77 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.2632, allocations: 31.91 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.847e-05/0.2633, allocations: 35.92 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.2634, allocations: 35.84 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.2634, allocations: 8 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.612e-05/0.2634, allocations: 8 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.2635, allocations: 23.84 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.365e-05/0.2635, allocations: 39.8 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.2636, allocations: 79.97 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2636, allocations: 0 / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2636, allocations: 0 / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.2637, allocations: 0 / 1.055 GB, free: 5.703 MB / 0.8106 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.0004905/0.2641, allocations: 395.1 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.2642, allocations: 8.625 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.2642, allocations: 42.73 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.2643, allocations: 8.844 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.2644, allocations: 172.2 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.2644, allocations: 4.375 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.2644, allocations: 8.375 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.2646, allocations: 99.42 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2647, allocations: 0 / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.2647, allocations: 7.938 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.2647, allocations: 0 / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.2648, allocations: 43.97 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004531/0.2653, allocations: 332.6 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.2654, allocations: 50.56 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.844e-05/0.2655, allocations: 24.94 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.2656, allocations: 0 / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.2656, allocations: 38.59 kB / 1.057 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.2656, allocations: 0 / 1.057 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003273/0.2659, allocations: 105.5 kB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.266, allocations: 81.05 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.2661, allocations: 130.1 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.2661, allocations: 25.7 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.162e-05/0.2662, allocations: 104 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.2662, allocations: 19.81 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.2662, allocations: 13.72 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.2663, allocations: 322.8 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.009e-05/0.2664, allocations: 23.98 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.462e-05/0.2665, allocations: 41.64 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.2667, allocations: 48.86 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2667, allocations: 0 / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002031/0.2669, allocations: 93.56 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.2669, allocations: 4 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.2669, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.2669, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.267, allocations: 12.17 kB / 1.058 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.267, allocations: 3.984 kB / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.365e-05/0.2671, allocations: 19.94 kB / 1.058 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.2671, allocations: 3.984 kB / 1.058 GB, free: 3.207 MB / 0.8106 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 8.491e-05/0.2672, allocations: 117.8 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.2673, allocations: 7.906 kB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.2673, allocations: 8.25 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2673, allocations: 4 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2673, allocations: 0 / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2673, allocations: 3.938 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000178/0.2675, allocations: 185.8 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2675, allocations: 11.94 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.215e-05/0.2676, allocations: 7.984 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2676, allocations: 3.984 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.2676, allocations: 4 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2676, allocations: 0 / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2676, allocations: 0 / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002285/0.2679, allocations: 187.3 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.2679, allocations: 81.02 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.2679, allocations: 7.984 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.268, allocations: 8 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.2681, allocations: 7.984 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.2681, allocations: 7.922 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.864e-05/0.2682, allocations: 109.3 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2682, allocations: 0 / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002283/0.2684, allocations: 8 kB / 1.058 GB, free: 2.355 MB / 0.8106 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.0004753/0.2689, allocations: 0.7173 MB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002099/0.2691, allocations: 59.89 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2691, allocations: 0 / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.332e-05/0.2692, allocations: 27.98 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.2695, allocations: 17.08 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.2709, allocations: 1.434 MB / 1.06 GB, free: 16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.2712, allocations: 0.6885 MB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.063e-05/0.2712, allocations: 4 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.798e-05/0.2713, allocations: 19.42 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.2713, allocations: 0 / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.2889, allocations: 2.046 MB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.181, allocations: 8.5 kB / 1.063 GB, free: 13.34 MB / 0.8262 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=50 --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)