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.004738/0.004738, allocations: 98.81 kB / 15.73 MB, free: 6.008 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.001683/0.001684, allocations: 191.5 kB / 16.67 MB, free: 5.926 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.271/2.271, allocations: 437.1 MB / 0.7106 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 68.11 kB / 1.018 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6079/0.6096, allocations: 151.6 MB / 1.166 GB, free: 3.762 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002497/0.6121, allocations: 1.667 MB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006711/0.6128, allocations: 450.9 kB / 1.168 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.222e-05/0.6129, allocations: 0 / 1.168 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.6129, allocations: 3.938 kB / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.64e-05/0.613, allocations: 27.73 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001441/0.6131, allocations: 31.95 kB / 1.168 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.6132, allocations: 79.72 kB / 1.168 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.6133, allocations: 27.97 kB / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.067e-05/0.6134, allocations: 43.78 kB / 1.168 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.941e-05/0.6135, allocations: 39.84 kB / 1.168 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.6135, allocations: 8 kB / 1.168 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.711e-05/0.6136, allocations: 8 kB / 1.168 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.331e-05/0.6136, allocations: 15.92 kB / 1.169 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.593e-05/0.6136, allocations: 39.78 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.6138, allocations: 75.42 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.6138, allocations: 0 / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.343e-06/0.6138, allocations: 0 / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.6138, allocations: 4 kB / 1.169 GB, free: 1.242 MB / 0.8887 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.0004792/0.6143, allocations: 397.1 kB / 1.169 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.6143, allocations: 12.92 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.818e-05/0.6144, allocations: 38.73 kB / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.963e-05/0.6144, allocations: 8.891 kB / 1.169 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.6145, allocations: 184.2 kB / 1.169 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.6145, allocations: 384 / 1.169 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.6146, allocations: 4.375 kB / 1.169 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.6148, allocations: 103.4 kB / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.6148, allocations: 0 / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.6148, allocations: 0 / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.6148, allocations: 4 kB / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001455/0.6149, allocations: 43.97 kB / 1.169 GB, free: 368 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004313/0.6154, allocations: 336.5 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.6155, allocations: 50.56 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.351e-05/0.6156, allocations: 28.94 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.6156, allocations: 0 / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.6156, allocations: 30.56 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.6157, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4): time 0.0003095/0.616, allocations: 113.6 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.616, allocations: 77.11 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.6161, allocations: 134 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.6162, allocations: 25.7 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.6162, allocations: 100.1 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.6162, allocations: 11.91 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/0.6163, allocations: 17.72 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.6164, allocations: 326.8 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-05/0.6165, allocations: 23.98 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.492e-05/0.6166, allocations: 33.7 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.6167, allocations: 48.83 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.6167, allocations: 0 / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001904/0.6169, allocations: 97.62 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.6169, allocations: 6.344 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.6169, allocations: 0 / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.408e-06/0.617, allocations: 0 / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.461e-05/0.617, allocations: 11.98 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.6171, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.601e-05/0.6171, allocations: 20.02 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.6171, allocations: 3.984 kB / 1.171 GB, free: 14.75 MB / 0.9044 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.083e-05/0.6172, allocations: 124 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.6173, allocations: 7.953 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.877e-05/0.6173, allocations: 12.25 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.6173, allocations: 0 / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.6173, allocations: 0 / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.6173, allocations: 3.938 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.6175, allocations: 193.8 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.6175, allocations: 0 / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.37e-05/0.6176, allocations: 11.92 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.6176, allocations: 7.984 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.6176, allocations: 7.938 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.6176, allocations: 0 / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.6176, allocations: 0 / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.6178, allocations: 179.4 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.6179, allocations: 77.11 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.6179, allocations: 7.984 kB / 1.171 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.486e-05/0.618, allocations: 8 kB / 1.171 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.6181, allocations: 11.98 kB / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.6181, allocations: 11.92 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.174e-05/0.6181, allocations: 100.4 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6181, allocations: 0 / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002068/0.6184, allocations: 15.95 kB / 1.172 GB, free: 13.88 MB / 0.9044 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.0004922/0.6189, allocations: 0.7201 MB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001815/0.619, allocations: 51.95 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.6191, allocations: 0 / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.978e-05/0.6191, allocations: 27.92 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.6194, allocations: 15.88 kB / 1.172 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.6208, allocations: 1.434 MB / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.6211, allocations: 0.6936 MB / 1.174 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.525e-05/0.6211, allocations: 4 kB / 1.174 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.484e-05/0.6212, allocations: 27.42 kB / 1.174 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of SimCode: time 1.864e-06/0.6212, allocations: 4 kB / 1.174 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.074/6.695, allocations: 2.071 MB / 1.176 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.325/15.02, allocations: 13.34 kB / 1.177 GB, free: 8.844 MB / 0.9044 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=400 --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)