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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.007545/0.007545, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001844/0.001845, allocations: 196.6 kB / 16.68 MB, free: 6.352 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.698/2.698, allocations: 469.4 MB / 0.7422 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.89 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2837, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002747/0.2865, allocations: 1.673 MB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007325/0.2872, allocations: 446.9 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.27e-05/0.2873, allocations: 0 / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.751e-05/0.2873, allocations: 7.922 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.612e-05/0.2874, allocations: 15.81 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001719/0.2876, allocations: 31.95 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2877, allocations: 83.77 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.2878, allocations: 27.92 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.2879, allocations: 35.84 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.62e-05/0.288, allocations: 35.84 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.2881, allocations: 8 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.451e-05/0.2881, allocations: 8 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.432e-05/0.2881, allocations: 19.92 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.481e-05/0.2882, allocations: 39.8 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.2883, allocations: 71.7 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2883, allocations: 3.984 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.076e-06/0.2883, allocations: 4 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.2883, allocations: 0 / 1.222 GB, free: 12.15 MB / 0.9825 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.0005128/0.2888, allocations: 395 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2889, allocations: 12.03 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.162e-05/0.2889, allocations: 42.69 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.289, allocations: 12.88 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.2891, allocations: 183.6 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.2891, allocations: 384 / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.2892, allocations: 8.375 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.2894, allocations: 91.44 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.2894, allocations: 0 / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.2894, allocations: 4 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2894, allocations: 8 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.2896, allocations: 47.95 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.2901, allocations: 328.7 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.2903, allocations: 54.56 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.331e-05/0.2904, allocations: 24.94 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.2904, allocations: 0 / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.2904, allocations: 34.56 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.2904, allocations: 4 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0003551/0.2908, allocations: 105.6 kB / 1.223 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.2908, allocations: 81.11 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.291, allocations: 134 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.291, allocations: 25.7 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.75e-05/0.291, allocations: 100.1 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.2911, allocations: 19.89 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.2911, allocations: 13.72 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.273e-05/0.2912, allocations: 322.8 kB / 1.224 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.896e-05/0.2913, allocations: 31.98 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.564e-05/0.2914, allocations: 33.7 kB / 1.224 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.2916, allocations: 44.83 kB / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.2916, allocations: 0 / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002123/0.2918, allocations: 93.56 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2918, allocations: 4 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.2918, allocations: 8.016 kB / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2918, allocations: 0 / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.292, allocations: 8 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.292, allocations: 0 / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.683e-05/0.2921, allocations: 23.8 kB / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.2921, allocations: 4.125 kB / 1.224 GB, free: 9.641 MB / 0.9825 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.422e-05/0.2922, allocations: 117.8 kB / 1.224 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.2922, allocations: 11.94 kB / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.2923, allocations: 16.25 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2923, allocations: 0 / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2923, allocations: 0 / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2923, allocations: 3.938 kB / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.2925, allocations: 189.6 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2925, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.2926, allocations: 12.11 kB / 1.225 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2927, allocations: 4 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.2927, allocations: 4 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.2927, allocations: 0 / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2927, allocations: 0 / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002491/0.2929, allocations: 183.4 kB / 1.225 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.633e-05/0.293, allocations: 81.06 kB / 1.225 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.293, allocations: 4 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.2931, allocations: 11.98 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.2932, allocations: 7.984 kB / 1.225 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.2932, allocations: 11.94 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.104e-05/0.2933, allocations: 103.2 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2933, allocations: 0 / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002528/0.2935, allocations: 12 kB / 1.225 GB, free: 8.785 MB / 0.9825 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.0005008/0.294, allocations: 0.7202 MB / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002067/0.2943, allocations: 51.97 kB / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2943, allocations: 0 / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.812e-05/0.2944, allocations: 31.91 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.2947, allocations: 11.94 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.2962, allocations: 1.438 MB / 1.227 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.2964, allocations: 0.6885 MB / 1.228 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.604e-05/0.2965, allocations: 12.41 kB / 1.228 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.799e-05/0.2965, allocations: 23.44 kB / 1.228 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of SimCode: time 2.795e-06/0.2966, allocations: 0 / 1.228 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.3139, allocations: 2.085 MB / 1.23 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.52/7.834, allocations: 20.48 kB / 1.23 GB, free: 3.727 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/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) Reference file matches