Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_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.00118/0.00118, 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.001285/0.001285, allocations: 196.6 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.366/2.366, allocations: 437 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 59.89 kB / 0.8694 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6771/0.6785, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00338/0.6819, allocations: 1.667 MB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007642/0.6827, allocations: 458.9 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.457e-05/0.6827, allocations: 0 / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.801e-05/0.6828, allocations: 7.875 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.254e-05/0.6829, allocations: 19.8 kB / 1.02 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001733/0.6831, allocations: 27.95 kB / 1.02 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.732e-05/0.6832, allocations: 75.78 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.6833, allocations: 27.91 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.6834, allocations: 47.77 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.331e-05/0.6835, allocations: 31.84 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.6835, allocations: 8 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.759e-05/0.6836, allocations: 8 kB / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.6836, allocations: 15.92 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.473e-05/0.6836, allocations: 35.81 kB / 1.02 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.6838, allocations: 82 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.6838, allocations: 7.938 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6838, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.6838, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 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.0005113/0.6843, allocations: 383.2 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.6844, allocations: 12.03 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.74e-05/0.6844, allocations: 34.75 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.6845, allocations: 12.75 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.6846, allocations: 185.9 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.6846, allocations: 8.312 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.6846, allocations: 8.375 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.6848, allocations: 87.5 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.6849, allocations: 0 / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.6849, allocations: 4 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.6849, allocations: 0 / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.685, allocations: 59.84 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004453/0.6855, allocations: 324.6 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.6856, allocations: 58.58 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.859e-05/0.6857, allocations: 28.94 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.6858, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.6858, allocations: 30.56 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.6858, allocations: 4 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003348/0.6861, allocations: 97.64 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.6862, allocations: 77.11 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.843e-05/0.6863, allocations: 135.2 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.6863, allocations: 29.69 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.908e-05/0.6864, allocations: 96.08 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.6864, allocations: 19.8 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.211e-05/0.6864, allocations: 17.72 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.6866, allocations: 318.8 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.213e-05/0.6866, allocations: 27.98 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.977e-05/0.6867, allocations: 37.7 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.6869, allocations: 44.83 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-06/0.6869, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001909/0.6871, allocations: 93.89 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.6871, allocations: 6.031 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.6871, allocations: 3.938 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.6871, allocations: 8.016 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.725e-05/0.6872, allocations: 15.92 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.6872, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.039e-05/0.6873, allocations: 19.86 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.6873, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 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 7.799e-05/0.6874, allocations: 113.8 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.6875, allocations: 7.906 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.6875, allocations: 16.23 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.6875, allocations: 4 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.6875, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.6875, allocations: 3.938 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.6877, allocations: 189.6 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.6877, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.062e-05/0.6878, allocations: 4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.6878, allocations: 11.92 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.6878, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.6878, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.6878, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/0.688, allocations: 187.3 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.074e-05/0.6881, allocations: 77.11 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.6881, allocations: 8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.6882, allocations: 7.984 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.6883, allocations: 7.984 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.6883, allocations: 7.938 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.242e-05/0.6883, allocations: 103.8 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6883, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002378/0.6886, allocations: 15.91 kB / 1.023 GB, free: 12.63 MB / 0.7794 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.0004509/0.689, allocations: 0.7124 MB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000201/0.6892, allocations: 55.97 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.6893, allocations: 0 / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.207e-05/0.6893, allocations: 23.98 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.6896, allocations: 23.77 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.691, allocations: 1.431 MB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.6913, allocations: 0.6924 MB / 1.026 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.157e-05/0.6913, allocations: 8.172 kB / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.6914, allocations: 31.36 kB / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6914, allocations: 0 / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07942/0.7708, allocations: 2.025 MB / 1.028 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.102/7.873, allocations: 12.33 kB / 1.028 GB, free: 7.613 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)