Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_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.004742/0.004742, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001118/0.001118, allocations: 189.1 kB / 16.67 MB, free: 5.93 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.38/1.38, 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 10.1.1-maint.10.0.x/package.mo): time 2.442/2.442, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 63.91 kB / 1.018 GB, free: 9.918 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8916/0.893, allocations: 151.6 MB / 1.166 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00353/0.8966, allocations: 1.664 MB / 1.168 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009098/0.8976, allocations: 462.9 kB / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.821e-05/0.8977, allocations: 0 / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.709e-05/0.8977, allocations: 3.938 kB / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.995e-05/0.8978, allocations: 15.81 kB / 1.168 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.8981, allocations: 31.95 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.8982, allocations: 83.7 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.8984, allocations: 23.98 kB / 1.168 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.8985, allocations: 43.78 kB / 1.168 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.258e-05/0.8986, allocations: 31.84 kB / 1.168 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.5e-05/0.8986, allocations: 8 kB / 1.168 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.046e-05/0.8986, allocations: 12 kB / 1.168 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.24e-05/0.8987, allocations: 15.92 kB / 1.168 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.117e-05/0.8987, allocations: 39.8 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.8989, allocations: 82 kB / 1.169 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.8989, allocations: 0 / 1.169 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.233e-06/0.8989, allocations: 4 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.8989, allocations: 0 / 1.169 GB, free: 1.289 MB / 0.8887 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.0005873/0.8995, allocations: 387.1 kB / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.8996, allocations: 12.92 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.8996, allocations: 46.66 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.007e-05/0.8997, allocations: 8.844 kB / 1.169 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.8998, allocations: 180.2 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.8999, allocations: 4.375 kB / 1.169 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.8999, allocations: 4.375 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.9001, allocations: 99.38 kB / 1.169 GB, free: 468 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.9001, allocations: 3.984 kB / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.9002, allocations: 4 kB / 1.169 GB, free: 460 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.9002, allocations: 7.938 kB / 1.169 GB, free: 452 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001609/0.9003, allocations: 43.97 kB / 1.169 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.9009, allocations: 328.6 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.9011, allocations: 54.56 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.31e-05/0.9012, allocations: 24.94 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.9012, allocations: 0 / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.9012, allocations: 38.56 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.9012, allocations: 0 / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4): time 0.0003631/0.9016, allocations: 101.6 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.9017, allocations: 81.11 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.9018, allocations: 132.1 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.9018, allocations: 25.7 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.252e-05/0.9019, allocations: 100 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.9019, allocations: 11.91 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.902, allocations: 17.72 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.9021, allocations: 318.8 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.571e-05/0.9022, allocations: 31.98 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.197e-05/0.9023, allocations: 33.7 kB / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.9024, allocations: 48.83 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.9025, allocations: 0 / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002051/0.9027, allocations: 93.5 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.9027, allocations: 4 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.9027, allocations: 4.031 kB / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.9027, allocations: 0 / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.9028, allocations: 8 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.9029, allocations: 3.984 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.21e-05/0.9029, allocations: 16.06 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.903, allocations: 7.984 kB / 1.171 GB, free: 14.8 MB / 0.9044 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 9.57e-05/0.9031, allocations: 113.8 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.9031, allocations: 11.91 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.659e-05/0.9032, allocations: 16.25 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.9032, allocations: 0 / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.9032, allocations: 0 / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.9032, allocations: 3.938 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.9034, allocations: 185.6 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.9034, allocations: 0 / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.726e-05/0.9035, allocations: 19.86 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.9035, allocations: 0 / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.9035, allocations: 3.938 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.9035, allocations: 0 / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.9035, allocations: 4 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.9038, allocations: 183.5 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.413e-05/0.9038, allocations: 81.02 kB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.9039, allocations: 8 kB / 1.171 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.904, allocations: 7.984 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.573e-05/0.904, allocations: 7.984 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.9041, allocations: 15.92 kB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.744e-05/0.9041, allocations: 101.8 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9041, allocations: 0 / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002383/0.9044, allocations: 12 kB / 1.172 GB, free: 13.94 MB / 0.9044 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.0005554/0.9049, allocations: 0.7162 MB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002105/0.9052, allocations: 51.95 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.9052, allocations: 0 / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.158e-05/0.9053, allocations: 31.92 kB / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.9056, allocations: 8.5 kB / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001795/0.9074, allocations: 1.445 MB / 1.174 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.9078, allocations: 0.6894 MB / 1.174 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.809e-05/0.9078, allocations: 3.984 kB / 1.174 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.22e-05/0.9079, allocations: 23.38 kB / 1.174 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.9079, allocations: 0 / 1.174 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.9282, allocations: 2.078 MB / 1.176 GB, free: 8.91 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.388/8.317, allocations: 19.94 kB / 1.176 GB, free: 8.895 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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