Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006774/0.006774, allocations: 102.7 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 190.1 kB / 16.67 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.254/2.254, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.89 kB / 0.9504 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8818/0.8832, allocations: 140.4 MB / 1.087 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002681/0.886, allocations: 1.68 MB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007092/0.8867, allocations: 447.2 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.548e-05/0.8868, allocations: 0.875 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.171e-05/0.8868, allocations: 6.047 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.737e-05/0.8869, allocations: 19.61 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.8871, allocations: 35.77 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.8872, allocations: 80.69 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.8874, allocations: 28.23 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.8875, allocations: 32.83 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.233e-05/0.8876, allocations: 37.89 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.8876, allocations: 7.062 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.726e-05/0.8876, allocations: 7.594 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.8877, allocations: 17.22 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.921e-05/0.8877, allocations: 39.58 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.8879, allocations: 85.55 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.8879, allocations: 0 / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.492e-06/0.8879, allocations: 0 / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.8879, allocations: 0 / 1.09 GB, free: 3.469 MB / 0.8575 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.0004974/0.8884, allocations: 390.5 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.8884, allocations: 8.656 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.32e-05/0.8885, allocations: 38.12 kB / 1.09 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.102e-05/0.8885, allocations: 8.656 kB / 1.09 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.8886, allocations: 184.3 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.8887, allocations: 6.562 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.8887, allocations: 3.281 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002127/0.8889, allocations: 92.98 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.8889, allocations: 3.938 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.8889, allocations: 0.9062 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.8889, allocations: 5 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.8891, allocations: 52.17 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.8896, allocations: 330 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.8898, allocations: 51.38 kB / 1.091 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.913e-05/0.8899, allocations: 29.91 kB / 1.091 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.8899, allocations: 0.9062 kB / 1.091 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.8899, allocations: 32.2 kB / 1.091 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.8899, allocations: 0.7812 kB / 1.091 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003687/0.8903, allocations: 109.1 kB / 1.091 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.8903, allocations: 82.59 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.8905, allocations: 128 kB / 1.091 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.8905, allocations: 31.33 kB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.753e-05/0.8905, allocations: 99.22 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.8906, allocations: 6.375 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.8906, allocations: 23.7 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.49e-05/0.8907, allocations: 323.8 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.8908, allocations: 24.84 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.483e-05/0.8909, allocations: 37.81 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.891, allocations: 47.94 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.8911, allocations: 0 / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002004/0.8913, allocations: 92.72 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.8913, allocations: 5.875 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.8913, allocations: 4.688 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.8913, allocations: 0 / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.8914, allocations: 10.06 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.8914, allocations: 1.031 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.58e-05/0.8915, allocations: 21.8 kB / 1.092 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.8915, allocations: 2.516 kB / 1.092 GB, free: 1.473 MB / 0.8575 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.098e-05/0.8916, allocations: 114.9 kB / 1.092 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.8917, allocations: 7.594 kB / 1.092 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/0.8917, allocations: 15.14 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.8917, allocations: 1 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.8917, allocations: 1.609 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.8917, allocations: 3.938 kB / 1.092 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.8919, allocations: 187.8 kB / 1.092 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.8919, allocations: 0 / 1.092 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.245e-05/0.892, allocations: 13.34 kB / 1.092 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.892, allocations: 1 kB / 1.092 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.892, allocations: 6.266 kB / 1.092 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.892, allocations: 0 / 1.092 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.892, allocations: 4.844 kB / 1.092 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.8923, allocations: 179.1 kB / 1.093 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.015e-05/0.8923, allocations: 87.3 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.8923, allocations: 1.062 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.8924, allocations: 10.95 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/0.8925, allocations: 11.38 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.8925, allocations: 10.88 kB / 1.093 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.813e-05/0.8926, allocations: 96.42 kB / 1.093 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8926, allocations: 0 / 1.093 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002328/0.8928, allocations: 14.75 kB / 1.093 GB, free: 0.7734 MB / 0.8575 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.0005939/0.8934, allocations: 0.7176 MB / 1.094 GB, free: 16.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002493/0.8937, allocations: 52.25 kB / 1.094 GB, free: 16.08 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.8937, allocations: 0 / 1.094 GB, free: 16.08 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 9.702e-05/0.8938, allocations: 33.81 kB / 1.094 GB, free: 16.07 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.8942, allocations: 6.391 kB / 1.094 GB, free: 16.07 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001581/0.8957, allocations: 1.444 MB / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.896, allocations: 0.6884 MB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.069e-05/0.896, allocations: 8.203 kB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.689e-05/0.8961, allocations: 21.12 kB / 1.096 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of SimCode: time 5.21e-07/0.8961, allocations: 0 / 1.096 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01873/0.9148, allocations: 2.103 MB / 1.098 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.144/8.059, allocations: 4.953 kB / 1.098 GB, free: 13.67 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,chiSwi.TSet,chiSwi.chiCHWST,chiSwi.y Variables in the result:CHWST.amplitude,CHWST.f,CHWST.offset,CHWST.phase,CHWST.startTime,CHWST.y,TSet.amplitude,TSet.f,TSet.offset,TSet.phase,TSet.startTime,TSet.y,chiSwi.TSet,chiSwi.add.k1,chiSwi.add.k2,chiSwi.add.u1,chiSwi.add.u2,chiSwi.add.y,chiSwi.chiCHWST,chiSwi.deaBan,chiSwi.hysteresis.pre_y_start,chiSwi.hysteresis.u,chiSwi.hysteresis.uHigh,chiSwi.hysteresis.uLow,chiSwi.hysteresis.y,chiSwi.y,time