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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 103.9 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 225.6 MB / 247.8 MB, free: 3.73 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.802/2.802, allocations: 476.7 MB / 0.7611 GB, free: 15.68 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003223/0.003223, allocations: 63.91 kB / 1.104 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9958/0.9991, allocations: 168.7 MB / 1.269 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002873/1.002, allocations: 1.683 MB / 1.27 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008543/1.003, allocations: 452.2 kB / 1.271 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.9e-05/1.003, allocations: 0.75 kB / 1.271 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.989e-05/1.003, allocations: 9.656 kB / 1.271 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.609e-05/1.003, allocations: 20.45 kB / 1.271 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/1.003, allocations: 23.41 kB / 1.271 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001437/1.003, allocations: 81.03 kB / 1.271 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/1.003, allocations: 23.62 kB / 1.271 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/1.004, allocations: 50.27 kB / 1.271 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.775e-05/1.004, allocations: 34.38 kB / 1.271 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/1.004, allocations: 6.906 kB / 1.271 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.965e-05/1.004, allocations: 6.844 kB / 1.271 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.089e-05/1.004, allocations: 21.91 kB / 1.271 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.136e-05/1.004, allocations: 35.19 kB / 1.271 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000178/1.004, allocations: 82.52 kB / 1.271 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/1.004, allocations: 4.844 kB / 1.271 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.914e-06/1.004, allocations: 0 / 1.271 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.009e-05/1.004, allocations: 0.8438 kB / 1.271 GB, free: 6.059 MB / 0.9981 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.0005853/1.005, allocations: 396.7 kB / 1.272 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/1.005, allocations: 9.281 kB / 1.272 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.911e-05/1.005, allocations: 38.2 kB / 1.272 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/1.005, allocations: 10.22 kB / 1.272 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/1.005, allocations: 181.5 kB / 1.272 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/1.005, allocations: 2.562 kB / 1.272 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/1.005, allocations: 7.5 kB / 1.272 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/1.005, allocations: 92.97 kB / 1.272 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/1.005, allocations: 0.625 kB / 1.272 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/1.005, allocations: 8.719 kB / 1.272 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/1.005, allocations: 0.9375 kB / 1.272 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/1.005, allocations: 51.77 kB / 1.272 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004723/1.006, allocations: 330.4 kB / 1.272 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000156/1.006, allocations: 46.03 kB / 1.272 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.962e-05/1.006, allocations: 29.17 kB / 1.272 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/1.006, allocations: 0.75 kB / 1.272 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/1.006, allocations: 32.41 kB / 1.272 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/1.006, allocations: 4.938 kB / 1.272 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0003508/1.006, allocations: 104.7 kB / 1.272 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/1.006, allocations: 78.72 kB / 1.273 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.943e-05/1.007, allocations: 133.3 kB / 1.273 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/1.007, allocations: 26.67 kB / 1.273 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.69e-05/1.007, allocations: 98.52 kB / 1.273 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/1.007, allocations: 11.66 kB / 1.273 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/1.007, allocations: 23.72 kB / 1.273 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.821e-05/1.007, allocations: 322.9 kB / 1.273 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.498e-05/1.007, allocations: 30.36 kB / 1.273 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.001e-05/1.007, allocations: 36.5 kB / 1.273 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/1.007, allocations: 44.17 kB / 1.273 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/1.007, allocations: 4.031 kB / 1.273 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001935/1.007, allocations: 97.75 kB / 1.273 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/1.007, allocations: 4.5 kB / 1.273 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/1.007, allocations: 1.609 kB / 1.273 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/1.007, allocations: 0 / 1.273 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/1.007, allocations: 9.828 kB / 1.273 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/1.007, allocations: 0.7188 kB / 1.273 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.419e-05/1.007, allocations: 19.8 kB / 1.273 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/1.007, allocations: 5.375 kB / 1.273 GB, free: 4.055 MB / 0.9981 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 7.058e-05/1.008, allocations: 115.5 kB / 1.273 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/1.008, allocations: 7.047 kB / 1.273 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/1.008, allocations: 11.67 kB / 1.274 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/1.008, allocations: 1 kB / 1.274 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/1.008, allocations: 0 / 1.274 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/1.008, allocations: 5.547 kB / 1.274 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/1.008, allocations: 191 kB / 1.274 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/1.008, allocations: 0 / 1.274 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.437e-05/1.008, allocations: 14.09 kB / 1.274 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/1.008, allocations: 8.938 kB / 1.274 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/1.008, allocations: 1.547 kB / 1.274 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/1.008, allocations: 8.703 kB / 1.274 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.008, allocations: 0.5625 kB / 1.274 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000211/1.008, allocations: 178.7 kB / 1.274 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.596e-05/1.008, allocations: 83.67 kB / 1.274 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/1.008, allocations: 6.359 kB / 1.274 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/1.008, allocations: 9.625 kB / 1.274 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.078e-05/1.008, allocations: 12.2 kB / 1.274 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/1.008, allocations: 6 kB / 1.274 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.373e-05/1.008, allocations: 102.7 kB / 1.274 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.008, allocations: 0 / 1.274 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002249/1.009, allocations: 10.91 kB / 1.274 GB, free: 3.348 MB / 0.9981 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.000442/1.009, allocations: 0.7217 MB / 1.275 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002295/1.009, allocations: 51.55 kB / 1.275 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.009, allocations: 0 / 1.275 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.402e-05/1.009, allocations: 31.8 kB / 1.275 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/1.01, allocations: 7.797 kB / 1.275 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/1.011, allocations: 1.438 MB / 1.276 GB, free: 17.36 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/1.012, allocations: 0.6954 MB / 1.277 GB, free: 16.66 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.247e-05/1.012, allocations: 6.844 kB / 1.277 GB, free: 16.66 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.976e-05/1.012, allocations: 24.78 kB / 1.277 GB, free: 16.64 MB / 1.014 GB Notification: Performance of SimCode: time 3e-07/1.012, allocations: 0 / 1.277 GB, free: 16.64 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/1.036, allocations: 2.087 MB / 1.279 GB, free: 16.25 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/9.216, allocations: 17.31 kB / 1.279 GB, free: 16.23 MB / 1.014 GB " [Timeout remaining time 291] (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] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.320039098151028]