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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_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.008661/0.008661, allocations: 103 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.002016/0.002016, allocations: 190 kB / 16.67 MB, free: 5.965 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.706/2.706, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.89 kB / 1.054 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.296, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003604/0.2996, allocations: 1.655 MB / 1.209 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009818/0.3007, allocations: 451.3 kB / 1.209 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.248e-05/0.3007, allocations: 0 / 1.209 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.081e-05/0.3008, allocations: 11.81 kB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.674e-05/0.301, allocations: 11.86 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.3012, allocations: 35.89 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001443/0.3013, allocations: 83.78 kB / 1.209 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.3015, allocations: 23.98 kB / 1.209 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.3016, allocations: 39.78 kB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.187e-05/0.3017, allocations: 35.84 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.3017, allocations: 8 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.921e-05/0.3018, allocations: 8 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.777e-05/0.3018, allocations: 19.92 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.157e-05/0.3019, allocations: 35.8 kB / 1.21 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.302, allocations: 87.97 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.302, allocations: 0 / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.733e-06/0.302, allocations: 0 / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.302, allocations: 0 / 1.21 GB, free: 7.625 MB / 0.9669 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.0005641/0.3026, allocations: 387.1 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3027, allocations: 8.625 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.3027, allocations: 42.75 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.886e-05/0.3028, allocations: 8.844 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.3029, allocations: 181.7 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.3029, allocations: 16.3 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.303, allocations: 4.375 kB / 1.21 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.3032, allocations: 91.5 kB / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3032, allocations: 0 / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.3032, allocations: 0 / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3032, allocations: 4 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.3034, allocations: 51.91 kB / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004965/0.3039, allocations: 320.7 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.304, allocations: 54.59 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.123e-05/0.3041, allocations: 32.94 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.3042, allocations: 0 / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.3042, allocations: 38.55 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.3042, allocations: 0 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.0003401/0.3045, allocations: 93.56 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.3046, allocations: 93.05 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.3047, allocations: 130.1 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.3047, allocations: 25.7 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.076e-05/0.3048, allocations: 108 kB / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.3048, allocations: 11.81 kB / 1.211 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.417e-05/0.3049, allocations: 21.7 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.305, allocations: 322.8 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.974e-05/0.3051, allocations: 19.98 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-05/0.3052, allocations: 49.69 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.3053, allocations: 44.84 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3053, allocations: 0 / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002023/0.3056, allocations: 85.59 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3056, allocations: 8 kB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3056, allocations: 0 / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3056, allocations: 4.031 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.3057, allocations: 11.98 kB / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.3057, allocations: 0 / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.296e-05/0.3058, allocations: 15.83 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.637e-06/0.3058, allocations: 4 kB / 1.212 GB, free: 5.129 MB / 0.9669 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 8.748e-05/0.3059, allocations: 122 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.306, allocations: 7.984 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.311e-05/0.306, allocations: 20.12 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.306, allocations: 0 / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.306, allocations: 7.984 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.306, allocations: 3.938 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.3063, allocations: 181.5 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3063, allocations: 0 / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.474e-05/0.3063, allocations: 11.98 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3064, allocations: 0 / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.3064, allocations: 0 / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.3064, allocations: 8.172 kB / 1.212 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.3064, allocations: 7.938 kB / 1.212 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.3066, allocations: 183.5 kB / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.3067, allocations: 81.02 kB / 1.212 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.3067, allocations: 0 / 1.212 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.3068, allocations: 11.98 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/0.3069, allocations: 7.984 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.3069, allocations: 7.938 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.518e-05/0.3069, allocations: 105.7 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3069, allocations: 4 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002379/0.3072, allocations: 12 kB / 1.213 GB, free: 4.266 MB / 0.9669 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.0005601/0.3077, allocations: 0.7162 MB / 1.213 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002042/0.308, allocations: 55.95 kB / 1.213 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.308, allocations: 0 / 1.213 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.327e-05/0.3081, allocations: 31.92 kB / 1.213 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.3083, allocations: 3.938 kB / 1.213 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.31, allocations: 1.448 MB / 1.215 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.3102, allocations: 0.6885 MB / 1.216 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.169e-05/0.3103, allocations: 4.188 kB / 1.216 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.751e-05/0.3103, allocations: 23.42 kB / 1.216 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of SimCode: time 2.61e-07/0.3103, allocations: 0 / 1.216 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.3291, allocations: 2.102 MB / 1.218 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.23/7.559, allocations: 14.36 kB / 1.218 GB, free: 15.2 MB / 0.9825 GB (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 --timeout=50 --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) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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