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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001139/0.001139, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001106/0.001106, allocations: 193 kB / 16.13 MB, free: 6.652 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.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.458/2.458, allocations: 437 MB / 0.71 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.91 kB / 0.8687 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.614/0.6154, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003364/0.6188, allocations: 1.736 MB / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008244/0.6197, allocations: 446.9 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.375e-05/0.6198, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.959e-05/0.6198, allocations: 11.88 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.6199, allocations: 15.84 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.6202, allocations: 27.98 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000132/0.6203, allocations: 71.78 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.6205, allocations: 27.95 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.6206, allocations: 31.86 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.019e-05/0.6207, allocations: 31.84 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.6207, allocations: 4 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.82e-05/0.6208, allocations: 8 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.2e-05/0.6208, allocations: 19.91 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.045e-05/0.6208, allocations: 35.73 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.621, allocations: 78 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.621, allocations: 0 / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of FrontEnd: time 9.62e-07/0.621, allocations: 0 / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.621, allocations: 0 / 1.019 GB, free: 280 kB / 0.7637 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.0006361/0.6217, allocations: 392.7 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.6217, allocations: 16.03 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.142e-05/0.6218, allocations: 30.75 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.6218, allocations: 12.84 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.622, allocations: 178.5 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.622, allocations: 384 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.622, allocations: 8.359 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.6223, allocations: 95.44 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.6223, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.6223, allocations: 4 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.6223, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.6225, allocations: 47.97 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.623, allocations: 332.6 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.6232, allocations: 50.56 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.765e-05/0.6233, allocations: 32.88 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.6233, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.6234, allocations: 46.52 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.6234, allocations: 4 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003552/0.6237, allocations: 101.6 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.6238, allocations: 77.11 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.6239, allocations: 130.1 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.6239, allocations: 25.7 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/0.624, allocations: 96.12 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.624, allocations: 11.81 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.904e-05/0.6241, allocations: 21.7 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.6242, allocations: 322.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.409e-05/0.6243, allocations: 23.98 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.857e-05/0.6244, allocations: 37.69 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.6245, allocations: 48.78 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.6245, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001964/0.6247, allocations: 97.59 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.6248, allocations: 4 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.6248, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.6248, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.6249, allocations: 11.98 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.6249, allocations: 0 / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.196e-05/0.625, allocations: 19.86 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.625, allocations: 0 / 1.021 GB, free: 13.79 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 9.885e-05/0.6251, allocations: 121.8 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/0.6252, allocations: 7.906 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.6252, allocations: 12.25 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.6252, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.6252, allocations: 3.984 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.6252, allocations: 3.938 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.6254, allocations: 189.6 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.6254, allocations: 0 / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.293e-05/0.6255, allocations: 8.172 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.6255, allocations: 8.188 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.6255, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.6255, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6255, allocations: 7.922 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.6258, allocations: 179.4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-05/0.6258, allocations: 88.94 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.6259, allocations: 4 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.626, allocations: 11.98 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.626, allocations: 11.98 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.6261, allocations: 7.938 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.965e-05/0.6261, allocations: 96.53 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6261, allocations: 3.938 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002383/0.6264, allocations: 16 kB / 1.022 GB, free: 12.93 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.0005295/0.6269, allocations: 0.7187 MB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002047/0.6271, allocations: 51.91 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.6271, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.377e-05/0.6272, allocations: 27.98 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.6276, allocations: 12.5 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.6291, allocations: 1.444 MB / 1.024 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.6294, allocations: 0.7004 MB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.669e-05/0.6294, allocations: 7.922 kB / 1.025 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.119e-05/0.6295, allocations: 23.44 kB / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6295, allocations: 0 / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0114/0.6409, allocations: 1.807 MB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.6411, allocations: 232 kB / 1.027 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.457, allocations: 0 / 1.027 GB, free: 7.906 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)