Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001838/0.001838, allocations: 97.31 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.002378/0.002378, allocations: 217.8 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.534/1.534, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.242/3.242, allocations: 0.49 GB / 0.7959 GB, free: 35.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_12_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.001943/0.001943, allocations: 73.14 kB / 1.155 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3464, allocations: 176.1 MB / 1.327 GB, free: 1.473 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003509/0.3499, allocations: 1.686 MB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.3509, allocations: 498.7 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.288e-05/0.351, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.554e-05/0.3511, allocations: 11.86 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.97e-05/0.3512, allocations: 23.8 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.3515, allocations: 39.95 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.3516, allocations: 91.64 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3518, allocations: 32.33 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.352, allocations: 35.92 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.795e-05/0.352, allocations: 35.78 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.374e-05/0.3521, allocations: 11.98 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.57e-05/0.3521, allocations: 16 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.3522, allocations: 11.98 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.53e-05/0.3522, allocations: 39.73 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.3524, allocations: 87.69 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3524, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3524, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.3524, allocations: 3.938 kB / 1.329 GB, free: 14.85 MB / 1.029 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.0005906/0.353, allocations: 321.9 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.353, allocations: 8.031 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.894e-05/0.353, allocations: 8.125 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.966e-05/0.3531, allocations: 34.73 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002337/0.3533, allocations: 28.88 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.3536, allocations: 138.4 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.3536, allocations: 8.312 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.866e-05/0.3536, allocations: 8.375 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.3539, allocations: 117 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.3539, allocations: 0 / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.3539, allocations: 0 / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3539, allocations: 4 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.3541, allocations: 51.91 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.3546, allocations: 283.8 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.3547, allocations: 46.59 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.967e-05/0.3548, allocations: 32.94 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3548, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.3549, allocations: 30.56 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 9.51e-07/0.3549, allocations: 4 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.000362/0.3552, allocations: 105.6 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.3553, allocations: 77.11 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.3554, allocations: 135.8 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.3554, allocations: 29.7 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.506e-05/0.3555, allocations: 108 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.3555, allocations: 11.91 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.3556, allocations: 21.7 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3557, allocations: 318.8 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.424e-05/0.3558, allocations: 23.98 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.3559, allocations: 67.39 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.3561, allocations: 44.84 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3561, allocations: 0 / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002189/0.3563, allocations: 89.61 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3563, allocations: 4 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3563, allocations: 4.031 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3563, allocations: 3.938 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.3564, allocations: 15.92 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3564, allocations: 3.938 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.107e-05/0.3565, allocations: 15.92 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.3565, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 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.0001033/0.3566, allocations: 117.8 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.3567, allocations: 7.953 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.025e-05/0.3567, allocations: 12.34 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.3567, allocations: 4 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3567, allocations: 4.125 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3567, allocations: 3.984 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.3569, allocations: 156.7 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3569, allocations: 192 / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-05/0.357, allocations: 11.98 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.357, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.357, allocations: 3.984 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.357, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.357, allocations: 3.938 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.3573, allocations: 187.4 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.582e-05/0.3573, allocations: 3.953 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.3573, allocations: 4 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.3574, allocations: 11.98 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-05/0.3575, allocations: 11.92 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.3575, allocations: 3.984 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.132e-05/0.3576, allocations: 104.5 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3576, allocations: 0 / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002328/0.3578, allocations: 12 kB / 1.332 GB, free: 11.73 MB / 1.029 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.0005954/0.3584, allocations: 0.7202 MB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002117/0.3586, allocations: 51.95 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3586, allocations: 0 / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.262e-05/0.3587, allocations: 23.98 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.359, allocations: 11.94 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.3608, allocations: 1.46 MB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.871e-05/0.3609, allocations: 71.89 kB / 1.334 GB, free: 9.27 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.778e-05/0.3609, allocations: 11.92 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.02e-05/0.361, allocations: 27.44 kB / 1.334 GB, free: 9.23 MB / 1.029 GB Notification: Performance of SimCode: time 8.82e-07/0.361, allocations: 0 / 1.334 GB, free: 9.23 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.3848, allocations: 2.354 MB / 1.337 GB, free: 7.055 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.37, allocations: 5.688 kB / 1.337 GB, free: 7.051 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.228859590017237] Failed to read output from testmodel.py, exit status != 0: 11.551363909966312 11.572183364 11.215834667 Calling exit ...