Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 217 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.813/2.813, allocations: 476.7 MB / 0.7714 GB, free: 4.301 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 62.88 kB / 1.118 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.324, allocations: 170 MB / 1.284 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003002/0.327, allocations: 1.716 MB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.3282, allocations: 0.5278 MB / 1.286 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.943e-05/0.3283, allocations: 0 / 1.286 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.059e-05/0.3283, allocations: 7.875 kB / 1.286 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.804e-05/0.3284, allocations: 19.8 kB / 1.286 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.3287, allocations: 47.92 kB / 1.286 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.3288, allocations: 83.66 kB / 1.286 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.329, allocations: 31.73 kB / 1.287 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.3291, allocations: 39.84 kB / 1.287 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.661e-05/0.3292, allocations: 39.84 kB / 1.287 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.3292, allocations: 11.94 kB / 1.287 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.663e-05/0.3293, allocations: 12 kB / 1.287 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.3293, allocations: 19.86 kB / 1.287 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.878e-05/0.3293, allocations: 43.8 kB / 1.287 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.3295, allocations: 88.33 kB / 1.287 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3295, allocations: 0 / 1.287 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3295, allocations: 0 / 1.287 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.3295, allocations: 0 / 1.287 GB, free: 9.043 MB / 0.9825 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.0005503/0.3301, allocations: 333.9 kB / 1.287 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3301, allocations: 8.031 kB / 1.287 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.057e-05/0.3301, allocations: 192 / 1.287 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.282e-05/0.3302, allocations: 42.75 kB / 1.287 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002214/0.3304, allocations: 24.88 kB / 1.287 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.3307, allocations: 134.3 kB / 1.287 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.3307, allocations: 4.375 kB / 1.287 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.3307, allocations: 4.375 kB / 1.287 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002333/0.3309, allocations: 95.31 kB / 1.287 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3309, allocations: 0 / 1.287 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3309, allocations: 4 kB / 1.287 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3309, allocations: 0 / 1.287 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.3311, allocations: 55.89 kB / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004572/0.3316, allocations: 287.8 kB / 1.288 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.3317, allocations: 54.69 kB / 1.288 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.97e-05/0.3318, allocations: 28.83 kB / 1.288 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.3318, allocations: 0 / 1.288 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3318, allocations: 38.56 kB / 1.288 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 8.02e-07/0.3318, allocations: 0 / 1.288 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0003414/0.3322, allocations: 97.61 kB / 1.288 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.3322, allocations: 77.11 kB / 1.288 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.3324, allocations: 147.5 kB / 1.288 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.3324, allocations: 29.64 kB / 1.288 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/0.3325, allocations: 100 kB / 1.288 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.3325, allocations: 27.88 kB / 1.288 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.3325, allocations: 17.72 kB / 1.288 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3327, allocations: 322.8 kB / 1.289 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.159e-05/0.3327, allocations: 23.92 kB / 1.289 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.266e-05/0.3328, allocations: 37.7 kB / 1.289 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.333, allocations: 52.86 kB / 1.289 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.333, allocations: 0 / 1.289 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002015/0.3332, allocations: 85.62 kB / 1.289 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3332, allocations: 4 kB / 1.289 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.3332, allocations: 0 / 1.289 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.3332, allocations: 3.938 kB / 1.289 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3333, allocations: 11.98 kB / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.3333, allocations: 3.938 kB / 1.289 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.151e-05/0.3334, allocations: 15.98 kB / 1.289 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.3334, allocations: 4.188 kB / 1.289 GB, free: 6.699 MB / 0.9825 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 0.000101/0.3335, allocations: 118 kB / 1.289 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.3335, allocations: 15.92 kB / 1.289 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.286e-05/0.3336, allocations: 12.34 kB / 1.289 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3336, allocations: 0 / 1.289 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3336, allocations: 3.938 kB / 1.289 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3336, allocations: 0 / 1.289 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.3338, allocations: 164.6 kB / 1.289 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3338, allocations: 4 kB / 1.289 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.34e-05/0.3339, allocations: 11.98 kB / 1.289 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3339, allocations: 0 / 1.289 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.3339, allocations: 0 / 1.289 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.3339, allocations: 0 / 1.289 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3339, allocations: 3.938 kB / 1.289 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.3341, allocations: 179.4 kB / 1.289 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.431e-05/0.3341, allocations: 11.95 kB / 1.289 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.3342, allocations: 0 / 1.289 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.3343, allocations: 11.98 kB / 1.289 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.3343, allocations: 15.92 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.3343, allocations: 3.984 kB / 1.289 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.491e-05/0.3344, allocations: 105.6 kB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3344, allocations: 0 / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002338/0.3346, allocations: 8 kB / 1.289 GB, free: 5.973 MB / 0.9825 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.0005616/0.3352, allocations: 0.7163 MB / 1.29 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002153/0.3354, allocations: 51.95 kB / 1.29 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3354, allocations: 3.938 kB / 1.29 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.114e-05/0.3355, allocations: 27.98 kB / 1.29 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.3358, allocations: 19.81 kB / 1.29 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.3375, allocations: 1.449 MB / 1.292 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3378, allocations: 0.6885 MB / 1.292 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.231e-05/0.3378, allocations: 12.17 kB / 1.292 GB, free: 2.867 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.949e-05/0.3379, allocations: 31.41 kB / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.3379, allocations: 0 / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.3598, allocations: 2.268 MB / 1.295 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.4, allocations: 13.27 kB / 1.295 GB, free: 0.7227 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 17.980870646017138] Failed to read output from testmodel.py, exit status != 0: 12.130777263955679 11.592053672 11.256958557 Calling exit ...