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.007829/0.007829, allocations: 98.45 kB / 15.73 MB, free: 6.066 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.0018/0.0018, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.222/2.222, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 67.89 kB / 0.9504 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9493/0.9509, allocations: 140.4 MB / 1.087 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002595/0.9536, allocations: 1.674 MB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007066/0.9543, allocations: 441.7 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.871e-05/0.9544, allocations: 0.9688 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.053e-05/0.9544, allocations: 10.09 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.781e-05/0.9545, allocations: 19.31 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001596/0.9547, allocations: 36.25 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001232/0.9548, allocations: 79.73 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.9549, allocations: 26.95 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.955, allocations: 30.22 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.771e-05/0.9551, allocations: 46.88 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.9552, allocations: 6.562 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.9552, allocations: 7.062 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/0.9552, allocations: 13.19 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.938e-05/0.9553, allocations: 35.8 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.9555, allocations: 89.31 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.9555, allocations: 0 / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.884e-06/0.9555, allocations: 0.7812 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.9555, allocations: 0 / 1.09 GB, free: 3.566 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.0004991/0.956, allocations: 392.9 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.9561, allocations: 10.47 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.235e-05/0.9561, allocations: 36.56 kB / 1.09 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.9561, allocations: 10.23 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.9562, allocations: 178.7 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.9563, allocations: 1.562 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.9563, allocations: 3.531 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.9565, allocations: 100.8 kB / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.9565, allocations: 0 / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.9566, allocations: 1.656 kB / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.9566, allocations: 4.969 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.9567, allocations: 51.83 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000464/0.9572, allocations: 338 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.9574, allocations: 47.25 kB / 1.091 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.114e-05/0.9575, allocations: 30.52 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.9575, allocations: 0.5156 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.9575, allocations: 36.2 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.9575, allocations: 5.062 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003551/0.9579, allocations: 100.4 kB / 1.091 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.9579, allocations: 78.89 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.958, allocations: 129.1 kB / 1.091 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.958, allocations: 27.67 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.674e-05/0.9581, allocations: 98.44 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.9581, allocations: 6.359 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.132e-05/0.9582, allocations: 28.77 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.9582, allocations: 322.9 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.301e-05/0.9583, allocations: 24.55 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.297e-05/0.9584, allocations: 42.78 kB / 1.092 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.9586, allocations: 43.62 kB / 1.092 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.9586, allocations: 4.031 kB / 1.092 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001962/0.9588, allocations: 88.89 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.9588, allocations: 5.25 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.9588, allocations: 0.7031 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.9588, allocations: 0.7812 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.9589, allocations: 9.656 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.959, allocations: 0.7812 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.348e-05/0.959, allocations: 18.81 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.9591, allocations: 9.469 kB / 1.092 GB, free: 1.57 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 8.689e-05/0.9592, allocations: 114.8 kB / 1.092 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.9592, allocations: 12.09 kB / 1.092 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.9592, allocations: 11.69 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.9592, allocations: 0.9375 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.9593, allocations: 0 / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.9593, allocations: 5.516 kB / 1.092 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.9594, allocations: 186.9 kB / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.9594, allocations: 4.609 kB / 1.092 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.294e-05/0.9595, allocations: 14.31 kB / 1.092 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.9595, allocations: 0 / 1.092 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.9595, allocations: 1.766 kB / 1.092 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.9595, allocations: 0.9062 kB / 1.092 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.9596, allocations: 0.5625 kB / 1.092 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.9598, allocations: 182.3 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.371e-05/0.9598, allocations: 91.48 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.9598, allocations: 2.281 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.9599, allocations: 9.766 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.96, allocations: 12.31 kB / 1.093 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.96, allocations: 6.109 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.975e-05/0.9601, allocations: 102.8 kB / 1.093 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.9601, allocations: 0 / 1.093 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000227/0.9603, allocations: 11.06 kB / 1.093 GB, free: 0.8711 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.0004567/0.9608, allocations: 0.7175 MB / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000225/0.961, allocations: 56.52 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.961, allocations: 1.062 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.745e-05/0.9611, allocations: 27.89 kB / 1.094 GB, free: 16.17 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.9614, allocations: 12.89 kB / 1.094 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.963, allocations: 1.434 MB / 1.095 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.9633, allocations: 0.6891 MB / 1.096 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.27e-05/0.9634, allocations: 7.5 kB / 1.096 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.307e-05/0.9634, allocations: 26.06 kB / 1.096 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of SimCode: time 2.01e-07/0.9634, allocations: 1.062 kB / 1.096 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.9821, allocations: 2.072 MB / 1.098 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.333/8.315, allocations: 8.5 kB / 1.098 GB, free: 13.77 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