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.00141/0.00141, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001862/0.001862, allocations: 211 kB / 23.03 MB, free: 4.922 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.572/1.572, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.836/2.836, allocations: 476.8 MB / 0.7715 GB, free: 3.887 MB / 0.6231 GB " [Timeout remaining time 176] 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.002003/0.002003, allocations: 64.7 kB / 1.118 GB, free: 39.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3474, allocations: 170 MB / 1.284 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003363/0.3507, allocations: 1.676 MB / 1.286 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3518, allocations: 0.4927 MB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.613e-05/0.3519, allocations: 0 / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.245e-05/0.352, allocations: 11.86 kB / 1.286 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.3521, allocations: 15.8 kB / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.3523, allocations: 43.89 kB / 1.286 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.3525, allocations: 99.62 kB / 1.286 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.3527, allocations: 12.23 kB / 1.286 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.3528, allocations: 39.91 kB / 1.286 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.766e-05/0.3529, allocations: 43.77 kB / 1.286 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.41e-05/0.353, allocations: 12 kB / 1.286 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.507e-05/0.353, allocations: 12 kB / 1.286 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.353, allocations: 19.92 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.631e-05/0.3531, allocations: 27.81 kB / 1.287 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.3533, allocations: 95.14 kB / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3533, allocations: 3.984 kB / 1.287 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3533, allocations: 0 / 1.287 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.3533, allocations: 0 / 1.287 GB, free: 8.035 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.0006292/0.3539, allocations: 318 kB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.354, allocations: 12.03 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.376e-05/0.354, allocations: 192 / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.354, allocations: 42.73 kB / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.3543, allocations: 28.83 kB / 1.287 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.3545, allocations: 130.4 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.3545, allocations: 12.31 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.3546, allocations: 12.34 kB / 1.287 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.3548, allocations: 117 kB / 1.287 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3548, allocations: 4 kB / 1.287 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.3548, allocations: 0 / 1.287 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.3548, allocations: 0 / 1.287 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.355, allocations: 51.91 kB / 1.287 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005014/0.3555, allocations: 279.9 kB / 1.288 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.3556, allocations: 50.58 kB / 1.288 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.736e-05/0.3557, allocations: 28.94 kB / 1.288 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.3558, allocations: 4 kB / 1.288 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.3558, allocations: 34.56 kB / 1.288 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.3558, allocations: 0 / 1.288 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.00036/0.3562, allocations: 97.59 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.3562, allocations: 85.05 kB / 1.288 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.3563, allocations: 140.2 kB / 1.288 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.3564, allocations: 33.7 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.3564, allocations: 108 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.3565, allocations: 11.84 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/0.3565, allocations: 17.72 kB / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3567, allocations: 322.8 kB / 1.288 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.975e-05/0.3568, allocations: 23.98 kB / 1.289 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.3569, allocations: 63.34 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.3571, allocations: 52.95 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3571, allocations: 0 / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002326/0.3573, allocations: 93.64 kB / 1.289 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.3573, allocations: 8 kB / 1.289 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.3573, allocations: 0 / 1.289 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.3573, allocations: 0 / 1.289 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.3575, allocations: 15.92 kB / 1.289 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.3575, allocations: 3.938 kB / 1.289 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.683e-05/0.3575, allocations: 8 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.3576, allocations: 3.984 kB / 1.289 GB, free: 5.645 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.000134/0.3577, allocations: 117.8 kB / 1.289 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.715e-05/0.3577, allocations: 7.953 kB / 1.289 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.326e-05/0.3578, allocations: 12.34 kB / 1.289 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3578, allocations: 0 / 1.289 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.3578, allocations: 3.938 kB / 1.289 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3578, allocations: 0 / 1.289 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/0.358, allocations: 160.6 kB / 1.289 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.358, allocations: 0 / 1.289 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.857e-05/0.3581, allocations: 8 kB / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3581, allocations: 0 / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.3581, allocations: 3.984 kB / 1.289 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3581, allocations: 4 kB / 1.289 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3581, allocations: 3.938 kB / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.3584, allocations: 183.6 kB / 1.289 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.956e-05/0.3584, allocations: 11.98 kB / 1.289 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.3585, allocations: 0 / 1.289 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.3586, allocations: 11.98 kB / 1.289 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.458e-05/0.3586, allocations: 15.92 kB / 1.289 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.3586, allocations: 64 / 1.289 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.891e-05/0.3587, allocations: 107.2 kB / 1.289 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3587, allocations: 0 / 1.289 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002402/0.359, allocations: 16 kB / 1.289 GB, free: 4.918 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.0006401/0.3596, allocations: 0.7123 MB / 1.29 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002448/0.3599, allocations: 51.97 kB / 1.29 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3599, allocations: 0 / 1.29 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.36, allocations: 39.91 kB / 1.29 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.3602, allocations: 10.44 kB / 1.29 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.3623, allocations: 1.453 MB / 1.292 GB, free: 2.543 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.081e-05/0.3624, allocations: 75.75 kB / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.118e-05/0.3624, allocations: 8 kB / 1.292 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.031e-05/0.3625, allocations: 27.42 kB / 1.292 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of SimCode: time 8.52e-07/0.3625, allocations: 0 / 1.292 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02419/0.3867, allocations: 2.338 MB / 1.294 GB, free: 248 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.43, allocations: 10.98 kB / 1.294 GB, free: 240 kB / 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: 18.54387528495863] Failed to read output from testmodel.py, exit status != 0: 12.314670045045204 11.616224804 11.259078331 Calling exit ...