Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0017/0.0017, 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.001552/0.001552, allocations: 213.5 kB / 23.04 MB, free: 5.066 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.513/1.513, allocations: 230.6 MB / 256.8 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.313/3.313, allocations: 0.5003 GB / 0.8061 GB, free: 26.71 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_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.001968/0.001968, allocations: 64.31 kB / 1.171 GB, free: 19.87 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3531, allocations: 179 MB / 1.345 GB, free: 464 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003338/0.3565, allocations: 1.717 MB / 1.347 GB, free: 14.72 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.3575, allocations: 0.5299 MB / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.812e-05/0.3575, allocations: 0 / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.3576, allocations: 7.922 kB / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.492e-05/0.3577, allocations: 15.8 kB / 1.348 GB, free: 14.16 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.3579, allocations: 51.88 kB / 1.348 GB, free: 14.11 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.3581, allocations: 87.7 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.3582, allocations: 24.38 kB / 1.348 GB, free: 14 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.3583, allocations: 43.91 kB / 1.348 GB, free: 13.95 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.401e-05/0.3584, allocations: 39.78 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.3585, allocations: 11.94 kB / 1.348 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.727e-05/0.3585, allocations: 12 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.642e-05/0.3585, allocations: 19.92 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.935e-05/0.3586, allocations: 35.8 kB / 1.348 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001645/0.3587, allocations: 83.69 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3587, allocations: 7.938 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3587, allocations: 0 / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.3588, allocations: 3.938 kB / 1.348 GB, free: 13.74 MB / 1.045 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.0005369/0.3593, allocations: 317.9 kB / 1.348 GB, free: 13.4 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3593, allocations: 12.03 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.363e-05/0.3593, allocations: 4.188 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.3594, allocations: 34.73 kB / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.3596, allocations: 24.88 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.3598, allocations: 152.1 kB / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.222e-06/0.3598, allocations: 384 / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.3599, allocations: 8.375 kB / 1.348 GB, free: 13.14 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.3601, allocations: 95.25 kB / 1.349 GB, free: 13.04 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.3601, allocations: 0 / 1.349 GB, free: 13.04 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.3601, allocations: 0 / 1.349 GB, free: 13.04 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3601, allocations: 4 kB / 1.349 GB, free: 13.03 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.3603, allocations: 43.97 kB / 1.349 GB, free: 12.99 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.3607, allocations: 303.8 kB / 1.349 GB, free: 12.65 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.3609, allocations: 46.56 kB / 1.349 GB, free: 12.59 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.314e-05/0.361, allocations: 28.94 kB / 1.349 GB, free: 12.56 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.361, allocations: 0 / 1.349 GB, free: 12.56 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.361, allocations: 38.59 kB / 1.349 GB, free: 12.52 MB / 1.045 GB Notification: Performance of pre-optimization done (n=4): time 7.32e-07/0.361, allocations: 0 / 1.349 GB, free: 12.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=4): time 0.0003631/0.3614, allocations: 105.6 kB / 1.349 GB, free: 12.41 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/0.3614, allocations: 77.11 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.3616, allocations: 137.5 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.3616, allocations: 29.7 kB / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.242e-05/0.3617, allocations: 104.1 kB / 1.349 GB, free: 12.03 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.3617, allocations: 11.91 kB / 1.349 GB, free: 12.02 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.053e-05/0.3618, allocations: 17.7 kB / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3619, allocations: 326.8 kB / 1.35 GB, free: 11.66 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.096e-05/0.362, allocations: 23.98 kB / 1.35 GB, free: 11.64 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.843e-05/0.3621, allocations: 37.7 kB / 1.35 GB, free: 11.6 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.3622, allocations: 56.8 kB / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3622, allocations: 0 / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002033/0.3624, allocations: 85.94 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3625, allocations: 5.719 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.3625, allocations: 4 kB / 1.35 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3625, allocations: 7.922 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.935e-05/0.3626, allocations: 7.984 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.3626, allocations: 7.938 kB / 1.35 GB, free: 11.42 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.312e-05/0.3627, allocations: 11.98 kB / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.3627, allocations: 4 kB / 1.35 GB, free: 11.4 MB / 1.045 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.0001064/0.3628, allocations: 117.8 kB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.3628, allocations: 7.953 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.203e-05/0.3629, allocations: 16.33 kB / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3629, allocations: 0 / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3629, allocations: 7.938 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3629, allocations: 0 / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002427/0.3631, allocations: 172.6 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3631, allocations: 0 / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.747e-05/0.3632, allocations: 4 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.3632, allocations: 7.984 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.3632, allocations: 0 / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3632, allocations: 0 / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3632, allocations: 3.938 kB / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/0.3635, allocations: 179.5 kB / 1.351 GB, free: 10.82 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.969e-05/0.3635, allocations: 7.891 kB / 1.351 GB, free: 10.81 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.3635, allocations: 4 kB / 1.351 GB, free: 10.81 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.3636, allocations: 7.984 kB / 1.351 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.3637, allocations: 15.92 kB / 1.351 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.3637, allocations: 4 kB / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.396e-05/0.3638, allocations: 99.25 kB / 1.351 GB, free: 10.68 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3638, allocations: 0 / 1.351 GB, free: 10.68 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002303/0.364, allocations: 19.95 kB / 1.351 GB, free: 10.66 MB / 1.045 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.0006364/0.3646, allocations: 0.7086 MB / 1.351 GB, free: 9.93 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002386/0.3649, allocations: 59.89 kB / 1.351 GB, free: 9.871 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3649, allocations: 4 kB / 1.351 GB, free: 9.867 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.444e-05/0.365, allocations: 27.98 kB / 1.351 GB, free: 9.84 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.3652, allocations: 9.438 kB / 1.351 GB, free: 9.832 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.3669, allocations: 1.453 MB / 1.353 GB, free: 8.297 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.3672, allocations: 0.7 MB / 1.354 GB, free: 7.57 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.038e-05/0.3673, allocations: 8.109 kB / 1.354 GB, free: 7.562 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.3673, allocations: 27.42 kB / 1.354 GB, free: 7.535 MB / 1.045 GB Notification: Performance of SimCode: time 3e-07/0.3673, allocations: 0 / 1.354 GB, free: 7.535 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02238/0.3897, allocations: 2.267 MB / 1.356 GB, free: 5.426 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.47, allocations: 9.828 kB / 1.356 GB, free: 5.418 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.332291193015408] Failed to read output from testmodel.py, exit status != 0: 11.632859814970288 11.649339425 11.28744565 Calling exit ...